[solved] Submenus not working - PLEASE HELP!

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
lprintz
Forum Members
Forum Members
Posts: 76
Joined: Thu Jun 19, 2008 5:59 pm

[solved] Submenus not working - PLEASE HELP!

Post by lprintz »

Hi guys!

I've used CMSMS dozens of times for clients but this has got me completely stumped!!!

With my latest install (V 1.10.3) I'm getting some very weird things happening with my subpages.

Please look at http://www.gymnasticsvillage.com/index.php

Notice the subpages under 'About'...works fine.

Now look at the subpages under 'Classes'...WTF???

All of these pages use the SAME template and the subpages under 'Classes' are DUPLICATES of the about section!

I'm COMPLETELY stumped and I sure hope somebody can bail me out...fingers crossed!

Len
Last edited by lprintz on Wed Aug 01, 2012 2:34 pm, edited 1 time in total.
uniqu3

Re: Submenus not working - PLEASE HELP!

Post by uniqu3 »

add {metadata] to your Template, it is missing <base> tag.
lprintz
Forum Members
Forum Members
Posts: 76
Joined: Thu Jun 19, 2008 5:59 pm

Re: Submenus not working - PLEASE HELP!

Post by lprintz »

Thanks so much for your quick reply!

Meta is there and the strange thing is why the subpages work under 'about' but not 'classes' when they're all using the same template?

I've pasted my template below...PLEASE ignore the gross tables...the client didn't want to pay me to bring their site to the 21st century :)

Len


{process_pagedata}<!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">
{* Change lang="en" to the language of your site *}

{* note: anything inside these are smarty comments, they will not show up in the page source *}
<head>
{if isset($canonical)}<link rel="canonical" href="{$canonical}" />{elseif isset($content_obj)}<link rel="canonical" href="{$content_obj->GetURL()}" />{/if}

<title>{title} | {sitename}</title>
{* The sitename is changed in Site Admin/Global settings. {title} is the name of each page *}

