Page 1 of 1

submenu pages never showing in menu yet enabled

Posted: Wed Dec 14, 2011 1:09 am
by Patr100
I am trying to help fix an existing site running version 1.9.4.3 "Faanui"


Sub pages : When I try to ensure a subpage shows in the menu
- I enable "show in menu" "Bulk operation was successfully updated". but refreshing the page in the browser
yet it never shows up. This happens for all pages I try to show. Tried three different browsers so doubt it's a caching issue?.
The settings seem identical from those pages which are showing in the menu and those which are not.

Re: submenu pages never showing in menu yet enabled

Posted: Wed Dec 14, 2011 9:28 am
by Dr.CSS
What does the {menu} tag look like?...

Re: submenu pages never showing in menu yet enabled

Posted: Wed Dec 14, 2011 11:13 am
by Patr100
Not sure if I am looking in the right place
Under extensions > tags :

simple_navigation.tpl (read only) {menu}

is enabled.
Others are not.

Re: submenu pages never showing in menu yet enabled

Posted: Wed Dec 14, 2011 2:11 pm
by RonnyK
The question was how {menu} was called in the template... Not what was showing in the menu-templates.

So if you look at the template that is attached to the page, how is {menu.....} called. It could be that you call with parameter number_of_levels=1 f.e. which would make it never show children..

Ronny

Re: submenu pages never showing in menu yet enabled

Posted: Wed Dec 14, 2011 3:50 pm
by Patr100
I'm looking at the code for the templates used and I'm seeing this: if I'm still looking at the wrong place you'll have to be more specific. This CMS is relatively new to me, and so far not as simple as I had expected.

Code: Select all

    	$(document).ready(function(){ 
        	$(document).pngFix();
        	
        	
        	$("#menu a").hover(
      			function () {
        		$(this).fadeTo(250, 0.4);
        		},
        		function () {
        		$(this).fadeTo(200, 1.00);
        		}
				);
				
				
				$('#pics_sub').cycle({	fx: 'fade',
								speed:   1000,
								timeout: 5000
							});
				 	
           	}); 
	</__script>
	
	<__script__ type="text/javascript">
		$(function(){
			$('ul.sf-menu').superfish();
		});
	</__script>

Re: submenu pages never showing in menu yet enabled

Posted: Wed Dec 14, 2011 5:34 pm
by Dr.CSS
Can you paste the full page template, the one that the pages use?...

Re: submenu pages never showing in menu yet enabled

Posted: Wed Dec 14, 2011 11:36 pm
by Patr100
Is this what you require?

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>RAMSI : International Risk Management Consultants in UK and Oman</title>
	<link href="css/ramsi.css" rel="stylesheet" type="text/css"/>
	
	<__script__ src="js/jquery-1.3.2.min.js" type="text/javascript"></__script>
	<__script__ src="js/jquery.pngFix.js" type="text/javascript"></__script>
	<__script__ src="js/jquery.cycle.all.min.js" type="text/javascript"></__script>
	<__script__ src="js/jquery.hoverIntent.minified.js" type="text/javascript"></__script>
	<__script__ src="js/superfish.js" type="text/javascript"></__script>{literal}
	<__script__ type="text/javascript"> 
    	$(document).ready(function(){ 
        	$(document).pngFix();
        	
        	
        	$("#menu a").hover(
      			function () {
        		$(this).fadeTo(250, 0.4);
        		},
        		function () {
        		$(this).fadeTo(200, 1.00);
        		}
			);
			
			$('#pics').cycle({	fx: 'fade',
								speed:   1000,
								timeout: 5000
							});
				
           	}); 
	</__script>
	
	<__script__ type="text/javascript">
		$(function(){
			$('ul.sf-menu').superfish();
		});
	</__script>
{/literal}
	
</head>
</__body class="home">
<div id="main">
	<div id="mainimg"><h1>Ramsi : International Risk Management Consultants in UK and Oman</h1>
		
			<a href="./" class="homepage"><span>Ramsi homepage</span></a>
		
	</div>
	
	<div id="container">
	
		<div id="menu">
{global_content name='menu'}
</div>
		
		<div id="content">
{content}
</div>
		
	</div>
</div>

<div id="footer">
	<div id="footermain">
Copyright &copy; Ramsi Risk Management 2009. All Rights Reserved | <a href="./privacy-statement.html">Privacy Statement</a> | <a href="./contact.html">Address</a>
	</div>
</div>

<div id="search">{search submit="> Search" resultpage="sresult"}</div>
<div id="pics">
	<img src="images/img1.jpg" alt="" /> 
    <img src="images/img2.jpg" alt="" /> 
    <img src="images/img3.jpg" alt="" />
	<img src="images/img4.jpg" alt="" /> 
    <img src="images/img5.jpg" alt="" /> 
    <img src="images/img6.jpg" alt="" />
	<img src="images/img7.jpg" alt="" /> 
</div>

{global_content name='googlestats'}
<__body>
</__html>

Re: submenu pages never showing in menu yet enabled

Posted: Thu Dec 15, 2011 1:19 pm
by Patr100
Ok what I have found is the existing menu is added as a global content which I assume is some kind of customisation by whoever was last to work on this project and can add further links etc manually in the code . If I remove it this menu completely the default options do not kick in - I am left with no menu at all, so I am wary of tampering with it til I perhaps get more advice.
I don't want to break this site as I need to hand it over to a client soon and as I say I am new to this CMS.

Re: submenu pages never showing in menu yet enabled

