one of the 'annoyances' in cmsms is that when you use 'pretty urls', the 'home' or 'default' page's alias is included in the generated menus. instead of using just "/" or "http://www.yourdomain.com/" for the link of the site's default page, the menus have "http://www.yourdomain.com/home/" (or similar)... with two urls (such as http://www.yourdomain.com/ and http://www.yourdomain.com/home/) both pointing to the same page, search engines can get a little kornfused, and who knows.. the duplicate content on multiple 'pages' may even hurt a little....
to make your menus output a different url for your 'home' page .. replace:
$node->url
in your menu template(s) with:
{if $node->alias !="home"}{$node->url}{else}/cms/{/if}
where 'home' (in red, above) is the alias of the page you want to output a different url for; and '/cms/' (in blue, above) is the url you want inserted instead. (note there is likely more than one instance of $node->url to change)
this example would be if your cmsms installation was in the subdirectory /cms/ (i.e. http://www.yourdomain.com/cms/)
to just point to the domain root, use just / or type it out http://www.yourdomain.com/
this doesn't address cms_selflink or sitemap tags or the output of something like the google sitemap generator.... only the menu generation.
hide page alias from default page url in menus
hide page alias from default page url in menus
Last edited by kermit on Sun Apr 22, 2007 2:35 pm, edited 1 time in total.
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
Re: hide page alias from default page url in menus
Ah... didn't know of the $node->alias... used just $node->titleattribute for this feature... thanks very much.
On the other hand, titleattribute is more usable for me, because it can be used more easily with header_link_to_child_not_show_child
On the other hand, titleattribute is more usable for me, because it can be used more easily with header_link_to_child_not_show_child
Last edited by Vin on Sun Mar 25, 2007 12:08 pm, edited 1 time in total.