[opencms-dev] Adding a new type of Gallery to the Editor
Daniel Rhoden
drhoden at iiwinc.com
Mon Feb 14 19:03:14 CET 2005
Wonderful feedback. Thank you!
You are correct. "Gallery like references to XML contents" is a much
better way of describing it.
I have the feeling that there are factors regarding the WYSIWYG editor
that I am not aware (which is fine, we all have to learn). I am under
the impression that the WYSIWYG editor was specifically for XML content
items. Are you suggesting that under certain circumstances that there
would be problems if the WYSIWYG editor's interface was enhanced to
provide access to such a feature?
Let me describe how I envision using such a feature: The templates,
elements, and default_bodies would already be defined. After creating a
new XML page I would view the page Offline, click on the direct edit
square (in version 6) for the section specified for the article's
headline and define the content (there are reasons why I'm not using
custom properties instead). On another page, I would do the same
process, but in the content area. I would then describe a reference to
the fist page, but want to display its exact headline in my link's
anchor text. Rather than typing it and risking a synchronization issue
(say, the headline gets updated by a different writer), I would click on
the button that would allow me to reference other pages' elements, and
drop a reference to it. The page would appear to have content in it at
runtime. The control code for the page would have a new <references/>
node just under the <links/> node, and a ${ref0} statement would be
inserted into the content node.
Sorry that was so long, but I know it is hard to paint the same picture
in other people's mind
Thanks,
Daniel Rhoden.
Alexander Kandzior wrote:
>Daniel,
>
>Such a kind of gallery will IMHO be possible only for XML content items, not
>inside the WYSIWYG editor. This is because of the structure of the HTML
>editable element used for the WYSIWYG.
>
>In this case the task is better described as "building a XML content widget
>for content references".
>
>The code base of the galleries should be usable for this. The galleries
>already share most of the code as well as the JSP pages. Have a look at the
>package "org.opencms.workplace.galleries", there is an abtract base class
>called "A_CmsGallery" from which all Galleries are extended. It basically
>comes down to writing some 100-200 LOC, mainly to generate the list view.
>
>I can give some more details about the other tasks required. Before I do
>please let me know if this is actually what you want (Gallery like
>references for XML contents, not for the WYSIWYG editor).
>
>Best Regards,
>Alex.
>
>Alexander Kandzior
>Alkacon Software - The OpenCms Experts
>http://www.alkacon.com
>
>
>
>
>
>>-----Original Message-----
>>From: opencms-dev-bounces at opencms.org
>>[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Daniel Rhoden
>>Sent: Monday, February 14, 2005 5:47 PM
>>To: The OpenCms mailing list
>>Subject: [opencms-dev] Adding a new type of Gallery to the Editor
>>
>>I would like to add a new type of Gallery accessible from the
>>editor to make references to other XML page' content
>>elements. It should not act like the HTML Gallery in which a
>>COPY is made, but more like the <cms:include page=""
>>element=""> tag, in which a REFERENCE is made. I think there
>>are many uses for such a feature (though the term 'gallery'
>>may not be appropriate).
>>
>>1. Can we post an outline for building custom "galleries"?
>>2. Can we post ways to achieve a "Reference Gallery" mentioned above?
>>
>>Thanks,
>>
>>--Daniel Rhoden
>>
>>
>>_______________________________________________
>>This mail is send to you from the opencms-dev mailing list To
>>change your list options, or to unsubscribe from the list,
>>please visit http://mail.opencms.org/mailman/listinfo/opencms-dev
>>
>>
>>
>>
>
>
>
>_______________________________________________
>This mail is send to you from the opencms-dev mailing list
>To change your list options, or to unsubscribe from the list, please visit
>http://mail.opencms.org/mailman/listinfo/opencms-dev
>
>
>
More information about the opencms-dev
mailing list