I'm really new to the CMS thing, but I found CMS Made Simple and I must say I've been incredibly impressed. So easy to use and modify.
Anyway, my issue is this. I'm trying to utilize the code shown in the Documentation for menu manager called "Generic sub-menu". My user defined tag looks like this:
Code: Select all
# Name: menuHierarchy
global $gCms;
$pos = $gCms->variables['position'];
$base = explode('.', $pos);
$smarty->assign('h_toplevel', $base[0] * 1);
$smarty->assign('h_parent', $base[ (count($base) > 1) ? count($base)-2 : 0 ] * 1);
$smarty->assign('h_this', $base[count($base)-1] * 1);Code: Select all
{menuHierarchy}
{cms_module module='menumanager' start_element=$h_parent collapse='0' number_of_levels='2'}My menus are as follows:
1 Home
2 Parish Information
2.1 - Staff
2.2 - Ministries
2.2.1 - - Youth Group
2.3 - Councils
2.3.1 - - Parish Council
2.3.2 - - Stewardship Committee
2.4 - Office Hours
2.5 - Faith Formation
2.6 - Sacraments
2.7 - Photo Gallery
2.8 - 2009 CMA
3 Contacts
4 Calendar
5 Bulletins and Quarterly
6 Links
If i'm in any of the 2.N pages I get Parish Information and all the 2.N pages. Not exactly what I want--I really just want the page's siblings, but pretty close. The big problem is if I'm in the 2.N.M pages--the youth Group page, for example, displays the same thing as any of the 2.N pages, and the Parish council page displays only "Contacts", and the Stewardship Committee page also displays only "Contacts".
There's obviously some indexing issue here, but I don't know enough about it to figure it out. Any thoughts? Thanks!