Posted: Thu Dec 15, 2011 7:13 pm
by RonnyK
Better check what is inside of the GCB, as it either has fixed calls or a number_of_levels parameter.

Content->GlobalContentBlocks.

Ronny

Re: submenu pages never showing in menu yet enabled

Posted: Thu Dec 15, 2011 7:16 pm
by Dr.CSS
You need to have at least {menu} in your template to get any menu links...

What does the global content block have in it?...

Also look in Menu Manager for a menu that has <ul class='sf-menu'> in it, then use that for your menu tag call...

Re: submenu pages never showing in menu yet enabled

Posted: Thu Dec 15, 2011 9:57 pm
by Patr100
This is what is in the global content block named "menu" -
As I say, I can probably manual edit this and add pages etc but it not what I would like to ask a client to do.
I see that I probably need to try to add the sf- menu to the menu manager but it wasn't laready listed there and to make a new one the code below isn't enough to insert in the required field. Activating it didn't make any difference. I'm not sure what else need to be in the menu field to add the entry to the manager.
As I can't see an example from the other menus to suggest what's required.

Code: Select all

<ul class="sf-menu">
<li class="current"><a class="about" href="../index.php?page=about-us"><span>About Us</span></a> </li>
<li><a class="solutions" href="#"><span>Solutions</span></a> <ul>
<li><a href="../index.php?page=risk-management">Risk Management</a> </li>
<li><a href="../index.php?page=enterprise-risk-management">Enterprise Risk Management</a> </li>
<li><a href="../index.php?page=information-technology-and-system-integration">Information technology and system integration</a> </li>
<li><a href="../index.php?page=compliance">Compliance</a> </li>
<li><a href="../index.php?page=corporate-governance">Corporate Governance</a> </li>
<li><a href="../index.php?page=financial-regulation">Financial Regulation</a> </li>
<li><a href="../index.php?page=training-in-all-aspects-of-risk-management">Training in all aspects of risk management</a> </li>
<li><a href="../index.php?page=business-development">Business development</a> </li>
<li><a href="../index.php?page=project-management">Project Management</a></li>
<li><a href="../index.php?page=internal-audit-and-financial-controls">Internal Audit and Financial Controls</a></li></ul></li>
<li><a class="insight" href="#"><span>Insight</span></a> <ul><li><a href="../index.php?page=faq">FAQ</a> </li>
<li><a href="../index.php?page=publications">Publications</a> </li>
</li></ul></li>
<li><a class="industries" href="#"><span>Industries</span></a><ul><li><a href="../index.php?page=energy-sector">Energy Sector</a></li>
<li><a href="../index.php?page=banking-sector">Banking Sector</a></li>
<li><a href="../index.php?page=other-financial-services">Other Financial Services</a></li>
<li><a href="../index.php?page=communications">Communications</a> </li>
<li><a href="../index.php?page=government-services">Governmental Services</a> </li>
<li><a href="../index.php?page=pharmaceuticals">Pharmaceuticals</a> </li>
<li><a href="../index.php?page=chemicals">Chemicals</a></li></ul></li>
<li><a class="services" href="../index.php?page=training"><span>Training</span></a></li>
<li><a class="contact" href="../index.php?page=contact"><span>Contact</span></a> </li>
</ul>

Re: submenu pages never showing in menu yet enabled

Posted: Thu Dec 15, 2011 11:03 pm
by calguy1000
Okay that is a hardcoded navigation, which is never gonna read the data from the CMSMS database about which pages were added/deleted,hidden from the menu, enabled/disabled, etc....

What I suggest you do is:

A: Install a new version of CMSMS 1.10.2 on a test environment somewhere.
B: Read all of the documentation that comes with the system in sample pages, templates, stylesheets, and menu manager templates.

By doing this you will begin to understand how CMSMS works. In this test environment you will see that adding, deleting, renaming, marking a page as active/inactive all dynamically effect the navigation if the navigation is implemented properly.

Then you can take the knowledge that you have gained, along with your CSS and html experience back to the system you are trying to 'fix' and re-implement a valid navigation on that system.

And upgrade that system to CMSMS 1.10.2 as 1.9.4.3 is no longer supported.

Re: submenu pages never showing in menu yet enabled

Posted: Fri Dec 16, 2011 1:06 am
by Patr100
calguy1000 wrote:Okay that is a hardcoded navigation, which is never gonna read the data from the CMSMS database about which pages were added/deleted,hidden from the menu, enabled/disabled, etc....

What I suggest you do is:

A: Install a new version of CMSMS 1.10.2 on a test environment somewhere.
B: Read all of the documentation that comes with the system in sample pages, templates, stylesheets, and menu manager templates.

By doing this you will begin to understand how CMSMS works. In this test environment you will see that adding, deleting, renaming, marking a page as active/inactive all dynamically effect the navigation if the navigation is implemented properly.

Then you can take the knowledge that you have gained, along with your CSS and html experience back to the system you are trying to 'fix' and re-implement a valid navigation on that system.

And upgrade that system to CMSMS 1.10.2 as 1.9.4.3 is no longer supported.
Hi yeah I already installed the latest version on another site to play around with it over the last few days so I realised the navigation should have behaved as you say. I have been reading and reading the documentation. I tried to make a copy of the site on another test site so I really could play around with it without worrying about breaking it but for various reasons it wasn't possible and I only have a limited time looking at this issue on the site itself. I just haven't got the luxury of time. I have fixed a number of other issues for the client . But without being able to make a reliable backup ( I did read the options and try but as I say , for various reasons , unsuccessful) I would be wary of upgrading the older site at the moment.