Re: Placeholder for current user name in content
Philippe Vollenweider <[email protected]>
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Message-ID | <[email protected]> |
Hello,
You can add a new box type called "user".
To do this, just add a new element "user" to the array list boxTypes
(include/declaration.inc) then, on box.jsp, add something like this:
<bean:define id="user"
value='<%=ResourceBundleMarker.drawMarker(resBundleID,"user","")%>'/>
...
<c:when test="${boxTypeValue == user">
Current user is : <%=jData.params().getUser().getUsername()%>
</c:when>
Philippe.
At 22.06.2004 12:06, you wrote:
>Would it be possible to give the content editor the ability to decide,
>where the name of the current user should be inserted (like in the welcome
>text) or is this only possible hardcoded in the JSP?
>
>Greetings,
>Benjamin Papez
-------=[ pvollenweider at jahia dot com ]=---------
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company