Hi,
I am adding a dialog to the promos area in the MainTemplate.java of the
Blossom 3/Magnolia 5.2.2 sample bundled under Jetty with same results under
5.2.1 under Tomcat.
I have tried all the combinations I could find in the documentation and
source notes but I cannot get a dialog to show for the promos area when editing
- should I expect to see one or do I have something wrong (also I have tried:
removing @Inherits, changing the optional to false, adding explicit
@DialogFactory).
Any help very much appreciated please.
Thank you - Blossom / Magnolia are great,
Chris
[code]
/**
* Promos area, uses the {@link Promo} component category annotation to
specify which components are available.
*/
@Controller
@Area(value = "promos", title = "Promos", optional = TernaryBoolean.TRUE)
@Inherits
@AvailableComponentClasses({Promo.class})
public static class PromosArea {
@RequestMapping("/mainTemplate/promos")
public String render() {
return "areas/promos.jsp";
}
@TabFactory("Content")
public void contentTab(TabBuilder tab, Dialog dialog) {
tab.fields((new CheckboxFieldBuilder("test")).buttonLabel("test2"));
}
/*
@TabFactory("Content")
public void contentTab(TabBuilder tab) {
tab.fields((new
CheckboxFieldBuilder("test")).buttonLabel("test2"));
}
*/
/*
@TabFactory("Promos")
public void promosTab(TabBuilder tab)
{
}
*/
/*
@TabFactory("Promos")
public void promosTab(UiConfig cfg, TabBuilder tab) {
tab.fields(
cfg.fields.text("title2").label("Title2"),
cfg.fields.checkbox("hideInNavigation2").label("Hide in
navigation2").description("Check this box to hide this page in navigation2")
);
}
*/
/*
@TabFactory("Content")
public void contentTab(UiConfig cfg, TabBuilder tab) {
tab.fields(
cfg.fields.text("title").label("Title"),
cfg.fields.checkbox("hideInNavigation").label("Hide in
navigation").description("Check this box to hide this page in navigation")
);
}
*/
}
[/code]
--
Context is everything:
http://forum.magnolia-cms.com/forum/thread.html?threadId=c6bd4b63-a3d1-49ce-9bc5-5d06c274a72a
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------