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.