Hi,

Joachim Schmitz wrote:

Hi,

in an pt I have:

<metal:block fill-slot="main"
              tal:define="folder here/getContent;
              items here/contentValues;
              ">
<span tal:repeat="item items">
<a href="xxx"  tal:attributes="href item/absolute_url"
              tal:content="item/title_or_id"></a>
</span>

</metal:block>
CPSDefault\skins\cps_default\filterContents.pyfilterContents does the
job. With some options like sort and filtering by portal_type

<metal:block fill-slot="main"
              tal:define="folder here/getContent;
              items python:here.filterContents(items=here.objectValues());
              ">


Pierre

this displays the url for all items, even those which are not accessible
by the user. If he clicks on the url, he is asked for login. How can I
test in the pt, if that item is accessible by the user, so that the link
is not displayed at all.






_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to