CMS Pattern Design : base template
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Content Management Server > CMS Pattern Design : base template




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    CMS Pattern Design : base template  
J. C. Loab


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-18-04 07:50 AM

Hi everyone,

I'm studying CMS development, reading lot of powerpoint files from various
teched (thanks mcmsfaq.com ).

I still have a question : lot of speakers talk about "base template" where
you defined your page layout (title, images ...) and then you create own
templates extending the base template.

I don't really see how to achieve this (I might be stupid :p).
What would be nice is to design a page with layouts like this for example :
--------------------------
|    |                          |      |
|    |                          |      |
|    |                          |      |
|    |                          |      |
|    |                          |      |
|    |                          |      |
|    |                          |      |







[ Post a follow-up to this message ]



    Re: CMS Pattern Design : base template  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-18-04 12:47 PM

Hi J,

I assume they mean that you can copy this base template and then update the
copied version.
Master pages which would allow to achieve this by inheritance will be
possible with ASP.NET 2.0 which is not yet supported by MCMS 2002.

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

MCMS FAQ:
http://download.microsoft.com/downl...>
MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...nagement+Server
MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


"J. C. Loab" <psykotick@gmail.com> wrote in message
news:OQP5wkOtEHA.1336@tk2msftngp13.phx.gbl...
> Hi everyone,
>
> I'm studying CMS development, reading lot of powerpoint files from various
> teched (thanks mcmsfaq.com ).
>
> I still have a question : lot of speakers talk about "base template" where
> you defined your page layout (title, images ...) and then you create own
> templates extending the base template.
>
> I don't really see how to achieve this (I might be stupid :p).
> What would be nice is to design a page with layouts like this for example
:
> --------------------------
> |    |                          |      |
> |    |                          |      |
> |    |                          |      |
> |    |                          |      |
> |    |                          |      |
> |    |                          |      |
> |    |                          |      |
>
>







[ Post a follow-up to this message ]



    Re: CMS Pattern Design : base template  
Yanir


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-18-04 10:50 PM

Hi
There are well known techhiques to Create your own
masterpage, by inheritance.
Principally, it's a OO design issue.

A simple way is to override the render method of a page.
render the reheader and footer, whereas on a page that
inherits from this page(and will be your actually aspx
file)  you write only your specific page controls.

The render method would iterate through all pages and add
them to the page controls collection.
There are more sophisticated paterns, but most of them use
this idea.
If you search "templates .net patterns" in google you will
probablly find the one that satisfy your needs best





[ Post a follow-up to this message ]



    Re: CMS Pattern Design : base template  
