Schuh, Christian ha scritto:
Hello everybody,
Hi Christian, welcome to this list.
I am having an overview page with news. This means a colummn of paragraphs. So
far so good. Normally a new paragraph is inserted at the bottom of the column.
This I do not want to be in this case, the latest entry schould be always
placed on top. Automatically.
By default, Magnolia "way of rendering" takes one by one (first the
first, next the second..) the paragraphs you inserted in a paragraph
collection.
To fit you requirement, I see 2 ways:
1) Attach a saveHandler to your dialog. Main goal of this saveHandler is
to place the last entry to the first place, simply renaming it and all
other paragraph instances.
2) Load programmatically your paragraphs and call the right renderer, in
the order you want.
In my opinion, the second choiche is the better, because gives you more
control on what you are doing.
I'm sure that other solutions are possible ;-)
M.
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------