Useful++! This is indeed something we'd like to have at some point; there are hints of that implemented in STK: templates have categories and subcategories, which are used for template availability, and paragraph availability is configured in each templates' different areas' configuration; see info.magnolia.module.templatingkit.templates.Area#getParagraphs, and mainArea.ftl[1] for an example). We're considering splitting STK into "framework" and actual templates; some STK concepts/classes/components could, at some point, become "1st class citizen" in Magnolia (the Area concept, for example). This is also something that will be discussed at the upcoming STK 2.0 work shop (mid june [2]).
Ideally, in your template script, you would not (or would not have to) specify which paragraphs to be available (<cms:newBar contentNodeCollectionName="main"/>), and the paragraph selection dialog should resolve what's available for the current node/context. Also have a look at the new/unfinished m-m-templating-components [3], they're also looking in that direction. Cheers, -g [1] http://svn.magnolia-cms.com/view/community/modules/standard-templating-kit/trunk/magnolia-module-standard-templating-kit/src/main/resources/templating-kit/templates/global/mainArea.ftl [2] http://wiki.magnolia-cms.com/display/DEV/STK+2.0+Workshop [3] http://wiki.magnolia-cms.com/display/DEV/Concept+taglib+cleanup%2C+extraction%2C+rewrite On May 6, 2010, at 11:21, Tobias Mattsson wrote: > Hi all, in a recent project we added paragraph categories and i'm thinking of > adding it to blossom. But maybe it could be a feature for magnolia itself. > Basically the idea is that you often have a bunch of paragraphs that belong > together or have the same purpose. Let's take a bunch of banner paragraphs > for example. If you could tag them as banners and in your template say > <cms:newBar contentNodeCollectionName="main" paragraph="tag:banner"/>. Then > adding a new paragraph and tagging it with banner would make it appear > wherever banners go. > > As for the implementation I think the best way to go about it is to implement > this is in the selectparagraphdialog. The dialog would resolve the tags > trough some manager/service -class that looks at a nodedata named tags on the > paragraphs. Maybe it could be managed by ParagraphManager. > > What do you think? Useful or useless? > > // Tobias ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
