Multiple Master Pages or Page Templates?

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
9/15/2010 9:42:16 AM
Gravatar
Total Posts 116

Multiple Master Pages or Page Templates?

Hi Joe,

As I mentioned I have been doing a lot of work in Kentico recently (required by client not by choice) and have found a few things quite useful - namely the use of page templates.  I was wondering whether similar things can be achieved in mojoportal and will try and explain.....

In Kentico you setup the masterpage as normal but you can then setup page templates.  

The workflow is that you can create a page layout using css and asp as you would in a normal aspx page so you end up with something like:

 <div class="mainBanner">
 <div class="examplecContent">
 <ul><cms:CMSWebPartZone ID="exampleContentZone" runat="server" /></ul>
 </div>
 </div>

.........essentially if you have a html/css template for your page you can break it up and add it in here replacing actual content with placeholders.

Once that is done you can then apply this layout to a Page Template then open the template in design view and add modules where ever a placeholder exists in the layout.  This page template can then be applied to any page, once applied you can choose whether a page uses that template or whether you want to create an ad-hoc template that is unique to that page (mainly because the content of many types of module such as static html are saved to the page template rather than an individual page so all pages using that template are affected...).

The reason I like this system is that it divides up the page and it is very quick and easy to add module to areas, create new areas via the layouts etc.  It also divides up the page so that a user can edit a smaller section of the page which is less daunting and less likely to break things! lol Finally it means that more of the markup can be put into the background (all layouts / page templates are done in site admin and do not appear in the user side) so that on a large block of html content, the area can be broken down into parts the surrounding divs and markup can all be within the layouts and in many cases when well done the user can type plain text into the editable area and it will be correctly marked up / formatted.

I have been trying to work out how to do something similar in mojoportal and I know that if we only consider one page the same effect can be achieved via a masterpage with placeholders setup accordingly but on a website with many different page styles what is the best way to achieve a similar effect?  I expect that from what I have read you could allow users to choose page skins and you could effectively create several skins which are all identical other than the masterpages which are purposeful designed for that page type but this would mean users downloading several skins and sets of css, it would also mean maintaining several sets of css - is there a better / easier way to do this that you can recommend - i.e. is there a way of using more than one masterpage and can masterpages use css/images not in their skin?  I wonder whether it may also be worth considering for when the feature is added whereby masterpages/css can be edited directly in the site interface?  The other option would be if it were possible to set the dimensions of a module so that more than one can be added across the width of the page?

I know that this may represent some very non-trivial work and the reason I ask the question is purely because I much prefer mojoportal and have little interest in adopting Kentico as a CMS but I do think this is a good feature of it - I hope that my explanation is reasonably coherent, if not let me know and I will try to clarify.

Kind Regards

Andrew

You must sign in to post in the forums. This thread is closed to new posts.