PDA

View Full Version : Templatetype Question!


Super Jinni
04-10-2009, 06:46 AM
Hi,

Can anyone please help me to find out where I can set templatetype when creating a new template?

As I saw in lots of products xml files, if the product has template, the code in the xml file about that is in this way:

<template name="xxx" templatetype="template" date="xxx" username="xxx" version="xxx">


OR

<template name="xxx" templatetype="css" date="xxx" username="xxx" version="xxx">


You can see there is this templatetype="template" and/or templatetype="css"

So how to set the template type when creating a new template of a new product?

Also I want to know what are the template types that could be used beside template and css?


thanks :)

Super Jinni
04-11-2009, 12:42 PM
WTF!
No one knows?!!!!!!!!!!!!!!

Andreas
04-11-2009, 12:52 PM
There are 4 types:

template
These are normal templates (like header, footer, navbar, etc.)
css
These are CSS definitions
stylevar
These are style variables (like image paths, widths, etc.)
replacement
These are replacement variables


You can't create CSS definitions via AdminCP, you must add them directly in the DB.
You will also need at least 2 Plugins inf you want to create your own CSS definitions (that's what CSS "templates" are).

Super Jinni
04-11-2009, 06:20 PM
Thanks Andreas.
I think I need to look more and put my head into it for fully understanding.
if anyone can point me where to begin with that, that will be appreciated.
thanks

nexialys
04-11-2009, 06:29 PM
oh, and you also need to relax a little, it's not an instant answering machine here, Andreas have a life... like the others...

Super Jinni
04-12-2009, 03:21 AM
oh, and you also need to relax a little, it's not an instant answering machine here, Andreas have a life... like the others...



No worries nexialys, in fact I'm relaxed more than you think.
and I don't see where I pushed Andreas or anyone else for an instant answer.
I just post as soon as I review my question thread (if there is a need to post of course).
also I don't see where it says I should not do that.

in fact, when I saw that you have posted to in this thread I thought it is something useful. but, ...
never mind.

thanks though :)

nexialys
04-12-2009, 02:12 PM
actually i was refering to your post #2, with the "wrong word".. :)

am i usually posting useful things here?!... nah...

Super Jinni
04-12-2009, 09:20 PM
aaha, you can there is more than 24 hours between the first post and second post of this thread.
posting useful/non-useful is up to you, actually. ;)
anyway, let's get back to the subject.
any help will be appreciated.

thanks :)

nexialys
04-12-2009, 10:07 PM
actually, Andreas' post was quite clear, what do you want to know more?!

you can not change the templatetype when you create a template, because all these titles are just to seperate the data in the database, nothing you can do about it. when you create a replacement variable it will be tagged with the right term, same when you edit the CSS variables, and so on.

Super Jinni
04-13-2009, 01:16 AM
Yes, I know, and I think you make clearer.

as a newbie I'm just trying to figure out how does these things works, that's all.

that's why I'm posting some silly and newbie's questions :D.

thanks :)