Hi Andrew

1. Well, flex your mind on that one.
One example I can think of is changing a top menu to a side menu.

2. Custom tags, like <cmsJon:PublishToPublicSite> (made that one up =).
Again flex your mind.

3. Yes, these are all fine solutions.
The bottom line is: Why do want to add another layer of complexity?
As a Magnolia-beginner your level of reading jsp tags has to be able to coupe with and understand what happens in those 11 lines. (Not saying that you are a beginner :) )

4. Ex.
<cms:newBar contentNodeCollectionName="contentParagraph"
paragraph="samplesTextImage"/>
to
<cms:newBar contentNodeCollectionName="contentParagraph"
paragraph="primetimeTextImageVideo"/>

Can't do that when only dealing with <cms:zone name="leftColumnZone"/>

Jon

Andrew wrote:
Hi Jon
1. If I want to change content of column I can add new type of paragraph,
but don't see the reason to change "contentNodeCollectionName"
2. What things do you mean ? I my example we already have "New" and "Edit"
button. Adding new things made template more complex.
3. Actually there are many ways to reuse of content. First one - to inherit
content from another page:
    <cms:ifEmpty contentNodeCollectionName="rightColumnParagraphs">
<cms:loadPage path="features"/> <cms:contentNodeIterator contentNodeCollectionName="rightColumnParagraphs"> <cms:includeTemplate />
                </cms:contentNodeIterator>
<cms:unloadPage/> </cms:ifEmpty>
But will be better to create new type of paragraph for this purpose.
Second one - to separate paragraph(publication block) from its content. For
example you can have different folders for articles(for example - "News")
and you can create new type of paragraph with "Articles folder" property.
This paragraph will display all articles from this folder(with
[1-10][11-20]..." page navigator). When content manager(or some task - for
example content manager can send e-mail to "News" address and scheduled task
will read this e-mail and put it to "News") add new article to "Article
folder" - paragraph automatically display this article.
4. Actually I didn't understand last question. At current version you can
select paragraph type before you create it.

Thanks,
Andrew

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 10, 2006 12:18 PM
To: [email protected]
Subject: Re: [magnolia-user] Simplify templates

Hi, Andrew.

I'm not a commited developer, but I think I can answer your question.

It's possible to do what your asking. Just make your own JSP tags.
But then you run in to some problems.

What if you want to change the content of your collumn, contentParagraph to say contentParagraphToo?
What if want to include other things besides editBar in adminOnly?
What if you want some other content from another content node collection inside?
What if you want to change paragraph?

Yes, you could change the custom tag, but that just creates another level of complication.

Regards
Jon G. Berentsen



----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to