Page 1 of 1

How to change the home page link

Posted: Fri Apr 20, 2007 3:03 pm
by TJINAK
Hello and Thanks for reading!

I'm wanting to point my home page to a page outside of CMSMS. 

Like this:

Home page links should all go to : http://pcs-alaska.com/cpo/index.htm

The rest of the site within CMSMS, like this page: http://pcs-alaska.com/mjustindmd/index. ... t-dr-moore

I need to keep visitors from getting to the index page within CMSMS and always return to http://pcs-alaska.com/cpo/index.htm.

I know this may seem silly but I've tried and tried to get my homepage layout to work with CMSMS but I'm to new to the project and my deadline is here.

Can someone kindly advise me on this.

Thank you,

Tim

Re: How to change the home page link

Posted: Sat Apr 21, 2007 12:33 am
by kermit
see http://forum.cmsmadesimple.org/index.ph ... 007.0.html for a tip on 'hard coding' a home page url in a menu template. note this doesn't change it for anything else (just menus), but it's a start.

however, why can't you make a new (page) template in cmsms for the layout/content of http://pcs-alaska.com/cpo/index.htm and call it your default cmsms page? you create the (home) page in cmsms and select the new 'home page' template for it, but leave its content area blank (a html comment should be sufficient for cmsms to accept the ''empty'' content area on page save); putting everything in the template for that page instead.

Re: How to change the home page link

Posted: Sat Apr 21, 2007 3:49 pm
by TJINAK
Hello,

Thanks for replying to my post about changing the homepage link to a page outside of the cmsms directory.

I started to follow your changes by first looking at what menu template my site is using.
Left simple navigation + 1 column

I find this as the menu reference:

{menu template='simple_navigation.tpl' collapse='1'}

So I went into the simple_navigation.tpl and made the change as refered to in your posting yesterday.  By the way is there no way to edit the .tpl from within the admin side?  I had to edit it directly on the server via a shell.

Here is what I did:

alias !="home"}{$node->url}{else}/http://pcs-alaska.com/cpo/{/if}"{if $node->accesskey != ''} accesskey="{$node->accesskey}"{/if}{if $

{/if}

But no joy.  Then menu links are still pointing to the index page of the cmsms install.

I'm so close to having this project finished and really appreciate your help.

If I could fix it so all homepage links (header & menu) point to my current homepage I could be done for now and start working on getting that homepage in cmsms like it should be.

Again, thanks for your posting!

Tim

Re: How to change the home page link

Posted: Sun Apr 22, 2007 7:15 am
by RonnyK
Tim,

to answer your question concerning the changing of the .tpl. If you go to "Menu Manager -> File templates", you can import one of the default templates to the database, which then can be edited through the "Menu Manager -> Database templates" where a button for "Edit template" is available.

I can't answer your other question as I don't quite understand wat you try to accomplish. Do you want your CMS site to be opened and only some menu-entries in CMS to point to your old site.

Ronny

Re: How to change the home page link

Posted: Mon Apr 23, 2007 12:32 am
by TJINAK
Thank you for the reply.

I'm simply tring to get the header link and menu link for my homepage to point to http://pcs-alaska.com/cpo/index.htm instead of the default homepage that is setup as http://pcs-alaska.com/mjustindmd/ (which is where all my subpages should reside).

Thank you,

Tim

Re: How to change the home page link

Posted: Mon Apr 23, 2007 3:20 am
by TJINAK
I resolved the issue by moving the design into cmsms, which was the correct way to go from the begining.

Here is how I did it thanks to a fellow cmsms guru.

http://forum.cmsmadesimple.org/index.ph ... 659.0.html

Thank you,

Tim