Forums / General / adding variable text string from external file.

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.

eZ debug

Timing: Jan 19 2025 04:43:11
Script start
Timing: Jan 19 2025 04:43:11
Module start 'content'
Timing: Jan 19 2025 04:43:12
Module end 'content'
Timing: Jan 19 2025 04:43:12
Script end

Main resources:

Total runtime0.7708 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.0781180.8203
Module start 'content' 0.00600.6466 769.8984614.6250
Module end 'content' 0.65260.1182 1,384.5234337.3750
Script end 0.7708  1,721.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.5255210.0002
Check MTime0.00160.2096210.0001
Mysql Total
Database connection0.00070.093010.0007
Mysqli_queries0.688689.33132020.0034
Looping result0.00270.34662000.0000
Template Total0.742396.320.3711
Template load0.00190.249220.0010
Template processing0.740396.045520.3702
Template load and register function0.00010.017110.0001
states
state_id_array0.00120.161410.0012
state_identifier_array0.00080.102020.0004
Override
Cache load0.00160.2070280.0001
Sytem overhead
Fetch class attribute can translate value0.00150.194240.0004
Fetch class attribute name0.00220.289380.0003
XML
Image XML parsing0.00210.272940.0005
class_abstraction
Instantiating content class attribute0.00000.0032100.0000
General
dbfile0.00270.3487410.0001
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs