cmsimple_xh remove submenu from content pages

About the template and stylesheet - and changing the menu
Post Reply
named
Posts: 2
Joined: Fri Sep 25, 2009 12:36 pm

cmsimple_xh remove submenu from content pages

Post by named » Fri Jun 18, 2010 5:17 am

Removing "Submenu" from content pages doesnt works.
No <?php echo submenu();?> in the "template.htm" or .css files, the content page(s) (h1) still shows the submenu.

Must I write a own script($cf['functions) to solve this?
Diff b. cmsimple / cmsimple _xh?

Lost in toc :-)
regards,

leenm
Posts: 116
Joined: Wed Dec 09, 2009 12:33 pm
Location: Kloetinge, Netherlands
Contact:

Re: cmsimple_xh remove submenu from content pages

Post by leenm » Fri Jun 18, 2010 7:51 am

named wrote:No <?php echo submenu();?> in the "template.htm" or .css files, the content page(s) (h1) still shows the submenu.
It should be enough to hide the submenu. Which version of CMSimple(_XH) do you use?
You certainly don't have to write your own function.

Leen

Tata
Posts: 3588
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: cmsimple_xh remove submenu from content pages

Post by Tata » Fri Jun 18, 2010 9:04 am

Hm, how can you see the submenu if it is not called from the template? The only possibility is, that the call #CMSimple $output.=submenu();# is called directlz on the page. Check if this code is not used on the pages.
If you use CMsimple v.3-, edit your content.htm and find/replace this code with "nothing".
If you use CMSimple_XH with hi_pd_scripting plugin, deactivate the plugin call in Plugins tab for each page containing the submenu.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

named
Posts: 2
Joined: Fri Sep 25, 2009 12:36 pm

Re: cmsimple_xh remove submenu from content pages

Post by named » Fri Jun 18, 2010 10:28 am

Using CMSimple_XH 1.1.2 Build: 2010031002 .
The <?php echo submenu();?> is erased from the template, yes is strange but I can still see the submenu.

</h4><ul class="submenu"><li class="doc">

"If you use CMSimple_XH with hi_pd_scripting plugin, deactivate the plugin call in Plugins tab for each page containing the submenu"
I have the hi_pd_scripting plugin, but no "Plugins tab"?

I just want to hide the submenus on my content pages, not from the menu.
Cache problem?
Ideas?

Tata
Posts: 3588
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: cmsimple_xh remove submenu from content pages

Post by Tata » Fri Jun 18, 2010 11:40 am

named wrote:I just want to hide the submenus on my content pages, not from the menu.
Cache problem?
Ideas?
That's it. Removing any mention of submenu(); both from content and/or tamplate.htm or pagedata.php shall remove the submenu from any page-subpage-sub-sub-page.
The submenu in "menu"has nothing to do with submenu function. It is created by toc() function.

It may also be a case of cache. Try to empty the cache and/or open the page in different borwser.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Post Reply