#25 cttobject.options for everyone

closed
5
2007-03-24
2007-03-22
Anonymous
No

Hi,

i would like to edit, publish, etc. the folder (or departmentroot) i'm in right now...

I changed a "when" to an "if"... i like it - maybe it's wrong :-X?

(Very interesting for users, that could not "view" one level higher...)

*Schorsch*

---
from common_header.xsl:

<xsl:template name="subheader">
<xsl:param name="createwidget">false</xsl:param>
<xsl:param name="parent_id"/>
<xsl:param name="noarrownavigation">false</xsl:param>
<xsl:param name="nooptions">false</xsl:param>
<xsl:param name="nostatus">false</xsl:param>
<table border="0" cellspacing="0" cellpadding="0" width="100%" style="padding-right: 5px;">
<tr>
<xsl:call-template name="header.arrownavigation"/>
<xsl:choose>
<xsl:when test="$m='e'">
<xsl:if test="/document/context/object/user_privileges/create
and $createwidget = 'true' and
/document/object_types/object_type[can_create]">
<xsl:call-template name="header.cttobject.createwidget">
<xsl:with-param name="parent_id">
<xsl:value-of select="$parent_id"/>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<td width="215" background="{$skimages}options_bg.png" nowrap="nowrap">
<xsl:if test="$nooptions='false'">
<xsl:call-template name="cttobject.options"/>
</xsl:if>
</td>
<td width="80" background="{$skimages}subheader-generic_bg.png"
nowrap="nowrap">
<xsl:if test="$nostatus='false'">
<xsl:call-template name="cttobject.status"/>
</xsl:if>
</td>
</xsl:when>
<xsl:otherwise>
<td width="126" background="{$skimages}options_bg.png" nowrap="nowrap">
<xsl:text>&#160;</xsl:text>
</td>
<td width="80" background="{$skimages}subheader-generic_bg.png">
<xsl:text>&#160;</xsl:text>
</td>
</xsl:otherwise>
</xsl:choose>
<td width="629" background="{$skimages}subheader-generic_bg.png">
<xsl:call-template name="message"/>
</td>
<xsl:call-template name="header.cttobject.search"/>
</tr>
</table>
</xsl:template>

Discussion

  • Michael Kroell
    Michael Kroell
    2007-03-24

    Logged In: YES
    user_id=281536
    Originator: NO

    introduced in SVN

     
  • Michael Kroell
    Michael Kroell
    2007-03-24

    • assigned_to: nobody --> pepl
    • status: open --> closed