Override Process

Author Message

Guilherme Longo

Monday 27 August 2007 1:51:23 am

I read and understood the override system, but i want know if is possible use the web admin interface to make changes in de default overriden template.

I thing thats is impossible, am i right?

Thanks thats is my last question, for today.

* I tryed too find my questions in forum, but i did'nt find enoght similar. because this i'm writting.

Guilherme Longo

Monday 27 August 2007 3:41:41 am

I thing that my question was wrong explaned.
I will try again:

I need make some changes in one menu in pagelayout.tpl

i need increse one more botton. look the code:

<b>* there is 2 buttons: (my_profile and logout)</b>

{if $current_user.is_logged_in}
{if $pagedesign.data_map.my_profile_label.has_content}
<li><a href={concat( "/user/edit/", $current_user.contentobject_id )|ezurl} title="{$pagedesign.data_map.my_profile_label.data_text|wash}">{$pagedesign.data_map.my_profile_label.data_text|wash}</a></li>
{/if}
{if $pagedesign.data_map.logout_label.has_content}
<li><a href={"/user/logout"|ezurl} title="{$pagedesign.data_map.logout_label.data_text|wash}">{$pagedesign.data_map.logout_label.data_text|wash} ( {$current_user.contentobject.name|wash} )</a></li>
{/if}
{else}

<b>* I put another code block for the new button:</b>

{if $current_user.is_logged_in}
{if $pagedesign.data_map.my_profile_label.has_content}
<li><a href={concat( "/user/edit/", $current_user.contentobject_id )|ezurl} title="{$pagedesign.data_map.my_profile_label.data_text|wash}">{$pagedesign.data_map.my_profile_label.data_text|wash}</a></li>
{/if}
{if $pagedesign.data_map.logout_label.has_content}
<li><a href={"/user/logout"|ezurl} title="{$pagedesign.data_map.logout_label.data_text|wash}">{$pagedesign.data_map.logout_label.data_text|wash} ( {$current_user.contentobject.name|wash} )</a></li>
{/if}
{if $pagedesign.data_map.about_label.has_content}
<li><a href={"/user/login"|ezurl} title="{$pagedesign.data_map.about_label.data_text|wash}">{$pagedesign.data_map.about_label.data_text|wash}</a></li>
{/if}

And, I add in more 2 parts this one

<!-- Top menu area: START -->
<div id="topmenu" class="float-break">
{include uri='design:menu/flat_top.tpl'}
</div>
<!-- Top menu area: END -->

{if not( and( is_set( $content_info.class_identifier ),
eq( $content_info.class_identifier, 'frontpage' ),
and( is_set( $content_info.viewmode ), ne( $content_info.viewmode, 'sitemap' ) ),
and( is_set( $content_info.viewmode ), ne( $content_info.viewmode, 'about' ) ), <!-- =========== Adiicionado ========== -->
and( is_set( $content_info.viewmode ), ne( $content_info.viewmode, 'tagcloud' ) )
)
)}

<!-- Path area: START -->
<div id="path">
{include uri='design:parts/path.tpl'}
</div>
<!-- Path area: END -->

{/if}

<!-- Toolbar area: START -->
<div id="toolbar">
{if and( $current_node_id,
$current_user.is_logged_in,
and( is_set( $content_info.viewmode ), ne( $content_info.viewmode, 'sitemap' ) ),
and( is_set( $content_info.viewmode ), ne( $content_info.viewmode, 'about' ) ), <!-- =========== Adiicionado ========== -->
and( is_set( $content_info.viewmode ), ne( $content_info.viewmode, 'tagcloud' ) ) ) }
{include uri='design:parts/website_toolbar.tpl'}
{/if}
</div>
<!-- Toolbar area: END -->

And doesnt work yet, whats is wrong, i dont understand

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 04:23:36
Script start
Timing: Jan 31 2025 04:23:36
Module start 'layout'
Timing: Jan 31 2025 04:23:36
Module start 'content'
Timing: Jan 31 2025 04:23:37
Module end 'content'
Timing: Jan 31 2025 04:23:37
Script end

Main resources:

Total runtime0.8429 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.0313151.1953
Module start 'layout' 0.00470.0026 739.226636.6172
Module start 'content' 0.00730.8347 775.8438864.3672
Module end 'content' 0.84200.0009 1,640.210911.8750
Script end 0.8429  1,652.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.3499160.0002
Check MTime0.00130.1506160.0001
Mysql Total
Database connection0.00050.059010.0005
Mysqli_queries0.763790.6014520.0147
Looping result0.00040.0507500.0000
Template Total0.810296.120.4051
Template load0.00180.213120.0009
Template processing0.808495.907620.4042
Template load and register function0.00150.179110.0015
states
state_id_array0.00120.138110.0012
state_identifier_array0.00100.122120.0005
Override
Cache load0.00160.1906660.0000
Sytem overhead
Fetch class attribute can translate value0.00050.061310.0005
Fetch class attribute name0.00200.236420.0010
XML
Image XML parsing0.00010.012310.0001
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00330.3878100.0003
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs