I was wondering if its possible to set up virtual paths & pages in Umbraco that'll follow a certian Document Type (DT)?
For example:
Theme is a DT which contains multiple fields, which one is a Multinode Treepicker of Document. A template is associated with it.
Document is another DT which contains a Title, a .PDF file, and a Description field. No template is associated. A Document can be associated with one or multiple Themes.
Tree looks like
Homepage (Root)
Theme 1 (DT Theme)
Page 1
Page 2
Theme 2 (DT Theme)
Documents
Document 1 (DT Document)
Document 2 (DT Document)
I want a Virtual Page that'll display the Document element when we navigate to
/Theme-1/Documents/{id} or /Theme-2/Documents/{id}/
Let me know if I wasn't clear enough. Thank you in advance!
Setting up Virtual paths and pages
Hello,
I was wondering if its possible to set up virtual paths & pages in Umbraco that'll follow a certian Document Type (DT)?
For example:
Theme is a DT which contains multiple fields, which one is a Multinode Treepicker of Document. A template is associated with it.
Document is another DT which contains a Title, a .PDF file, and a Description field. No template is associated. A Document can be associated with one or multiple Themes.
Tree looks like
I want a Virtual Page that'll display the Document element when we navigate to /Theme-1/Documents/{id} or /Theme-2/Documents/{id}/
Let me know if I wasn't clear enough. Thank you in advance!
I think you have 2 options :
A virtual node handler : http://jamessouth.me/archive/fun-with-umbracovirtualnoderoutehandler/
Or using a content finder : http://24days.in/umbraco/2014/urlprovider-and-contentfinder/
https://our.umbraco.org/Documentation/Reference/Routing/Request-Pipeline/IContentFinder
Dave
Thank you for your reply Dave. It provided me with a good starting point.
I managed to make it work using a content finder.
My solution was mostly based on: http://24days.in/umbraco/2014/urlprovider-and-contentfinder/
is working on a reply...