Tags:
create new tag
view all tags

Question

Would it be possible to mirror a page from an external website in a twiki topic?

More specifically:

  • I'm a self-employed and I have in my website a page with a list of priorities.
  • I collaborate with an organization that wants me to have my list of priorities accessible in their twiki: http://interactors.lawebespiral.org/wiki/bin/view/Main/PrioridadesQuim
  • I'd like to program a tool that once a day would access via SSH to my web page, would pick the data from my priorities page in XML format, then would go to the twiki and would edit the page with my login&password.

Of course once it works, the system may be applied for more general (and perhaps useful) wink purposes, but it would be worth to try.

Is there an easier/better way to do this mirroring?

  • TWiki version: 01 Feb 2003

-- QuimGil - 23 Jun 2003

Answer

Well, the easy way is totally insecure but straightforward. In TWiki, you can use the variable %INCLUDE{Web.TopicName}% to dynamically include another page into the curent one. The INCLUDE also works with fully qualifited URLs instead of the Web.TopicName.

You can take advantage of this by providing a file on your website that you then include in the TWiki. The file may not be access protected (SSH or otherwise) because then TWiki wouldn't be able to get it, but you could make the file "hidden" - simply not having any links to it from any web page anywhere.

The file you provide could be your original web page, or you could set up something that generates a separate file with just the bits you want to have included in TWiki. This is up to you and takes place on your own website.

-- TorbenGB - 24 Jun 2003

Anotehr possibility is to change TWiki content programmatically, see WebServicesAddOn , XmlRpc, XmlRpcForWebApps, SOAP

-- PeterThoeny - 24 Jun 2003

Than you, for the anwers. As usual, more complete than I expected. wink

-- QuimGil - 26 Jun 2003

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2003-06-26 - QuimGil
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.