Miva Merchant 4 Module FAQs » Product Page Templates (BROK_PRODTEMPLATES )


{docurl}

I would like to use a token within another token, such as: %begin_if|%module|mymod|1|%|% stuf %end_if% But this isn't working correctly. Why?

(2003/11/19)The problem lies in the order in which the tokens are being processed. The %module token is processed AFTER the %begin_if token, so when the expression is evaluated the %module token has not yet been replaced with it's contents.

To get around this I have updated the module to add %var2|expression|%, %begin_if2|expression|%...%end_if2%, and %begin_notif2|expression|%...%end_notif2 tokens. They work just like their counterparts which lack the 2 but they are processed last of all tokens so that you can use other token in the expression, including %module| tokens from third party modules.



Last update: 2004-12-07 14:03
Author: Support
Revision: 1.0

Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry

Records in this category