Master Pages
Is there any way to run code or put user controls in the master pages that sitefinity uses for a template? Does sitefinity just take the ContentPlaceHolders on the master page, create a template out of that and not use the actual master page file?
Hi Damian,
Actually Sitefinity uses master pages for the layout, but you can try to run your code inline from your master page.
Kind regards,
Dancho
the Telerik team
we're moving from 3.7 to 4.0 and in the direct translation of our master pages, it seems to do what damian described. it doesn't use our css or other content located in the .master file, just the placeholders. are we doing something wrong? does it also ignore the x.master.vb file?
Eagerly awaiting the answer to this issue myself...
Does css, javascript, or code behind do ANYTHING when creating your own master pages and creating a template??
What is the correct procedure? To create your own user controls and use them and the css/javascript widgets and place them IN the template that you created (via the master page)?
This is completely different than the 3.x days, so I think it is a pretty important concept to get some clarification on.
Hello guys,
The code behind, as well as any custom/user controls are not ignored, and should be executed just fine. This means, that not only the contentplace holders are taken into account, but any control or content on the masterpages.
Are you getting different result?
Kind regards,
Georgi
the Telerik team
I looked more into this, and code behind for master pages and any user controls on the master pages does get run normally.
@Damian - Did you have to do anything special? I am running Sitefinity 4.0.0.0 and it seems like the code behind files for my .master pages is being ignored.
Hi Liz,
There should not be a problem with executing a code behind of a master page, but the better option is using a custom and user controls.
Regards,
Ivan Dimitrov
the Telerik team