PDA

View Full Version : Parsing issues in MM5 SMT pages


wcw
05-28-06, 01:17 PM
Apparently the token parser in the SMT is having problems with certain characters at the beginning of tokens. I have been asked about the date display when using the Emporium Plus Tool Kit. You can assign numeric values to the current month, day and year. Then when you want to display them, you have to take care in how they are placed in the page template or you will get the parsing bug in MM5. As example, you need to layout the tokens like


<br>Current date (our time): &mvt:global:nmonth;
/
&mvt:global:ndayofmonth;
/
&mvt:global:nyear;


This will give you something like 5 / 28 / 2006. If you try to jam the above code to one line to tighten it up, you get the parsing error that prevents the tokens from translating to their actual values.

If the spaces are detracting because you cannot write 5/28/2006, you could change the date display using the vgettoken in the tool kit to yield something like May 28, 2006.

sebenza
05-29-06, 01:57 AM
Yeah... I have seen this too. Another solution would be to use "." instead of "/". The period does not seem to be affected.

<br>Current date (our time): &mvt:global:nmonth;.&mvt:global:ndayofmonth;.&mvt:global:nyear;