storing html snippets for other pages

Vote:
 

I want to be able to add content to the CMS that I can then dynamically load into other pages.  The content will have a standard structure, say Title and Body, but will never be viewed by itself.  It is only to be used within other pages, say to fill a tabbed menu or carousel control or something.

What is the best solution to this?

We are using v6.1.379.1 of the CMS.  I saw some information on Container Pages but I am not sure if they are actually available or not.  They seemed like just the ticket.  The only downside was not having a preview available although it seemed maybe there was a way to have one.

Thanks!

#59425
Jun 08, 2012 0:58
Vote:
 

Have you looked at dynamic content plugins? Ted has a nice post on it here: http://tedgustaf.com/en/blog/2011/4/creating-dynamic-content-in-episerver-cms-6-r2/

#59431
Jun 08, 2012 11:13
Vote:
 

Thank's for the reply.  I will look further into that option but I am not sure it addresses our rquirement.  Le me explain in just a little more detail.

We have a carousel control that will contain anywhere from 3 - 5 items.  The content of the items will come from the CMS.  Each item will need an HTML snippet, some header text and a URL.  Previously our designer had just added 5 sets of properties to any page containing this carousel.  In my opinion this is too limiting and I would like the carousel to dynamically populate itself based on what is in the CMS.

My initial idea was to create a page type for these items and then add them as children of the page containing the carousel.  We would end up with something like:

Home Page
    Carousel Item 1
    Carousel Item 2
    Carousel Item 3
    etc.

The carousel control would then look for pages of type Carousel Item to fill in the carousel.  The only issue is that the Carousel Item pages are never meant to be viewed by themselves.  They are only there to fill in the carousel control on the Home page.

Does a dynamic content plugin solve this requirement?  If not, is my solution ok or is there a better way?

Thanks again!

#59449
Edited, Jun 11, 2012 21:56
Vote:
 

Sure you can use Page Types for this, if you're using CMS 6 R2 you can use the container page type (doesn't have view mode) or you can set the shortcut to No link, only text (basically does the same as container page types). Other options to consider is using something like MultipleProperty, in the usage instruction document they have an example of creating an image gallery that can easily be adapted to a carousel.

Hope this helps.

Frederik

#59450
Jun 11, 2012 22:02
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.