Share this:

Technorati ReddIt Favorites

Structure for special templates tags

gdT3 templates system uses mix of HTML, CSS, PHP and special markup template tags to extra data into the rendered output. Depending on the tag, they can have different structure and settings to control display. This tutorial explains the structure of the special tags in gdT3.

Image bellow shows the tag structure. Tags start and end with the % character. Tag has 3 main elements: tag name, mode and settings.

Template Tag Structure

Template Tag Structure

Some tags only need tag name, some use mode also, and some can use settings part. Name must be in the uppercase, and it can’t contain space characters. Same goes for mode: uppercase, no space. Settings part can contain one or more parameters. If there is more than one, they need to be separated by dot.

If the tag supports 5 parameters, and you want to change number 2 and 5, and leave the rest as default, tag will look like:

%TAG_NAME:MODE|.VAL_1...VAL_2%

There are some limitation to the parameters values you can use: they can’t contain these characters: . and %.

So, this is all you need to know about the tags structure. To see information about individual tags, you need to read documentation on the tags you need. Some tags are built into the core gdT3 library. Individual plugins using the library can add many more tags. For the list of basic tags, you can go through documentation archive: Basic template tags archive for gdT3.

Leave a Reply

Follow us on Twitter

Date Archives

Social Networks

Google Plus Profile Subscribe to RSS feed LinkedIn Profile Follow me on Pinterest Watch our Youtube Videos Find us on Flickr

Feedburner Feedburner updates

Sign up to receive news from this website to your email.

Recent Blog Posts

Dev4Press on YouTube

Share This

Technorati ReddIt Favorites