solved Changing the landing page

alt=
MisterG
@misterg
11 years ago
7 posts
Our Community (community.tpl) page is much more engaging to visitors and members than our Home (index.tpl) page which has very little (virtually none) site content and as such we would like to change the landing page of the site from the Home to Community page.

We are trying to figure out just how to do this. We noticed that the .htaccess refers to modules/jrCore/router.php but not sure which line to edit for the landing page change.

We opted for the 'lazy' approach and copied the content of the community.tpl file onto the index.tpl in the jrFlashback skin folder but then found that it was quite counterproductive to do it this way as the Home page seems to go in a loop when clicked afterwards so we had to rollback the index.tpl file.

Any help on how to change the landing page properly would be greatly appreciated.

Module versions in use:
- Core: 5.1.27
- Skin: Flashback 1.1.7

Thanks in anticipation.
updated by @misterg: 05/08/16 04:40:26PM
douglas
@douglas
11 years ago
2,804 posts
Before making any major changes like this to a skin, you may want to clone the skin first using the Free Developers Module > Tools > Clone Skin tool. This way new updates to the Flashback skin will never over write your modifications.

After cloning your skin, you can then just copy the content/code you want on the home page from the skins/jrFlashback/community.tpl file to replace the code in your skins/jrFlashback/index.tpl. You may also want to modify the skins/jrFlashback/header.tpl to remove the community link so your don't have double content.

Hope this helps,
Douglas


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

updated by @douglas: 05/25/14 10:18:52AM
alt=
MisterG
@misterg
11 years ago
7 posts
Thanks @douglas for the assistance on this.

Very much in line with our thinking but noticed we were doing a number of things wrong when we had attempted it.

In the first instance we had not cloned the skin (very important indeed).

Also, we had copied the entire community.tpl code into the index.tpl rather than just the lines between {jrCore_include template="header.tpl"} and {jrCore_include template="footer.tpl"}. This did eliminate the sort of loop we thought was happening when clicking the Home menu afterwards.

Thanks a million for the help on this, much appreciated.
douglas
@douglas
11 years ago
2,804 posts
Glad to be of help. :)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

Tags