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.

eZ debug

Timing: Jan 31 2025 08:17:59
Script start
Timing: Jan 31 2025 08:17:59
Module start 'layout'
Timing: Jan 31 2025 08:17:59
Module start 'content'
Timing: Jan 31 2025 08:17:59
Module end 'content'
Timing: Jan 31 2025 08:17:59
Script end

Main resources:

Total runtime0.0173 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 588.2578151.2266
Module start 'layout' 0.00560.0028 739.484436.6797
Module start 'content' 0.00830.0076 776.164194.2813
Module end 'content' 0.01590.0014 870.445333.9922
Script end 0.0173  904.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002514.3089140.0002
Check MTime0.00116.1592140.0001
Mysql Total
Database connection0.00074.142410.0007
Mysqli_queries0.002916.952530.0010
Looping result0.00000.070310.0000
Template Total0.00105.810.0010
Template load0.00084.726510.0008
Template processing0.00021.034610.0002
Override
Cache load0.00063.247010.0006
General
dbfile0.002112.084180.0003
String conversion0.00000.046840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs