[opencms-dev] Problem in OpenCms 8.5.2 - permission restricted only one element in xsd
Deiverson Silveira
deiverson at solutioncms.com
Mon Nov 11 13:24:11 CET 2013
Hi List,
I see page 26 (OpenCms 8.5.2 Documentation_v1.3):
<mapping element="..."
mapto="permission:GROUP:+r+v|GROUP.ALL_OTHERS:|GROUP.Projectmanagers:+r+v+w+c"
/>
Then I try applied concept in element xsd in my project OpenCms 8.5.2:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/>
<xsd:element name="Noticias" type="OpenCmsNoticias"/>
<xsd:complexType name="OpenCmsNoticias">
<xsd:sequence>
<xsd:element name="Noticia" type="OpenCmsNoticia" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="OpenCmsNoticia">
<xsd:sequence>
<xsd:element name="Titulo" type="OpenCmsString" />
<xsd:element name="Data" type="OpenCmsDateTime"/>
</xsd:sequence>
<xsd:attribute name="language" type="OpenCmsLocale" use="required"/>
</xsd:complexType>
<xsd:annotation>
<xsd:appinfo>
<validationrules>
<rule element="Titulo" regex="!^\s*" message="O Campo 'Título' é
Obrigatório."/>
<rule element="Data" regex="[1-9][0-9]+" message="O Campo 'Data' é
Obrigatório."/>
<!--<rule element="Video" regex="!^\s*" message="O Campo 'Video' é
Obrigatório." />-->
</validationrules>
<layouts>
<layout element="Data" widget="DateTimeWidget"/>
</layouts>
<mappings>
<!--<mapping element="Titulo" mapto="property:Title" />-->
<mapping element="Data" mapto="property:collector.date" />
<mapping element="Titulo"
mapto="permission:GROUP.POC_TEST:-r-v|GROUP.ALL_OTHERS:|GROUP.Projectmanagers:+r+v+w+c"
/>
</mappings>
</xsd:appinfo>
</xsd:annotation>
</xsd:schema>
But dont work:
<mapping element="Titulo"
mapto="permission:GROUP.POC_TEST:-r-v|GROUP.ALL_OTHERS:|GROUP.Projectmanagers:+r+v+w+c"
/>
I try:
<mapping element="Titulo" mapto="permission:GROUP.POC_TEST:-r-v-w-c" />
<mapping element="Titulo"
mapto="permission:GROUP.POC_TEST:-r-v-w-c|GROUP.ALL_OTHERS:|GROUP.Projectmanagers:+r+v+w+c"
/>
<mapping element="Titulo"
mapto="permission:GROUP.POC_TEST:-r-v-w-c|GROUP.ALL_OTHERS:|GROUP.Projectmanagers:-r-v-w-c"
/>
etc...
My group POC_TEST group pattern is USERS, I try projectmanagement, etc, but
dont work, I try change Roles, but dont work too...
I need hidden field for only group, in xmlcontent...
Somebody any solution for this?
Deiverson
--
*www.solutioncms.com <http://www.solutioncms.com>The Brazilian Official
Provider OpenCms*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20131111/0b5c33df/attachment.htm>
More information about the opencms-dev
mailing list