Skip to content

Instantly share code, notes, and snippets.

@mghdotdev
Created August 31, 2015 18:57
Show Gist options
  • Save mghdotdev/178cabb0012bd26bcc96 to your computer and use it in GitHub Desktop.
Save mghdotdev/178cabb0012bd26bcc96 to your computer and use it in GitHub Desktop.
MVT: URI Management - Load Category / Product / Page
<mvt:comment>
`Store_Category_URL`
NAME: The returned URI.
PARAMS:
[1] `category var` - The category variable (must include the category's id and code)
[2] `flag var` - Structure unknown (Supposed to return either HTTPS or HTTP version of the passed URI)
</mvt:comment>
<mvt:do file="g.Module_Feature_URI_UT" name="l.settings:category:uri" value="Store_Category_URL(l.settings:category, NULL)" />
<mvt:comment>
`Store_Page_URL`
NAME: The returned URI.
PARAMS:
[1] `page var` - The page variable (must include the page's id and code)
[2] `flag var` - Structure unknown (Supposed to return either HTTPS or HTTP version of the passed URI)
</mvt:comment>
<mvt:do file="g.Module_Feature_URI_UT" name="l.settings:page:uri" value="Store_Page_URL(l.settings:page, NULL)" />
<mvt:comment>
`Store_Product_URL`
NAME: The returned URI.
PARAMS:
[1] `product var` - The product variable (must include the product's id and code)
[2] `flag var` - Structure unknown (Supposed to return either HTTPS or HTTP version of the passed URI)
</mvt:comment>
<mvt:do file="g.Module_Feature_URI_UT" name="l.settings:product:uri" value="Store_Product_URL(l.settings:product, NULL)" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment