Forums / General / is it possible ?

is it possible ?

Author Message

c b

Saturday 13 March 2004 2:42:31 am

Hello
is it possible to choose where i want to be shown the new article i publish in my initial page (default page)? instead of every time i publish a new article the is shown automatically in the front page. I need a font page (the inicial page of the site) whith one location where i will publish the new of the day (or the article detached), and always the article detached have to be shown in that part of the page, and for exemplo other article with minor importance to be published below of that article, is like the news site in ez 3.3.3
the only difference is that i want to difine what article will be published like principal article or detached article, and which one have to be published in the left or right corner, up or under another one, and that´s all.

thanks

Lazaro Ferreira

Sunday 14 March 2004 3:51:04 am

Hi Carlos

Of course that you can do that, with a little template programming

By default you get your dinamic content shown from module.resul_content

But if you want to get extra dinamic content for your page i.e: pagelayout.tpl

You may use the fetch data function of EZP

There is good example at ezp default folder.tpl, ( you got it with ezp corporate package )

You may get the folder.tpl, save it as your own template i.e news_front.tpl and include it in your pagelayout using the include operator (look at online doc for an example,also the standard pagelayout.tpl of ezp uses the include operator)

You do the trick passing a template variable with the number of the node of your news folder

You will have to replace at your news_front.tpl every '$node' ocurrence for your own variable i.e: $news_node

As the folder.tpl is prepared to show the content of any folder (the current folder), replacing the $node (current node) for your specific node number, will show the content of your folder no matter what page you are (i.e your home page!)

hope this help

 

That template show a list of articles,infopage,etc from an especific folder of your choice

Lazaro
http://www.mzbusiness.com

c b

Monday 15 March 2004 1:09:16 am

Ok Thanks. Im testing now.

eZ debug

Timing: Jan 31 2025 04:23:24
Script start
Timing: Jan 31 2025 04:23:24
Module start 'content'
Timing: Jan 31 2025 04:23:24
Module end 'content'
Timing: Jan 31 2025 04:23:24
Script end

Main resources:

Total runtime0.1568 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 587.7500180.8594
Module start 'content' 0.00540.0043 768.609493.6875
Module end 'content' 0.00970.1470 862.2969522.7344
Script end 0.1567  1,385.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00291.8618200.0001
Check MTime0.00120.7611200.0001
Mysql Total
Database connection0.00080.530510.0008
Mysqli_queries0.095760.98971410.0007
Looping result0.00130.81401390.0000
Template Total0.146893.610.1468
Template load0.00060.414410.0006
Template processing0.146193.145510.1461
Override
Cache load0.00050.291410.0005
Sytem overhead
Fetch class attribute can translate value0.00050.338510.0005
XML
Image XML parsing0.00030.180410.0003
General
dbfile0.00513.2454200.0003
String conversion0.00000.001830.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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