Hello to everybody.
I am a little new in the miva world, so I hope this post has sense :).
Basically I am writting a module which must insert some <mv:item/> tags in certain pages, my doubt is, how can I do that in a way that I can be sure the tag was correctly inserted?
The first attemp i used was this. Lets say I want to insert something into the SFNT page, and lets say that by default SFNT contains the text "MY_TEXT", then i could use glosub() function in this way
globsub('MY_TEXT', 'MY_TEXT', 'MY_TEXT' $ <mvt:item name="myItem" >)
The problem with that approach is that although 'MY_TEXT' may be at the SFNT page in the default installation, if the shop owner has customized it and removed the 'MY_TEXT' chain, then no replace will be performed by the globsub() function and the <mvt:item name="myItem" /> will not be inserted.
So, anybody knows if there is a better approach for this?.
Thanks in advance.
I am a little new in the miva world, so I hope this post has sense :).
Basically I am writting a module which must insert some <mv:item/> tags in certain pages, my doubt is, how can I do that in a way that I can be sure the tag was correctly inserted?
The first attemp i used was this. Lets say I want to insert something into the SFNT page, and lets say that by default SFNT contains the text "MY_TEXT", then i could use glosub() function in this way
globsub('MY_TEXT', 'MY_TEXT', 'MY_TEXT' $ <mvt:item name="myItem" >)
The problem with that approach is that although 'MY_TEXT' may be at the SFNT page in the default installation, if the shop owner has customized it and removed the 'MY_TEXT' chain, then no replace will be performed by the globsub() function and the <mvt:item name="myItem" /> will not be inserted.
So, anybody knows if there is a better approach for this?.
Thanks in advance.
Comment