Friday 25 April 2008 3:57:04 am
Ok, take that back. we have it working now. Problem 2) We were missing this part from ezflow template:
<!-- Extra content: START -->
{if $current_node_id}
{include uri='design:parts/extra_info.tpl'}
{/if}
<!-- Extra content: END -->
Which loads this piece of crucial code:
{def $global_layout_class = fetch( 'content', 'class', hash( 'class_id', 'global_layout' ) )
$global_layout_object = $global_layout_class.object_list[0]}
This loads up the globalzonelayout.tpl from our template folder so all is well :) Part 1) We are now working on this, we don't have it working yet so we are working on this kind of a work around, if someone reads this later on can comment on how stupid this is; Site structure:
Content
- Site 1
- Section 1.1
- Folder 1.1.1
- Article 1.1.1.1
- Site 2
- Section 2.1
- Folder 2.1.1
- Article 2.1.1.1
- Global section (hidden folder)
- Zone layouts (folder)
- Site 1 (folder)
- Global Zone Layout (Section 1) (global zone)
- Site 2 (folder)
After this we map the global zone layout of section one into section one, and in template we make a check of (pseudocode):
if exists(/content/<current site>/<current section>/ ->LinkToGlobalLayout)
$global_layout_object = <linkfromthesection>}
else
$global_layout_object = <use_some_other_global_layout>}
This is now the idea, if it works were very happy, if not, were screwed :D
|