[opencms-dev] xmlpage

Achim Westermann achim.westermann at questico.de
Mon Feb 1 19:36:58 CET 2010


Whoops, sorry Timm,

hope you did not look to long for that widget. You could do it if it is OK for you to have a "template" field in your XML content and map 
that to the template property.

If you want it to work similar to the xmlpage from the 1st page of the property dialog you have to implement your own I_CmsDialogHandler and 
configure it in opencms-workplace.xml. The class CmsDialogProperty demonstrates how to get the template selector. The method getDialogUri 
allows you to point to your custom jsp that instantiates your own class. But beware, the latter is a lot more work.

HTH,

Achim





Achim Westermann wrote:
> Hi Tim, 
> 
> perhaps you don't need to code anything, as there is the mother of all select widgets available if you install the OAMP formgenerator module or just take it's jar. You can do almost everything with that select widget by configuration: 
> 
> http://www.java2s.com/Open-Source/Java-Document/Content-Management-System/opencms/com.alkacon.opencms.formgenerator.htm
> 
> 
> HTH, 
> 
> Achim
> 
> -------- Original-Nachricht --------
>> Datum: Mon, 1 Feb 2010 09:12:49 -0800 (PST)
>> Von: timd <timd at thedoleco.com>
>> An: opencms-dev at opencms.org
>> Betreff: Re: [opencms-dev] xmlpage
> 
>> Thanks Achim! I have custom content type, additionally, I need to setup a
>> select widget properly so that I can select templates for new content as
>> the
>> xmlpage allows. Thanks again.
>>
>> Best,
>> Tim
>>
>>  
>>
>> Achim Westermann-2 wrote:
>>> Hi Tim,
>>>
>>> that's an "incredible old" resource type. I think it does not have a 
>>> schema definition XSD in the VFS. It was there before XML content was 
>>> introduced and has a custom loader implementation. If you start fresh 
>>> you could also define a custom XML content with just one HTML content 
>>> field as a replacement if you like to have everything working the same
>>> way.
>>>
>>> HTH,
>>>
>>> Achim
>>>
>>>
>>>
>>> Tim Daschner wrote:
>>>> Hello,
>>>>
>>>> The opencms download provides an xml content type of xmlpage. Does 
>>>> anyone know what module can I find its schema definition in? Thank you.
>>>>
>>>> Tim
>>>>
>>>>
>>>>
>> ------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> This mail is sent to you from the opencms-dev mailing list
>>>> To change your list options, or to unsubscribe from the list, please
>>>> visit
>>>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>> _______________________________________________
>>> This mail is sent to you from the opencms-dev mailing list
>>> To change your list options, or to unsubscribe from the list, please
>> visit
>>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>>
>>>
>> -- 
>> View this message in context:
>> http://old.nabble.com/xmlpage-tp27400068p27407733.html
>> Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
>>
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please visit
>> http://lists.opencms.org/mailman/listinfo/opencms-dev
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev



More information about the opencms-dev mailing list