How to change the home page link

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.
Post Reply
TJINAK
Forum Members
Forum Members
Posts: 136
Joined: Wed Feb 22, 2006 1:01 am

How to change the home page link

Post 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
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: How to change the home page link

Post 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.
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
TJINAK
Forum Members
Forum Members
Posts: 136
Joined: Wed Feb 22, 2006 1:01 am

Re: How to change the home page link

Post 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
Last edited by TJINAK on Sat Apr 21, 2007 3:53 pm, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: How to change the home page link

Post 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
TJINAK
Forum Members
Forum Members
Posts: 136
Joined: Wed Feb 22, 2006 1:01 am

Re: How to change the home page link

Post 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
TJINAK
Forum Members
Forum Members
Posts: 136
Joined: Wed Feb 22, 2006 1:01 am

Re: How to change the home page link

Post 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
Post Reply

Return to “CMSMS Core”