Ruby Forum Radiant CMS > reading xml files & i18n

Posted by nurullah (Guest)
on 15.05.2008 10:37
(Received via mailing list)
Could anyone read xml files from radiant pages?

i installed backdoor extension and hpricot but still couldnt achive to 
what
i want

i want to read xml files that is located on another server

is there any extension for that?

secondly, is there any attempt or chance to translate radiant to another
language? (in my case, to turkish)
Posted by kranthi reddy (Guest)
on 15.05.2008 11:07
(Received via mailing list)
U can have a hack to the remote server using a net/http request and the
achieve the rest using REXML..This should work acutally .....

cheers,
kranthi
Posted by nurullah (Guest)
on 15.05.2008 11:56
(Received via mailing list)
with the help of backdoor?

i want to deploy this script to a page:
http://www.ikinoktayazilim.com/wordpress/2007/11/13/vakitrb/

but constantly gives errors

firstly i cant use

include REXML

no probs i added it to right place

vakitler =
REXML::Document.new(File.new('vakit.xml')).root.to_a[bugun].text.split(/\t/)

but i wouldnt work this way tho...

but that'd work: vakitler = REXML::Document.new(File.new('vakit.xml'))
Posted by kranthi reddy (Guest)
on 15.05.2008 12:11
(Received via mailing list)
No I dont think we need to use backdoor extension...
Its not mandatory...
U can use net/http and send/receive the request in xml format.

cheers,
kranthi.
Posted by nurullah (Guest)
on 15.05.2008 13:47
(Received via mailing list)
i miss something? how to run a ruby script from a page w/o backdoor
extension?
Posted by kranthi reddy (Guest)
on 15.05.2008 13:51
(Received via mailing list)
U can create a tag like the standard tags..
I mean create a radiant customized tag to handle the ruby script...

cheers,
kranthi.
Posted by nurullah (Guest)
on 17.05.2008 22:51
(Received via mailing list)
where to put custom tags?

creating and extension or put them on lib/ dir?
Posted by kranthi reddy (Guest)
on 18.05.2008 20:26
(Received via mailing list)
Yeah,
All you need to do is to create an extension.Then create a file and 
write a
tag which you can use it globally...

cheers,
kranthi