Forums / Setup & design / Override Process

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

eZ debug

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

Main resources:

Total runtime0.8112 sec
Peak memory usage4,096.0000 KB
Database Queries189

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 588.7266180.8438
Module start 'content' 0.00790.6542 769.5703446.1953
Module end 'content' 0.66210.1491 1,215.7656333.8125
Script end 0.8111  1,549.5781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.5732210.0002
Check MTime0.00190.2371210.0001
Mysql Total
Database connection0.00120.150810.0012
Mysqli_queries0.725689.45021890.0038
Looping result0.00310.37741870.0000
Template Total0.779096.020.3895
Template load0.00240.297620.0012
Template processing0.776695.736420.3883
Template load and register function0.00020.028410.0002
states
state_id_array0.00120.143810.0012
state_identifier_array0.00150.182620.0007
Override
Cache load0.00210.2642660.0000
Sytem overhead
Fetch class attribute can translate value0.00240.294020.0012
Fetch class attribute name0.00190.230420.0009
XML
Image XML parsing0.00040.054820.0002
class_abstraction
Instantiating content class attribute0.00000.001020.0000
General
dbfile0.00370.4559210.0002
String conversion0.00000.000930.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs