Is there a function call, similar to CategoryList_Load_Parent( l.settings:current_category:id, l.settings:categoryStuff) that will bring up the URI Management resources (url, name, etc)
Announcement
Collapse
No announcement yet.
Function Call to Get URI Management Resources
Collapse
X
-
Function Call to Get URI Management Resources
Bruce Golub
Phosphor Media - "Your Success is our Business"
Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
phosphormedia.comTags: None
-
Like URIList_Load_Category( cat_id, uris var) ? In LSK\features\uri\uri_db.Gordon Currie
Phosphor Media - "Your Success is our Business"
Improve Your Customer Service | Get MORE Customers | Edit Any Document Easily | Free Modules | Follow Us on Facebook
phosphormedia.com
-
Here is the template code to load just the canonical URI
Code:<mvt:assign name="l.uri:store_id" value="g.Store:id" /> <mvt:assign name="l.uri:screen" value="''" /> <mvt:assign name="l.uri:page_id" value="0" /> <mvt:assign name="l.uri:cat_id" value="0" /> <mvt:assign name="l.uri:product_id" value="1" /> <mvt:do file="g.Module_Feature_URI_DB" name="l.have_uri" value="URI_Load_Item_Canonical( l.uri, l.settings:canonical_uri )" /> <mvt:if expr="l.have_uri"> &mvt:canonical_uri:canonical; <br> &mvt:canonical_uri:cat_id;<br> &mvt:canonical_uri:page_id;<br> &mvt:canonical_uri:status;<br> &mvt:canonical_uri:store_id;<br> &mvt:canonical_uri:uri;<br> </mvt:if>
Last edited by Brennan; 06-15-16, 01:02 PM.
Comment
-
OK, let's pile on top of this. I am using this to break up a readytheme image and try to piece it back together on the home page. For simplicity I've stripped everything out except for what's needed......
My question, what do I use here to draw in the full URI? the "link_target" doesn't work, because that just draws in the category code. I need the sluggified name, or whatever ends up being the URI in the event it's customized.......
<mvt:item name="readytheme" param="Load_Image('sfnt_hero',g.sfnt_hero)" />
&mvt:global:sfnt_hero:link_dest;
So what would I couple with this Load_Image to draw in the selected category's actual generated URI?Ted Hust
AarcMediaGroup.com
Celebrating 13 Years of Outstanding Service & Support
Miva Merchant Design
Comment
-
I'll answer, I needed the same thing. Somebody else hopefully does too.
Code:<mvt:do name="l.result" file="g.Module_Library_DB" value="Category_Load_Code( g.sfnt_hero:link_dest, l.settings:current_category )" /> <mvt:assign name="l.uri:store_id" value="g.Store:id" /> <mvt:assign name="l.uri:screen" value="''" /> <mvt:assign name="l.uri:page_id" value="0" /> <mvt:assign name="l.uri:cat_id" value="l.settings:current_category:id" /> <mvt:do file="g.Module_Feature_URI_DB" name="l.have_uri" value="URI_Load_Item_Canonical( l.uri, l.settings:canonical_uri )" /> <mvt:if expr="l.have_uri"> canonical: &mvt:canonical_uri:canonical; <br> cat_id: &mvt:canonical_uri:cat_id;<br> uri: &mvt:canonical_uri:uri;<br> </mvt:if>
Colin Puttick
Miva Web Developer @ Glendale Designs
Comment
Comment