solved index.tpl redirect to existing page

Xephius
Xephius
@xephius
7 years ago
93 posts
Hey all,

This is probably a very simple to do, but I am not terribly experience on the code side of things. I would like to redirect index.tpl to an existing page located at /home. My goal is to make /home the default landing page. I think I need to modify the
 {jrCore_include template="index_login.tpl"} 
entry, but I am not sure what I should replace it with. Any suggestions would be appreciated. :)

Thanks!

John

{* /////////// DO NOT REMOVE //////////  *}
{assign var="page_template" value="index"}
{* /////////// DO NOT REMOVE //////////  *}

{jrCore_include template="header.tpl"}

{jrCore_include template="index_login.tpl"}

{jrCore_include template="footer.tpl"}


updated by @xephius: 10/08/17 07:17:59PM
michael
@michael
7 years ago
7,714 posts
Add this in to index.tpl
{jrCore_location('http://YOUR-SITE.COM/home')}
Xephius
Xephius
@xephius
7 years ago
93 posts
Can I also do it like this?

{jrCore_location({$jamroom_url}/home)}
michael
@michael
7 years ago
7,714 posts
what happened when you tried it?

If it worked, then yes. :) If not then try:
{jrCore_location("{$jamroom_url}/home")}
or
{jrCore_location("`$jamroom_url`/home")}
Xephius
Xephius
@xephius
7 years ago
93 posts
Discretion is often the better part of valor. Thanks!
michael
@michael
7 years ago
7,714 posts
Guess that means your sorted :) well done!