I'm new Umbraco. I'm using the latest version with Razor MVC. I have a WSMaster page for layout that loads all the different views depending where the user navigates.
WSMaster loads WHome, which is my landing page. I have created a document type called SideRail. When in WSHome, I'm parsing a collection of those objects in order to display a side rail in my WSHome, this content is static and doesn't link to pages inside the the application but outside.
Which means that my SideRail document type doesn't have a template. I just need the document type to parse my side rail and display information on the WSHome page. This is a problem for the content manager when creating content for this componenet because the only thing I have on my template is:
This is something Umbraco created by default when creating my SideRail type in the CMS. When I hit preview after creating a SideRail component nothing renders of course.
Is there a way for me to have my template point to WSHome so that content managers can see a preview of what they are building?
Again, I'm new to Umbraco so perhaps building my SideRail has a document type wasn't the best approach. Any help will be much appreciated.
Thanks for your reply! This worked like a charm. For taxonomy purposes I made the parent of my SideRails a SideRail repository. which doesn't have a template. But I set the layout of my template to Null and loaded WSHome by passing its ID like this:
Preview element that has no template
Hi,
I'm new Umbraco. I'm using the latest version with Razor MVC. I have a WSMaster page for layout that loads all the different views depending where the user navigates. WSMaster loads WHome, which is my landing page. I have created a document type called SideRail. When in WSHome, I'm parsing a collection of those objects in order to display a side rail in my WSHome, this content is static and doesn't link to pages inside the the application but outside.
Which means that my SideRail document type doesn't have a template. I just need the document type to parse my side rail and display information on the WSHome page. This is a problem for the content manager when creating content for this componenet because the only thing I have on my template is:
This is something Umbraco created by default when creating my SideRail type in the CMS. When I hit preview after creating a SideRail component nothing renders of course.
Is there a way for me to have my template point to WSHome so that content managers can see a preview of what they are building?
Again, I'm new to Umbraco so perhaps building my SideRail has a document type wasn't the best approach. Any help will be much appreciated.
Thanks!
One way that I was able to solve it, which is bit hacky, is by doing a redirecting through JS:
Again, not the most elegant way, more interested on learning the Umbraco way
Thanks again,
Hi Sheva,
Another way to try it is to use Umbraco.RenderTemplate() method and parent page as param, because we need to render parent page here:
Thanks,
Alex
Alex,
Thanks for your reply! This worked like a charm. For taxonomy purposes I made the parent of my SideRails a SideRail repository. which doesn't have a template. But I set the layout of my template to Null and loaded WSHome by passing its ID like this:
is working on a reply...