wcw
06-11-06, 05:43 PM
Several have asked how to change
http://www.pinemporium.com/p/LC_00004/ADVENTURES+OF+HUCKLEBERRY+FINN.html
to
http://www.pinemporium.com/p/LC_00004/ADVENTURES_OF_HUCKLEBERRY_FINN.html
As you know the mvt renders a + in the display of the name. So if you can replace the spaces in the product names before builting the rewritten link, you can make it more palatable to the search engines. Here is a tip for those who have the Emporium Plus Tool Kit. It does a couple dozen mivascript operations. Two of them are used for the conversion. First, save the product name variable to a variable (eg urlname) you can mess with. Then replace all the spaces in the variable with the _ character. You are not stuck with the _ character; if you thing there is a better one, use it.
<mvt:item name="toolkit" param="vassign|urlname|l.all_settings:product:name" />
<mvt:item name="toolkit" param="sglosub|urlname, ,_" />
Then instead of using
&mvta:product:name;.html
in the rewritten url, use
&mvta:global:urlname;.html
You can see this method employed at
http://www.pinemporium.com/mm5/merchant.mvc?Screen=PLST
If you have not gotten the Tool Kit module yet and want it, it is available at
http://www.emporiumplus.com/go/wcw/PROD/1AAM5/1AA00223
http://www.pinemporium.com/p/LC_00004/ADVENTURES+OF+HUCKLEBERRY+FINN.html
to
http://www.pinemporium.com/p/LC_00004/ADVENTURES_OF_HUCKLEBERRY_FINN.html
As you know the mvt renders a + in the display of the name. So if you can replace the spaces in the product names before builting the rewritten link, you can make it more palatable to the search engines. Here is a tip for those who have the Emporium Plus Tool Kit. It does a couple dozen mivascript operations. Two of them are used for the conversion. First, save the product name variable to a variable (eg urlname) you can mess with. Then replace all the spaces in the variable with the _ character. You are not stuck with the _ character; if you thing there is a better one, use it.
<mvt:item name="toolkit" param="vassign|urlname|l.all_settings:product:name" />
<mvt:item name="toolkit" param="sglosub|urlname, ,_" />
Then instead of using
&mvta:product:name;.html
in the rewritten url, use
&mvta:global:urlname;.html
You can see this method employed at
http://www.pinemporium.com/mm5/merchant.mvc?Screen=PLST
If you have not gotten the Tool Kit module yet and want it, it is available at
http://www.emporiumplus.com/go/wcw/PROD/1AAM5/1AA00223