Forums / General / a new problem

a new problem

Author Message

jb bianchi

Wednesday 20 July 2005 7:15:03 am

Hello ,

Now i have an another problem.

I do this :

<b> 1. Bring up the administration interface.
2. Click on the "Design" tab.
3. Click on "Templates" (in the menu on the left hand side).
A list of template files will appear.
4. Locate "/node/view/full.tpl" and click on it.
5. On the next page, simply click "New override".
6. Type in "full_view_news_folder" into the "Filename" field.
7. Set the "Class" dropdown box to "Folder".
8. Set the "Selection" dropdown box to "News section".
9. Do not enter anything into the node field (leave it blank).
10. In the "Base template on" section, select "Empty file".
11. Click "OK".

This will generate an empty file ("design/tscm/override/templates/full_view_news_folder.tpl") and instruct eZ publish to use it every time a folder in the "News section" is viewed. Put the following lines into the file, raise the priority (with 1 being the highest), and clear the cache.
</b>

<h1>Latest news</h1>

{* Grab some of the content of the node that is being viewed. *}
{let children=fetch( content, list, hash( parent_node_id, $node.node_id,
                                     sort_by, $node.sort_array,
                                     limit, 7,
                                     class_filter_type, include,
                                     class_filter_array, array( 'article' ) ) )}

{* LOOP: For each child of the node... *}
{section name=Child loop=$children}

    {* Display the content of the child using a line-view template. *}
    {node_view_gui view=line content_node=$Child:item}

    <hr>

{* End of loop. *}
{/section}

{* End of namespace. *}
{/let}

but there is changment. My news page has not the good title. It 's keeep the title of the News folder and the short description too.
There are no <hr> tag too.

Thank's because i need help.

Stuart DH

Thursday 21 July 2005 8:03:12 am

Have you tried moving the new template up the list with a higher update priority?

The system will look through your templates and use one that fits as soon as it finds it. So if the old folder template has a higher priority than your new one, then the new one won't even get a look in.

Because the orignal template has global permissions then it also applies and will get used first, unless the new one comes before it.

http://www.wildaboutbritain.co.uk

jb bianchi

Friday 22 July 2005 12:44:34 am

I forget that I had to change the priority number.
Thank's

eZ debug

Timing: Jan 18 2025 16:16:53
Script start
Timing: Jan 18 2025 16:16:53
Module start 'content'
Timing: Jan 18 2025 16:16:53
Module end 'content'
Timing: Jan 18 2025 16:16:53
Script end

Main resources:

Total runtime0.1356 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 591.3047180.8594
Module start 'content' 0.00710.0053 772.164193.7969
Module end 'content' 0.01230.1231 865.9609525.2109
Script end 0.1355  1,391.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00413.0038200.0002
Check MTime0.00171.2852200.0001
Mysql Total
Database connection0.00070.541410.0007
Mysqli_queries0.092568.23001410.0007
Looping result0.00120.88681390.0000
Template Total0.122590.410.1225
Template load0.00120.864010.0012
Template processing0.121389.500810.1213
Override
Cache load0.00080.627010.0008
Sytem overhead
Fetch class attribute can translate value0.00090.636710.0009
XML
Image XML parsing0.00030.225710.0003
General
dbfile0.00161.2073200.0001
String conversion0.00000.003730.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