PDA

View Full Version : how to create 2 template via plugin?


redspider
01-17-2006, 10:50 PM
Hello I want to create 2 template via plugin can someone post how to make this please.
for exaple :

1.Template 1
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - Template 1!</title>
$headinclude
</head>

$header
$navbar



<!-- Your HTML code here-->

<!-- /Your HTML code here-->

$footer
</body>
</html>


2.Template 2

$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - Template 2!</title>
$headinclude
</head>

$header
$navbar

<!-- Your HTML code here-->

<!-- /Your HTML code here-->

$footer
</body>
</html>

if someone can help base on this to simple template I would learn thank you for any help.

sorry post in wrong section was a accident I will click report for a mod to move this .

Guest190829
01-17-2006, 10:55 PM
You can't create a template with a plug-in, but you can with a product:

1.) Make the template in the Master Style

2.) Set the product as the product you want to export.

3.) Export Product via the Product Manager.

Reeve of shinra
01-17-2006, 10:56 PM
How do you make a template in the master style btw?
Same for adding phrases?

Guest190829
01-17-2006, 10:59 PM
You have to have debug mode turned on, and you just go to:

Admin CP -> Styles & Templates -> Style Manager -> Select "Add new template" for the master style.

redspider
01-17-2006, 11:02 PM
You have to have debug mode turned on, and you just go to:

Admin CP -> Styles & Templates -> Style Manager -> Select "Add new template" for the master style.
This I understand but when I get to step 2 is where I lost .

cinq
01-18-2006, 12:16 AM
Use this attached product xml file.
Should be easy to understand what to substitute in there.
If in doubt, just ask :)

redspider
01-18-2006, 09:32 AM
Use this attached product xml file.
Should be easy to understand what to substitute in there.
If in doubt, just ask :)
thank you so much now I understand how to create template via product thanks to you.
also want to thanks Danny sorry I did not get all his instrutions but he did try to help.