[opencms-dev] Dynamic direct editable page element
Claus Priisholm
cpr at codedroids.com
Sun May 17 09:46:35 CEST 2009
If I understand your questionm correctly then yes. The template two demo
contains list of news articles (or something else, don't recall), and
you can add new articles to the list from the list itself.
With one little exception... You cannot create the first item in a list,
it must be created else. Or at least that's what I've ended up
concluding as the API requires a "template document instance" from which
it can get details such as folder and so forth.
I've run into this a couple of times and worked around it: when making a
new folder, add an empty document instance right away, but it is kind of
a hack and for one thing leaves you with an empty, possibly
non-validating document.
navv wrote:
> Is it possible to create a page where a content editor can create new direct
> editable page elements as required?
> For e.g. There may be 10-20 book details in a page, and the content editor
> wants to create a separate direct editable page element for each of them. Is
> there any way to implement it?
>
--
Claus Priisholm, CodeDroids ApS
Phone: +45 48 22 46 46
cpr (you know what) codedroids.com - http://www.codedroids.com
cpr (you know what) interlet.dk - http://www.interlet.dk
--
Javadocs and other OpenCms stuff:
http://www.codedroids.com/community/opencms
More information about the opencms-dev
mailing list