History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: MAGNOLIA-2281
Type: Improvement Improvement
Status: Open Open
Priority: Minor Minor
Assignee: Boris Kraft
Reporter: Vasko Gjurovski
Votes: 1
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Magnolia

Import paragraphCollections from multiple modules into one paragraph collection

Created: 23/Jul/08 02:01 PM   Updated: 23/Jul/08 02:59 PM
Component/s: None
Affects Version/s: 3.6.1
Fix Version/s: None

Time Tracking:
Original Estimate: 3d
Original Estimate - 3d
Remaining Estimate: 3d
Remaining Estimate - 3d
Time Spent: Not Specified
Remaining Estimate - 3d

Labels:
Date of First Response: 23/Jul/08 02:21 PM


 Description  « Hide
Currently the mechanism for importing module specific paragraph collections (js and css files as well) is to define the Helper bean and import it into the head of the template via <jsp:useBean.... If we want to import paragraph collections (js and css files as well) we should make multiple <jsp:useBean.. imports along with the js and css importing for each module. This leads to a lot of problems when we have something like 20 modules (for example I need each paragraph to be a single module so I can vary them into different applications) which would lead in to a mess in the code. I am suggesting to make some kind of mechanism that will gather the paragraph collections (js and css as well) from all modules (if they have it) and use them like one collection. I have an idea how to solve this, but needed a approval that it has not been looked at yet and that nobody has tried anything similar, and also, that this agrees with your perspectives and ideas for the modules.

Best Regards,
Vasko Gjurovski



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Gregory Joseph - 23/Jul/08 02:21 PM
Keep in mind that the helper bean in samples is just that, a sample. Before introducing this, the sample templates simply showed that you could have a comma separated list of paragraphs to be shown.

The core of the issue is that there is no single silver solution that will satisfy all scenarios. In certain templates or sections of templates, you'll want to only have a limited set of paragraphs, and a different set for other templates. (because authors don't want to have to search for the right paragraph, or because you want to precisely control what can be added where)


Vasko Gjurovski - 23/Jul/08 02:59 PM
Yes, I have thought of that and the answer is simple: you can always have a different paragraph collections for different purposes which you can as well define in the module. For example, if you have par1 and par2 from module1 and par3 and par4 from module2, you can make col1 which includes par1 and par3 and col2 which includes par2 and par4. And of course you can have any combination you like, as long as you define the same paragraphCollection name in all the modules (or include both paragrapCollections comma separated ). After that you can use the different paragraphCollection in different templates of sections of templates.
So my main point not to avoid the paragraphCollection node in config but to simply manage a more simple way of collecting ALL the paragraphs and then distributing them into the paragraphCollections as you wish.
Then again, perhaps there should be some part in adminCentral that can manage the paragraphCollections globaly (or per site, which has not yet been defined in Magnolia), but thats another story...