Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi all
Using the directions described here:
http://our.umbraco.org/documentation/reference/Templating/Mvc/custom-controllers
I have setup a default controller to handle all requests, the reason for this is to handle redirects (i.e. switch page to HTTPS etc.).
This works great, except that it's overriding calls from Umbraco.RenderTemplate, so for these requests I just want to ignore.
Is there anyway of achieving this?
Thanks
Kev
Ok after a bit more investigation I discovered:
UmbracoContext.PublishedContentRequest.IsInitialPublishedContent
Which indicates whether this is the initial content being rendered.
Hi,
Where do use this code. I want to use rendertemplate in a event and have some issues.
Dave
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Hijack route, but not for RenderTemplate calls
Hi all
Using the directions described here:
http://our.umbraco.org/documentation/reference/Templating/Mvc/custom-controllers
I have setup a default controller to handle all requests, the reason for this is to handle redirects (i.e. switch page to HTTPS etc.).
This works great, except that it's overriding calls from Umbraco.RenderTemplate, so for these requests I just want to ignore.
Is there anyway of achieving this?
Thanks
Kev
Ok after a bit more investigation I discovered:
Which indicates whether this is the initial content being rendered.
Kev
Hi,
Where do use this code. I want to use rendertemplate in a event and have some issues.
Dave
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.