adding variable text string from external file.

Author Message

risto CMS user

Friday 18 November 2005 6:06:33 am

Hi I have a file that contains veriable html content. d like to be able to add this to a page.

I ban send it av a variable, html og plain text.
can someone show me how to get this done? or maby a manual on somthing similar?

Ɓukasz Serwatka

Monday 21 November 2005 11:49:18 pm

Hi risto,

Could you better explain what you want to do?

You can use custom tag and include html, plain text in xml filed.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

risto CMS user

Friday 25 November 2005 3:55:52 am

ok I have a file/script that gets content off another site. Non rss. Now what I would like to doo it fetch the content of this file and add it so a page. the contet of the file changes dayli.

Nathan Kelly

Friday 25 November 2005 4:06:01 am

risto when you say "Non RSS" do you mean the file is not XML? What format is the file? Maybe an example of the script and the content you are trying to fetch will make your requirements a little clearer.

Cheers!

Pardon me while I burst into flames...

risto CMS user

Friday 25 November 2005 4:27:30 am

im using

function URLopen($url,$today)

it saves the content in a file named by the date ie
"25_11_2005.txt"

Now what I would like to do is get this content displayed on the page.

the php script checs the date and if its been incremented compared to what is on the server ie 26_11_2005 and not 25_11_2005 then it fetches the content again andcreates a new file.

There might be a better way of dooing this. If so please share. But this stuff is very easy in plain PHP I just dont understad how to display the content in eZ.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.