Elxis CMS Forum

Support => General => Topic started by: xmanhattan on January 11, 2010, 18:17:03

Title: is the params in okto 2009 template correct?
Post by: xmanhattan on January 11, 2010, 18:17:03
Hello,

While comparing differences in the okto 2009 template, I noticed that in the templateDetails.xml there is a
Code: [Select]
<params /> at the bottom but I did not see any beginning code to offset.

Is this supposed to be here?
Title: Re: is the params in okto 2009 template correct?
Post by: datahell on January 12, 2010, 08:48:36
The code is correct.
The <params /> is equal to <params></params>
params must exist in the XML file of all templates for Elxis 2009.1+ even if the template has no parameters.
Title: Re: is the params in okto 2009 template correct?
Post by: babis1 on January 12, 2010, 16:00:17
you mean that we must add that parametr ? pe xml for blue in green

Code: [Select]
<?xml version="1.0" encoding="utf-8"?>
<mosinstall type="template" version="2008">
<name>BlueInGreen</name>
<creationDate>2008-04-21 13:21:45</creationDate>
<author>Ivan Trebješanin</author>
<copyright>(C) 2006-2008 Elxis.org. All rights reserved.</copyright>
<license>GNU/GPL</license>
<authorEmail>admin@elxis-srbija.org</authorEmail>
<authorUrl>http://www.elxis-srbija.org</authorUrl>
<version>2008.0</version>
<description>Elxis 2008.x frontend template.</description>
<files>
<filename>index.php</filename>
<filename>template_thumbnail.png</filename>
<filename>css/index.html</filename>
<filename>images/index.html</filename>
</files>
<images>
<filename>images/arrow.png</filename>
<filename>images/indent.png</filename>
<filename>images/indent1.png</filename>
<filename>images/indent2.png</filename>
<filename>images/indent3.png</filename>
<filename>images/indent4.png</filename>
<filename>images/indent5.png</filename>
<filename>images/indent6.png</filename>
<filename>images/back.png</filename>
<filename>images/circle.png</filename>
<filename>images/content.png</filename>
<filename>images/footer.png</filename>
<filename>images/fwd.png</filename>
<filename>images/h3.png</filename>
<filename>images/header.png</filename>
<filename>images/li.png</filename>
<filename>images/lia.png</filename>
<filename>images/menu1.png</filename>
<filename>images/menu.png</filename>
<filename>images/logo.png</filename>
</images>
<css>
<filename>css/customize.css</filename>
<filename>css/layout.css</filename>
<filename>css/template_css.css</filename>
</css>
</mosinstall>
we must add at the end <params></params>?
Title: Re: is the params in okto 2009 template correct?
Post by: xmanhattan on January 12, 2010, 17:30:21
According to datahell, yes.

Just add at the bottom before the last line like this.

Code: [Select]
     <params />
</mosinstall>
Title: Re: is the params in okto 2009 template correct?
Post by: datahell on January 12, 2010, 20:19:29
Yes, like peter wrote.

Documentation for Elxis template parameters (http://wiki.elxis.org/wiki/Template_parameters)