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.

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 05:57:59
Script start
Timing: Jan 31 2025 05:57:59
Module start 'layout'
Timing: Jan 31 2025 05:57:59
Module start 'content'
Timing: Jan 31 2025 05:57:59
Module end 'content'
Timing: Jan 31 2025 05:57:59
Script end

Main resources:

Total runtime0.0169 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.0046 588.0000151.1953
Module start 'layout' 0.00460.0030 739.195336.6016
Module start 'content' 0.00760.0075 775.796989.9844
Module end 'content' 0.01510.0017 865.781333.9922
Script end 0.0168  899.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002414.0293140.0002
Check MTime0.00116.3364140.0001
Mysql Total
Database connection0.00073.912910.0007
Mysqli_queries0.002816.680330.0009
Looping result0.00000.159710.0000
Template Total0.00116.510.0011
Template load0.00095.162110.0009
Template processing0.00021.297210.0002
Override
Cache load0.00063.360410.0006
General
dbfile0.002816.547580.0003
String conversion0.00000.048040.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