[SOLVED]implementing a new template on the server

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
chrisbar
Forum Members
Forum Members
Posts: 162
Joined: Tue Oct 26, 2010 7:36 pm

[SOLVED]implementing a new template on the server

Post 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!
Last edited by chrisbar on Sat Mar 31, 2012 10:43 am, edited 1 time in total.
uniqu3

Re: implementing a new template on the server

Post 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
chrisbar
Forum Members
Forum Members
Posts: 162
Joined: Tue Oct 26, 2010 7:36 pm

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

Post 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
chrisbar
Forum Members
Forum Members
Posts: 162
Joined: Tue Oct 26, 2010 7:36 pm

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

Post by chrisbar »

solved! Thanks
Locked

Return to “[locked] Installation, Setup and Upgrade”