Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Set a default page pre-controller
sazzct
All the pages associated with a section of our site require the same pre-controller. Is there a way to make the pages have the pre-controller by default? It would be a shame if content editors need to know about pre-controllers, and how to add them to their pages. Can a pages pre-controller get associated with a page template? Any suggestions would be greatly appreciated. I know you can set it in the default.page, but then every page in that site would get it. If noone has a good solution, I guess I'll just have to layout the 'sites' to only have specific page types.
Find more posts tagged with
Comments
vpatel
Add your pre-controller at the site level if it is going to be executed for every single page
! If you only want it for pages within a specific sub-section only then you can add it at the site level and then in your pre-controller check for which section you are in and if in the right section do your processing otherwise quickly exit from the pre-controller.
Other option is to configure it on a per-page basis which your business users may not like.
sazzct
k, thanks... that should work, I can have the pre-controller work for all the pages on the site, and just not do anything if wrong page type. I was just hoping that somehow you could set it via using a 'template' or something like that. Our page layouts are all templated, so if the pre-controllers went along with the templates, that would have been ideal.