November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
Hi,
I think you are mistaking display options for display channels.
This is probably what you need:
http://world.episerver.com/Documentation/Items/Developers-Guide/EPiServer-CMS/75/Rendering/Display-options/Display-options/
If you install the Alloy 7.5 templates, there are a few display options configured in global.asax
This is what we have in the Global file:
protected void Application_Start(Object sender, EventArgs e)
{
// Register Display Options
var options = ServiceLocator.Current.GetInstance<DisplayOptions>();
options
.Add("full", "/displayoptions/full", ContentAreaTags.FullWidth, "", "epi-icon__layout--full")
.Add("wide", "/displayoptions/wide", ContentAreaTags.TwoThirdsWidth, "", "epi-icon__layout--two-thirds")
.Add("narrow", "/displayoptions/narrow", ContentAreaTags.OneThirdWidth, "", "epi-icon__layout--one-third");
}
But we dont see this option in the Blocks. Any ideas?
It looks correct to me. What happens if you browse to {siteurl}/{uiurl}/cms/Stores/displayoptions/?
Do you get the options returned?
Hi, we just popped it into the InitializeModule and it now works. Thanks for your help
Now that the displayOptions are working what else do we need to set up for the options to work on the pages? Looking at the Alloy site there is a page called BlockPreview that uses a Repeater - does this need to be created and if so where does the page go and how is it used?
I'm would like to access a block's choosen display option from within a block template.
Since that's where I already have all the functionality to dynamically add classes to the blocks depending on different properties.
Is there any way or do you really have go through the whole SitePropertyContentAreaControl (in Alloy Web Forms) thingamabob. I would really hate to have to mix up where I add css classes to stuff.
Previous link broken.
Here's the correct one: http://world.episerver.com/Documentation/Items/Developers-Guide/EPiServer-CMS/75/Rendering/Display-options/Display-options/
We have read this article: http://world.episerver.com/Documentation/Items/Developers-Guide/EPiServer-CMS/7/Content/Display-Channels/ on Display Blocks but have no idea where we set this up. The Global file has some reference to displayOptions but our Content Blocks dont have a Display Options in the Edit Drop down menu. Do we need to set other sections up too?
Jon