
Hello,
I've been using Artisteer for a number of years and every template I've edited I always add a variable on the template to allow me to choose a different CSS file per template style. I'd like to be able to do the same in Themler. To modify an Artisteer file I would first add the variables as a fieldset on the template's XML file, templateDetails.xml. Then I'd modify the index.php file to get the variables and display, and voila! I could add a CSS file for every template style I create...
How do I do the same procedure on a Themler index.php file? It does not have the same properties where I can display Custom page style. Anyplace I add it busts the template. Any suggestions?
// this is what I add to XML file
<field name="pagestyle" type="list" default="default_style"
label="Page Style"
description="Changes the page style sheet."
filter="word">
<option value="default_style">Default Style</option>
<option value="services_style">Services Style</option>
<option value="style_about">About Page Style</option>
<option value="style_services">Services Page Style</option>
<option value="style_clients">Clients Page Style</option>
<option value="style_contact">Contact Page Style</option>
<option value="style_news">News Page Style</option>
</field>
These are what I add to index.php file to get the name of the stylesheet and display.
// get page style params from template
$pagestyle = $this->params->get('pagestyle');
But, I don't know where to add this part on Themler's index.php file:
<!--display Custom page style -->
<link rel="stylesheet" type="text/css" href="<?php echo $templateUrl; ?>/css/<?php echo $pagestyle ?>.css" media="screen" />
Any suggestions on where to add this last line to output the CSS file path?
Thank you in advance!
Bernard
Hello, I've been using Artisteer for a number of years and every template I've edited I always add a variable on the template to allow me to choose a different CSS file per template style. I'd like to be able to do the same in Themler. To modify an Artisteer file I would first add the variables as a fieldset on the template's XML file, templateDetails.xml. Then I'd modify the index.php file to get the variables and display, and voila! I could add a CSS file for every template style I create... How do I do the same procedure on a Themler index.php file? It does not have the same properties where I can display Custom page style. Anyplace I add it busts the template. Any suggestions? // this is what I add to XML file <field name="pagestyle" type="list" default="default_style" label="Page Style" description="Changes the page style sheet." filter="word"> <option value="default_style">Default Style</option> <option value="services_style">Services Style</option> <option value="style_about">About Page Style</option> <option value="style_services">Services Page Style</option> <option value="style_clients">Clients Page Style</option> <option value="style_contact">Contact Page Style</option> <option value="style_news">News Page Style</option> </field> These are what I add to index.php file to get the name of the stylesheet and display. // get page style params from template $pagestyle = $this->params->get('pagestyle'); But, I don't know where to add this part on Themler's index.php file: <!--display Custom page style --> <link rel="stylesheet" type="text/css" href="<?php echo $templateUrl; ?>/css/<?php echo $pagestyle ?>.css" media="screen" /> Any suggestions on where to add this last line to output the CSS file path? Thank you in advance! Bernard