[Yanel-dev] Resource creation without creating a resource configuration

Michael Wechner michael.wechner at wyona.com
Mon Feb 11 22:49:20 CET 2008


Michael Wechner wrote:

> simon litwan wrote:
>
>> Michael Wechner schrieb:
>>
>>> Hi
>>>
>>> Related to my question below I have realized that there is another 
>>> "suppress" as follows: In some cases one should not be able to 
>>> choose the path of the new resource and hence it doesn't make sense 
>>> to the show the Folder/File widget. So I would suggest to add 
>>> another config where one can suppress this, e.g.
>>>
>>> <yanel:custom-config>
>>>   <rc:resource-types 
>>> xmlns:rc="http://www.wyona.org/yanel/resource/resource-creator/1.0">
>>>     <rc:resource-type name="atom-entry" 
>>> namespace="http://www.wyona.org/yanel/resource/1.0">
>>>       <rc:display-name>Atom Entry</rc:display-name>
>>>       <rc:folder-widget select="false"/>
>>>     </rc:resource-type>
>>>
>>>
>>> WDYT?
>>
>>
>> fine with me.
>> how about
>> <rc:path-selection show="false"/>
>
>
>
> after thinking some more about it, I think this should rather be part 
> of the API itself
>
> http://yanel.wyona.org/javadoc/org/wyona/yanel/core/api/attributes/CreatableV2.html 
>
>
> because if the resource is not configured specifically, but rather all 
> creatable resources are available, one cannot set this parameter, but 
> it actually would still make sense.
>
> Also why should this be set once and in another is not being set for 
> the same resource. Does such a situation actually make sense?


actually it could make sense, for example in the case of the yanel-user 
resource. In some cases one might only want to create a new user without 
having the profile accessible for some URL, whereas in other cases one 
wants to have the profile accessible for some specific URL.

Cheers

Michi

>
> WDYT?
>
> Thanks
>
> Michi
>
>>
>> simon
>>
>>>
>>> Thanks
>>>
>>> Michi
>>>
>>>
>>>
>>> Michael Wechner wrote:
>>>
>>>> Hi
>>>>
>>>> The "resource creator" resource currently allows to customize which 
>>>> resource shall be created and and how the resource configs shall be 
>>>> set, e.g.
>>>>
>>>>  <yanel:custom-config>
>>>>    <rc:resource-types 
>>>> xmlns:rc="http://www.wyona.org/yanel/resource/resource-creator/1.0">
>>>>      <rc:resource-type name="wiki" 
>>>> namespace="http://www.wyona.org/yanel/resource/1.0">
>>>>        <rc:display-name>Wiki Page</rc:display-name>
>>>>        <rc:property name="xslt" value="/xslt/global.xsl"/>
>>>>      </rc:resource-type>
>>>>
>>>>
>>>> The problem is that in some cases there exists an map.rc-map which 
>>>> has some patterns defined and hence it's so good if a resource 
>>>> config is being created, because it overwrites the pattern within 
>>>> the map.rc-map for this specific resource.
>>>>
>>>> Hence I would like to suggest to enhance the "resource creator" 
>>>> resource by allowing to suppress the resource config creation, e.g.
>>>>
>>>>  <yanel:custom-config>
>>>>    <rc:resource-types 
>>>> xmlns:rc="http://www.wyona.org/yanel/resource/resource-creator/1.0">
>>>>      <rc:resource-type name="wiki" 
>>>> namespace="http://www.wyona.org/yanel/resource/1.0">
>>>>        <rc:display-name>Wiki Page</rc:display-name>
>>>>        <rc:resource-config create="false"/>
>>>>      </rc:resource-type>
>>>>
>>>> WDYT?
>>>>
>>>> Thanks
>>>>
>>>> Michi
>>>>
>>>
>>>
>>
>> _______________________________________________
>> Yanel-development mailing list
>> Yanel-development at wyona.com
>> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>
>
>
>


-- 
Michael Wechner
Wyona      -   Open Source Content Management - Yanel, Yulup
http://www.wyona.com
michael.wechner at wyona.com, michi at apache.org
+41 44 272 91 61



More information about the Yanel-development mailing list