multisite one database again

multisite one database again

Friday 13 July 2007 2:24:52 am - 3 replies

Modified on Friday 13 July 2007 3:15:58 am by Pesti Pal

Author Message

Pesti Pal

Friday 13 July 2007 5:55:44 am

Modified flat_top.tpl:

 menuitems=fetch( content, list, hash( parent_node_id, 2,
                                               class_filter_type, include,
                                               class_filter_array, ezini( 'MenuContentSettings', 'TopIdentifierList', 'menu.ini' ), sort_by, $root_node.sort_array ) )}

to

 menuitems=fetch( content, list, hash( parent_node_id, 

<b>59</b>

,
                                               class_filter_type, include,
                                               class_filter_array, ezini( 'MenuContentSettings', 'TopIdentifierList', 'menu.ini' ), sort_by, $root_node.sort_array ) )}

Isn't there an easyer way?
I haven't seen anywhere in the code that ez checks any of parent_node settings, it just puts 2 in it... is this a bug?

Betsy Gamrat

Sunday 15 July 2007 8:54:54 am

Hi,

2 is usually the top of the content tree. If changing it to 59 works for you, then you're all set.

If you would like the setting derived out of the .ini file, you could use something similar to:

menuitems=fetch( content, list, hash( parent_node_id,
ezini(  'SiteSettings','RootNodeID','site.ini'), 
class_filter_type, include,
class_filter_array, ezini( 'MenuContentSettings', 'TopIdentifierList', 'menu.ini' ), 
sort_by, $root_node.sort_array ) )} 

I didn't verify the syntax and labels on this, but the basic idea is to use ezini to get the RootNodeID out of site.ini.append.php

Good luck.

Pesti Pal

Monday 16 July 2007 1:04:26 am

Altered the code as you wrote. It works fine and I don't even need to make copies of flat_top.tpl.

Thanks

You must be logged in to post messages in this topic!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.