Spencer Harbar [MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-18-04 10:50 PM

This is a technique demonstrated by Arpan at TechEd.

It's a common ASP.NET practice which can be applied to MCMS template
development.

step one: Create a "base template" which includes common code elements, for
example code to output meta tags to a literal control.
step two: inherit from the base template class rather than
system.web.ui.page.

there's a sample of this in the video file from the session, but its well
covered in the BPR309 slide deck also.

hth
Spence
www.mcmsfaq.com





"J. C. Loab" <psykotick@gmail.com> wrote in message
news:OQP5wkOtEHA.1336@tk2msftngp13.phx.gbl...
> Hi everyone,
>
> I'm studying CMS development, reading lot of powerpoint files from various
> teched (thanks mcmsfaq.com ).
>
> I still have a question : lot of speakers talk about "base template" where
> you defined your page layout (title, images ...) and then you create own
> templates extending the base template.
>
> I don't really see how to achieve this (I might be stupid :p).
> What would be nice is to design a page with layouts like this for example
> :
> --------------------------
> |    |                          |      |
> |    |                          |      |
> |    |                          |      |
> |    |                          |      |
> |    |                          |      |
> |    |                          |      |
> |    |                          |      |
>
>







[ Post a follow-up to this message ]



    Re: CMS Pattern Design : base template  
Stefan [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-18-04 10:50 PM

Hi Spencer,

afaik this is only possible for the code parts.
Not for the design time elements.

Cheers,
Stefan.

--
This posting is provided "AS IS" with no warranties, and confers no rights.

MCMS FAQ:
http://download.microsoft.com/downl...>
MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...nagement+Server
MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------


"Spencer Harbar [MVP]" <spence@harbar.net> wrote in message
news:#KRlnXTtEHA.820@TK2MSFTNGP12.phx.gbl...
> This is a technique demonstrated by Arpan at TechEd.
>
> It's a common ASP.NET practice which can be applied to MCMS template
> development.
>
> step one: Create a "base template" which includes common code elements,
for
> example code to output meta tags to a literal control.
> step two: inherit from the base template class rather than
> system.web.ui.page.
>
> there's a sample of this in the video file from the session, but its well
> covered in the BPR309 slide deck also.
>
> hth
> Spence
> www.mcmsfaq.com
>
>
>
>
>
> "J. C. Loab" <psykotick@gmail.com> wrote in message
> news:OQP5wkOtEHA.1336@tk2msftngp13.phx.gbl... 
various[vbcol=seagreen] 
where[vbcol=seagreen] 
example[vbcol=seagreen] 
>
>







[ Post a follow-up to this message ]



    Re: CMS Pattern Design : base template  
Spencer Harbar [MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-18-04 10:50 PM

yup - it's only good for the code elements....

I should have read J.C.'s second post... 

cheers
s.


"Stefan [MSFT]" <stefang@online.microsoft.com> wrote in message
news:OwsvVaTtEHA.624@TK2MSFTNGP09.phx.gbl...
> Hi Spencer,
>
> afaik this is only possible for the code parts.
> Not for the design time elements.
>
> Cheers,
> Stefan.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>
> MCMS FAQ:
> http://download.microsoft.com/downl...
a/MCMS+2002+-+(complete)+FAQ.htm
> MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
> MCMS Sample Code:
> http://www.gotdotnet.com/community/...nagement+Server
> MCMS Whitepapers and other docs:
> http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
> --------------------------------
>
>
> "Spencer Harbar [MVP]" <spence@harbar.net> wrote in message
> news:#KRlnXTtEHA.820@TK2MSFTNGP12.phx.gbl... 
> for 
> various 
> where 
> example 
>
>







[ Post a follow-up to this message ]



    Re: CMS Pattern Design : base template  
J. C. Loab


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-19-04 07:47 AM

Thanks for all your response ...

I see there's no common answear to this problem =)

Hope that will change with Asp.Net 2.0.

Do we have a road map for the CMS product ? Stefan said that SPS and CMS
will merge but roughly when ? One year ? Two ? We're planning to buy the
product but we would like to have some info about the future (local seller
doesn't have the slightest idea).

Thanks for all and see you soon 

Regards

J.C







[ Post a follow-up to this message ]



    Re: CMS Pattern Design : base template  
Angus Logan [MVP]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-19-04 07:47 AM

Hi JC,

Do you have a Microsoft Account Manager/Partner manager/Technical Account
Manager?

If so you should be able to shoot them an email and ask them for some more
info.

Regards
--
 ________________________________________


Angus Logan  (MCAD/MCDBA/MCP/MVP for MCMS)
Product Specialist
Microsoft Application Solutions
Data#3 Limited
E angus_logan@data3.com.au
BLOG www.anguslogan.com
 ________________________________________

"J. C. Loab" <psykotick@gmail.com> wrote in message
news:eU1ZB1atEHA.1272@TK2MSFTNGP12.phx.gbl...
> Thanks for all your response ...
>
> I see there's no common answear to this problem =)
>
> Hope that will change with Asp.Net 2.0.
>
> Do we have a road map for the CMS product ? Stefan said that SPS and CMS
> will merge but roughly when ? One year ? Two ? We're planning to buy the
> product but we would like to have some info about the future (local seller
> doesn't have the slightest idea).
>
> Thanks for all and see you soon 
>
> Regards
>
> J.C
>
>







[ Post a follow-up to this message ]



    Re: CMS Pattern Design : base template  
Gabriele Cannata


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-19-04 12:48 PM

If what you want is Master Pages, that is putting page layout in one place (
"the master page") then putting all specific content (placeholders, etc) in 
another page, than there is a couple of techniques to reach this functionali
ty, similar two what master
pages do in asp.net 2.0.

Basically what you do is putting your layout in a user control (e.g. Layout.
ascx), then in a page you override AddParsedSubObject, by putting all contro
ls in a collection, then you add Layout.ascx to your page, and the controls 
you saved in specific place
holders  of the user control.

There are several examples of this on the net, do a search for "Master Pages
". We are using a slighty more complex version of this with our CMS 2002 web
 site with good results. Keep in mind that there will be some limitations of
 what you can put in those
layout controls, for examples code block won't work.

Bye

Gabriele Cannata
[vbcol=seagreen]
> Hi Spencer,
>
> afaik this is only possible for the code parts.
> Not for the design time elements.
> Cheers,
> Stefan.
> MCMS FAQ:
>
> http://download.microsoft.com/downl...3a1-4003-9272-2
> 404e92bb76a/MCMS+2002+-+(complete)+FAQ.htm
>
> MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
>
> MCMS Sample Code:
>
> http://www.gotdotnet.com/community/...aspx?ProductDro
> pDownList=Content+Management+Server
>
> MCMS Whitepapers and other docs:
>
> http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
>
> --------------------------------
>
> "Spencer Harbar [MVP]" <spence@harbar.net> wrote in message
> news:#KRlnXTtEHA.820@TK2MSFTNGP12.phx.gbl...
> 
> for
> 
> various
> 
> where
> 
> example
> 






[ Post a follow-up to this message ]



    Re: CMS Pattern Design : base template  
Gabriele Cannata


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-19-04 12:48 PM

If what you want is Master Pages, that is putting page layout in one place (
"the master page") then putting all specific content (placeholders, etc) in 
another page, than there is a couple of techniques to reach this functionali
ty, similar two what master
pages do in asp.net 2.0.

Basically what you do is putting your layout in a user control (e.g. Layout.
ascx), then in a page you override AddParsedSubObject, by putting all contro
ls in a collection, then you add Layout.ascx to your page, and the controls 
you saved in specific place
holders  of the user control.

There are several examples of this on the net, do a search for "Master Pages
". We are using a slighty more complex version of this with our CMS 2002 web
 site with good results. Keep in mind that there will be some limitations of
 what you can put in those
layout controls, for examples code block won't work.

Bye

Gabriele Cannata
[vbcol=seagreen]
> Hi Spencer,
>
> afaik this is only possible for the code parts.
> Not for the design time elements.
> Cheers,
> Stefan.
> MCMS FAQ:
>
> http://download.microsoft.com/downl...3a1-4003-9272-2
> 404e92bb76a/MCMS+2002+-+(complete)+FAQ.htm
>
> MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
>
> MCMS Sample Code:
>
> http://www.gotdotnet.com/community/...aspx?ProductDro
> pDownList=Content+Management+Server
>
> MCMS Whitepapers and other docs:
>
> http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
>
> --------------------------------
>
> "Spencer Harbar [MVP]" <spence@harbar.net> wrote in message
> news:#KRlnXTtEHA.820@TK2MSFTNGP12.phx.gbl...
> 
> for
> 
> various
> 
> where
> 
> example
> 






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:38 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register