Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > map part of url to property of document View modes: 
User avatar
Certified Developer 8
Certified Developer 8
jao - 4/14/2013 4:03:41 AM
   
map part of url to property of document
Is there a way to map a part of a product to a document property?

For example I have the following url /Products/Big-Animals/Elephant.html that the Big-Animals part links to the Product type field?

And that when I visit /Products/Big-Animals.html I can have a repeater look for WHERE ProductType='Big-Animals'?

I know there are wildcard URL's, for example for membership and category (but documentation is quite poor on them). Is something like that possible for custom document types?

User avatar
Kentico Legend
Kentico Legend
Accepted solutionAccepted solution
Brenden Kehren - 4/15/2013 10:59:58 AM
   
RE:map part of url to property of document
On your products page you'd need to setup URL aliases. For instance

/Products/{CategoryName}
/Products/{CategoryName}/{Product}

Then on your products page, your repeater looks at those querystring parameters and dynamically loads the categories and/or products based on what it finds. Technically you won't have a physical page you set up for categories or products, those will be dynamically generated based on the parameters (or querystring values). You can then retrieve those querystring values in your WHERE clause by using the macro {%CategoryName%} or {%Product%}

User avatar
Certified Developer 8
Certified Developer 8
jao - 4/17/2013 9:32:52 AM
   
RE:map part of url to property of document
Thank you!! This is the solution!