[opencms-dev] EL: retrieve the author of a structured content and more

Marc Schlegel my.mailing.lists at gmx.de
Sat Oct 4 15:46:32 CEST 2008


Ok, I found out that I can get the userid with ${news.file.userCreated}
but I couldn't find a way to retrieve the username behind this id.

Btw: I think this would be a nice feature for the taglib and EL to get a
nice username from the content.

Marc Schlegel schrieb:
> Hello Everyone
>
> First I have a question about best practise. The book about OpenCms 7 is
> using mainly EL to retrieve content from structured contents instead
> using the taglib. Is this a better approach, or in any case faster?
>
> And now to my problem. I created a news-content-type and on the
> details-page I would like to show the author so I tried the following
> <cms:contentload collector="singleFile" param="%(opencms.uri)"
> editable="true">
>     <cms:contentaccess var="news" />
>     ...
>     Created by ${cms:vfs(pageContext).property[news.filename]["Author"]}
>
> well, but this isnt working. What am I doing wrong here?
>
> Thanks
>
> _______________________________________________
> 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