Index  Up  <<  >>  


How can I tell when I need to quote a tag inside a tag?

In general, you don't need to quote the following tags which are interpreted first within a list:

    [item-code] [item-data ...] [item-field ...] etc.
    [loop-code] [loop-data ...] [loop-field ...] etc.
    [sql-code]  [sql-data ...]   [sql-field ...] etc.

This is because they are interpreted as a part of the surrounding [loop], [item-list], [search-list], [sql list], or [tag each table] constructs.

So this will work:

    [item-list]
    [page [item-field url]]detailed info[/page] on [item-description]
    [/item-list]

This will not work:

    [page [value mypage]]

The [value ...] tag is not interpolated before page, and the parser will not know to do so. It needs to be instead:

    [page href="[value mypage]"]

Clear as mud, right? Well, at least if you quote them all you can't go wrong. 8-)

IMPORTANT NOTE: The above only applies to New style tags. The old MiniVend 1.x/2.x parser interpolates tags in a highly ordered fashion and tags are rarely/never quoted. It is no longer recommended that you use the old parser. If you have constructs which work under the old parser and that you want to retain, surround them with a [compat]... the tags ...[/compat] tag pair to send them to the old parser.


Index  Up  <<  >>