{metadata}
{* Don't remove this! Metadata is entered in Site Admin/Global settings. *}

<__script__ type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/j ... "></__script>
<__script__ type="text/javascript" src="menu.js"></__script>

<link rel="STYLESHEET" type="text/css" href="styles.css">

{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
{* Relational links for interconnections between pages, good for accessibility and Search Engine Optmization *}

<!--[if IE 6]>
<__script__ type="text/javascript" src="modules/MenuManager/CSSMenu.js"></__script>
<![endif]-->
{* The above JavaScript is required for Menu - NCleanBlue-css to work in IE6 *}

{* the literal below and the /literal at the end are needed whenever there are {"curly brackets"} as smarty will think it's something to process and will throw an error *}
{* IE6 png fix *}
{literal}
<!--[if IE 6]>
<__script__ type="text/javascript" src="uploads/NCleanBlue/js/ie6fix.js"></__script>
<__script__ type="text/javascript">
// argument is a CSS selector
DD_belatedPNG.fix('.sbar-top,.sbar-bottom,.main-top,.main-bottom,#version');
</__script>
<style type="text/css">
/* enable background image caching in IE6 */
html {filter:expression(document.execCommand("BackgroundImageCache", false, true));}
</style>
<![endif]-->
{/literal}

</head>
</__body>

<div align="center">

<table border="0" cellpadding="0" cellspacing="0" width="800">
<tr>
<td><img name="topleft" src="gfx/top-left.gif" width="13" height="53" border="0" id="topleft" alt="" /></td>
<td>


<table width="774" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="gfx/nav-left.gif" /></td>

<td width="734"><div id="menuRow">
<div id="menu">
{menu}
</div>
</div></td>
<td><img src="gfx/nav-right.gif" /></td>
</tr>
</table>
</td>
<td><img name="topright" src="gfx/top-right.gif" width="13" height="53" border="0" id="topright" alt="" /></td>
</tr>
<tr valign="top">
<td background="gfx/tile-left.gif"><img name="tileleft" src="gfx/tile-left.gif" width="13" height="520" border="0" id="tileleft" alt="" /></td>
<td bgcolor="#f5330d">

<!-- MAIN AREA -->
<table border="0" cellpadding="0" cellspacing="0" width="774">
<tr valign="top">
<td><img name="n1left" src="gfx/7-left.gif" width="12" height="520" border="0" id="n1left" alt="" /></td>
<td>

<!-- SIDE COLUMN -->
<table border="0" cellpadding="0" cellspacing="0" width="210">
<tr>
<td colspan="3"><a href="index.php"><img name="n1logo" src="gfx/7-logo.gif" width="210" height="100" border="0" id="n1logo" alt="" /></a></td>
</tr>
<tr>
<td colspan="3"><img name="sidetop" src="gfx/side-top.gif" width="210" height="25" border="0" id="sidetop" alt="" /></td>
</tr>
<tr valign="top">
<td background="gfx/side-left.gif"><img name="sideleft" src="gfx/side-left.gif" width="20" height="365" border="0" id="sideleft" alt="" /></td>
<td bgcolor="#f69932" align="left">

<div id="side">
{global_content name='side-home'}
</div>

<img width="170" height="1" src="gfx/spacer.gif" />

</td>
<td background="gfx/side-right.gif"><img name="sideright" src="gfx/side-right.gif" width="20" height="365" border="0" id="sideright" alt="" /></td>
</tr>
<tr>
<td colspan="3"><img name="n1sidebottom" src="gfx/7-side-bottom.gif" width="210" height="30" border="0" id="n1sidebottom" alt="" /></td>
</tr>
</table>
<!-- END SIDE COLUMN -->

</td>
<td>

<!-- CONTENT COLUMN -->
<table border="0" cellpadding="0" cellspacing="0" width="552">
<tr>
<td>{content block="page-image"}</td>
</tr>
<tr>
<td><img name="n1row" src="gfx/7-row.gif" width="552" height="12" border="0" id="n1row" alt="" /></td>
</tr>
<tr>
<td><img name="n1phone" src="gfx/7-phone.gif" width="552" height="22" border="0" id="n1phone" alt="" /></td>
</tr>
<tr valign="top">
<td align="left">

<div id=content>

{content}



</div> </td>
</tr>
</table>
<!-- END CONTENT COLUMN -->

</td>
</tr>
</table>
<!-- END MAIN AREA -->

</td>
<td background="gfx/tile-right.gif"><img name="tileright" src="gfx/tile-right.gif" width="13" height="520" border="0" id="tileright" alt="" /></td>
</tr>
<tr>
<td><img name="bottomleft" src="gfx/bottom-left.gif" width="13" height="27" border="0" id="bottomleft" alt="" /></td>
<td><img src="gfx/7-bottom.gif" width="774" height="27" border="0" id="bottomhome" alt="" /></td>
<td><img name="bottomright" src="gfx/bottom-right.gif" width="13" height="27" border="0" id="bottomright" alt="" /></td>
</tr>
</table>

<!-- FOOTER -->
<table width="760" cellpadding=5 border=0>
<tr valign="top">
<td class="footerCopy" align="center">

{global_content name='footer'}

</td>
</tr>
</table>
<!-- END FOOTER -->

</div>

<__body>
</__html>
uniqu3

Re: Submenus not working - PLEASE HELP!

Post by uniqu3 »

When i look at sourcecode of http://www.gymnasticsvillage.com/classes/test-1-2.html it is absolutely not the same as your home pages.
So you have something messed up there, either some redirect or what do i know :)

But my tip is, you have old files from old site on smae webspace, where possibly a folder named /classes exists.
lprintz
Forum Members
Forum Members
Posts: 76
Joined: Thu Jun 19, 2008 5:59 pm

Re: Submenus not working - PLEASE HELP!

Post by lprintz »

You had me excited there for a second! The old site resides with the new so there very well COULD have been a directory named 'classes' but, alas, there is not.

I do see that the code is from the OLD site for whatever reason.

What's really stumping me is why it works under 'about' but not under 'classes.' I purposely duplicated these pages to run this test.

It DOES work when I remove the heirarchy...is there an easy way to remove this? I ran across the heirarchy issue in the past, poured through forum posts and it looks like it's an issue for a lot of people...I actually don't need heirarchy for this site.

Thanks SO much for your help. I really wish I could figure out why it works in one place and not the other though...exact same template!
uniqu3

Re: Submenus not working - PLEASE HELP!

Post by uniqu3 »

Sorry but i do not understand you, is it realy so hard to clean up your file mess?
Look into potential .htaccess files where some sort of redirection could be triggered?

By all means, i do not have "magical glass ball" (or whatever it's called) to see what is going on there.
It is not CMSMS Problem but simply your miss-configuration. Disable mod_rewrite for CMS and you will not have to bother wasting "your" time cleaning up and searching what you possibly have setup on your server from old days.
lprintz
Forum Members
Forum Members
Posts: 76
Joined: Thu Jun 19, 2008 5:59 pm

Re: Submenus not working - PLEASE HELP!

Post by lprintz »

Could somebody else out there lend a hand?

It would help if somebody actually READS and UNDERSTANDS my predicament rather than cast insults.

If my files were a 'mess' it wouldn't work under the 'about us' section now would it?

btw - the actual code IS a mess as I inherited old tables, HOWEVER, all of the base stuff was taken from the out-of-the-box template.

Thanks so much!

Len
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Submenus not working - PLEASE HELP!

Post by Jos »

Take a look at the html source of both pages and you will notice that the sub-pages are obviously NOT generated by CMSms.

Could it be that the subpages are not of type "content" but of type "redirect" or something similar?
lprintz
Forum Members
Forum Members
Posts: 76
Joined: Thu Jun 19, 2008 5:59 pm

Re: Submenus not working - PLEASE HELP!

Post by lprintz »

Howdy!

Yeah...it's weird that it's pulling code from the OLD site and I apologize to the last poster as the dropdowns under 'about' was hidden by the slideshow on the home page so perhaps he wasn't seeing what I was explaining.

If you refresh and navigate to the subpages of 'classes' and 'about'...these pages are DUPLICATES and are using the exact same template.

No idea how or why it would pull code from an old page.

I am completely at a loss!

Len
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Submenus not working - PLEASE HELP!

Post by Jos »

maybe you want to post the content of your .htaccess file?
lprintz
Forum Members
Forum Members
Posts: 76
Joined: Thu Jun 19, 2008 5:59 pm

Re: Submenus not working - PLEASE HELP!

Post by lprintz »

Here you go!

Please ignore the 301s...that's from a previous site and I haven't relinked for this site yet.


# Attempt to override some php settings, these settings may be helpful on some hosts if your
# default configuration does not meet CMS's minimum requirements, and your host
# has given your account appropriate permissions
#php_value upload_max_filesize "10M"
#php_value session_save_path "tmp/cache"

#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off

# (this is important, so uncomment if your host permit)
#Options -Indexes
#ServerSignature Off
#
Options +FollowSymLinks
#

RewriteEngine on
#
#Sub-dir e.g: /cmsms
RewriteBase /

RewriteRule ^wed.php$ http://www.beachplumtoo.com/weddings-flowers.html [R=301,L]
RewriteRule ^spec.php$ http://www.beachplumtoo.com/special-occ ... owers.html [R=301,L]
RewriteRule ^elist.php$ http://www.beachplumtoo.com/mailing-list.html [R=301,L]
RewriteRule ^loc.php$ http://www.beachplumtoo.com/contact-us.html [R=301,L]
RewriteRule ^cont.php$ http://www.beachplumtoo.com/contact-us.html [R=301,L]





# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# except for form POSTS
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteCond %{REQUEST_METHOD} !POST$
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]



RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

<IfModule mod_rewrite.c>



</IfModule>
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Submenus not working - PLEASE HELP!

Post by Jos »

I'm not an expert on htacces but are you able to replace its content with the htaccess.txt file you can find in the docs directory?

You can add the 301 redirects later
uniqu3

Re: Submenus not working - PLEASE HELP!

Post by uniqu3 »

lprintz wrote: It would help if somebody actually READS and UNDERSTANDS my predicament rather than cast insults.
How about you reading what i actually replied?
And this was not insulting, but asking you to see what kind of file mess is located where CMSMS is located.

What did i refer to?

That there must be some sort of "REDIRECTING"? Sorry but i do not have other explanation about your problem, don't see a problem in your .htaccess, but you might have another one somewhere else, or maybe even setup some kind of redirecting in your Server CP.
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Submenus not working - PLEASE HELP!

Post by Jos »

uniqu3 wrote:don't see a problem in your .htaccess,
I don't see the lines
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]

Maybe I overlooked them or maybe they are not important? They seem important to me ;)
uniqu3

Re: Submenus not working - PLEASE HELP!

Post by uniqu3 »

You think? :D ::)
Post Reply

Return to “CMSMS Core”