<div dir="ltr">Or differently asked: Is there a complete documentation of all the possible %() substitutions in an xsd-file?<div><br></div><div style>I checked the 600 page training-material and there are only a few examples but nothing complete :-(</div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 14 May 2013 10:58, Yves Glodt <span dir="ltr"><<a href="mailto:yg@mind.lu" target="_blank">yg@mind.lu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Hi Andreas,<div><br></div><div>this is a very good idea, thanks.</div><div><br></div><div>I had to set minOccurs="1" first to be sure to get a Category-node in the XML. Then I could add a default value (with the absolute path to the category folder)</div>


<div><br></div><div>But I would like to use a property from the user, ideally from the "Additional Info" part. But I had no luck so far. I added an entry "defaultCategory=/sites/<a href="http://intranet.dkv.lu/_categories/claims/" target="_blank">intranet.dkv.lu/_categories/claims/</a>" but the following did not get the result:</div>


<div><br></div><div><b><default element="Category" value="%(currentuser.additionalInfo['defaultCategory'])"/></b><br></div><div><br></div><div>How is the syntax to get an entry from the additionalInfo map in the xsd ?</div>


<div><br></div><div>Best regards,</div><div>Yves</div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On 14 May <a href="tel:2013%2009" value="+352201309" target="_blank">2013 09</a>:58, Andreas Gily <span dir="ltr"><<a href="mailto:andreas.gily@cardsys.at" target="_blank">andreas.gily@cardsys.at</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Maybe you could define a user value as default for the category element in your XSD like I did with my "AuthorName" element...<br>



<br>
        <xsd:annotation><br>
                <xsd:appinfo><br>
                        <defaults><br>
                                 <default element="AuthorName"  value="%(currentuser.firstname) %(currentuser.lastname)"/><br>
                        </defaults><br>
                </xsd:appinfo><br>
        </xsd:annotation><br>
<br>
<br>
cheers,<br>
Andreas<br>
<br>
Am 14.05.2013 um 09:34 schrieb Yves Glodt <<a href="mailto:yg@mind.lu" target="_blank">yg@mind.lu</a>>:<br>
<div><div><br>
> Hi,<br>
><br>
> in a company Intranet we would like to omit manual category selection for blog posts (based on v8news).<br>
><br>
> The goal would be that when user A creates a new item through the ADE, the category would automatically be set to DepartmentOfUserA.<br>
><br>
> Is that possible with stock v8news ?<br>
><br>
> (A static mapping of user->catergory would be perfectly fine)<br>
><br>
> Best regards,<br>
> Yves<br>
</div></div>> _______________________________________________<br>
> This mail is sent to you from the opencms-dev mailing list<br>
> To change your list options, or to unsubscribe from the list, please visit<br>
> <a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
><br>
><br>
><br>
<br>
<br>_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>