Page 1 of 1

[SOLVED]implementing a new template on the server

Posted: Tue Mar 06, 2012 10:47 am
by chrisbar
I have a wrking website, but I would like to introduce a new template (whole new website). Houw do I configure this at the hosting server, so that my current website keeps on working while I am building the new website (template) in the background?
Currently working with version 1.9.4.2
Thanks for the help!

Re: implementing a new template on the server

Posted: Tue Mar 06, 2012 12:01 pm
by uniqu3
Create a template in Layout -> Templates, add Stylesheets in Layout -> Stylesheets, attach stylesheets to Template.

Create a page "Show in Menu" unchecked so it is not visible, select from Template dropdown, new Template you have created.

View page in Browser and change Template, Stylesheets as needed.

If your html markup and smarty tags will be the same then you can work on live site to, by simply adding {cms_stylesheet name='my_new_style'} to template.

For example:

{if $smarty.server.REMOTE_ADDR == 'MY.IP.ADDRESS'}
{cms_stylesheet name='my_new_style'}
{else}
{cms_stylesheet}
{/if}

Where MY.IP.ADDRESS would be your IP

[SOLVED] Re: implementing a new template on the server

Posted: Tue Mar 20, 2012 11:58 am
by chrisbar
Thank you! It works. Maybe you also know what to do in the menu of the template 'artisteer'. The dropdownmenu now also shows the numbers in front of the pagename f.i. 2.2 Organisation. This numbering should not be shown.

Thanks so much

[CLOSED] Re: implementing a new template on the server

Posted: Thu Mar 29, 2012 7:02 am
by chrisbar
solved! Thanks