You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Annie Dumont <an...@univ-reunion.fr> on 2005/11/25 07:17:48 UTC
About sitetree
Hi everybody !
When you belong to the group editor or/and reviewer under Lenya, you
have the ability on our publication to see all the sitetree on the
site-tab, because by default, the editor et the reviewer can write and
publish everywhere on our site.
We created many groups with rights, on different part of the sitetree.
It would be great if these people could see the part of sitetree they
are able to work in.
For the moment, a simple user obtains this message : [Application
JavaScript] Error : could not load sitetree.xml
Is it possible to change this ? As anybody an idea ?
Cheers. annie
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: About sitetree
Posted by Annie Dumont <an...@univ-reunion.fr>.
Hi Soprovider, hi all,
solprovider@gmail.com a écrit :
>On 11/25/05, Annie Dumont <an...@univ-reunion.fr> wrote:
>
>
>>When you belong to the group editor or/and reviewer under Lenya, you
>>have the ability on our publication to see all the sitetree on the
>>site-tab, because by default, the editor et the reviewer can write and
>>publish everywhere on our site.
>>We created many groups with rights, on different part of the sitetree.
>>It would be great if these people could see the part of sitetree they
>>are able to work in.
>>
>>
>
>It sounds like you want to add filters to the Authoring section:
>- Show all
>Current authoring view
>- Show editable documents
>
>
The problem was that in the current authoring site-tab, the editable
documents were not showed : no tree at all.
What i wanted was that users can see all the tree they work on either
they are reviewer or simple editor, to be able to use site-tab options
with seeing what they do.
Josias give me a solution where everybody can see anything (nothing is
secret) in sitetree but can only go where it is authorized. So all the
portion of sitetree where the user works is visible and clickable on the
site-tab side. That was what i wanted. So it is perfect for me. No more
problem :-)
Did i answer your questions because i am not sure to have understand
everything (sorry, my english is not so good :-( ) ?
Cheers. annie
Re: About sitetree
Posted by so...@gmail.com.
On 11/25/05, Annie Dumont <an...@univ-reunion.fr> wrote:
> When you belong to the group editor or/and reviewer under Lenya, you
> have the ability on our publication to see all the sitetree on the
> site-tab, because by default, the editor et the reviewer can write and
> publish everywhere on our site.
> We created many groups with rights, on different part of the sitetree.
> It would be great if these people could see the part of sitetree they
> are able to work in.
It sounds like you want to add filters to the Authoring section:
- Show all
Current authoring view
- Show editable documents
Only documents this visitor has the "edit" role.
- Show documents needing my review.
Flat list of documents submitted that the visitor has the "review"
role. (This list should remain short, and reviewers are concerned
with the content, not the navigation.)
The second option requires rebuilding the navigation structure in an
understandable way. Example:
/employee
/employee/hr
/employee/hr/benefits
/employee/hr/benefits/medical (editable)
/employee/hr/benefits/dental (editable)
/employee/hr/benefits/savings
How should this navigation structure be displayed so the health plan
administrator only sees the editable pages? My suggestion is:
/medical
/dental
Maybe the full path should be displayed somewhere? Or does everyone
use the breadcrumb nav element so that is not necessary?
Would these abilities fill your business need?
solprovider
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: About sitetree
Posted by Michael Wechner <mi...@wyona.com>.
Josias Thoeny wrote:
>On Mon, 2005-11-28 at 09:56 +0100, Michael Wechner wrote:
>
>
>>thanks very much for the patch. I have checked it in.
>>
>>
>>
>
>Hi Michi,
>
>Thanks checking it in, but it looks like you committed the file I sent
>to Annie, which was for Lenya 1.2.3 and misses the waitscreen code from
>1.2.x
>
>
sorry for that
>I will file a bug and post a proper patch.
>
>
thanks very much. Will check it in, whereas I currently have problems
reaching the Apache server ...
Michi
>Josias
>
>
>
>>Michi
>>
>>Josias Thoeny wrote:
>>
>>
>>
>>>On Fri, 2005-11-25 at 15:21 +0400, Annie Dumont wrote:
>>>
>>>
>>>
>>>
>>>>Hi Josias, hi Michi, hi all,
>>>>
>>>>Josias Thoeny a écrit :
>>>>
>>>>
>>>>
>>>>
>>>>>On Fri, 2005-11-25 at 09:42 +0100, Michael Wechner wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>Annie Dumont wrote:
>>>>>>
>>>>>>
>>>>>>[...]
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>Actually the AccessControlSitetreeTransformer is being applied already.
>>>>>This sounds like a bug.
>>>>>Annie, can you explain with more detail how you set the rights of this
>>>>>"simple user"?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>I use the admin tab of lenya.
>>>>I create users by clicking on "cms users" button. Then i affect each
>>>>one to a group.
>>>>The reviewer and editor groups are those created during the
>>>>installation of lenya.
>>>>The other groups, for the "simple users" are created by using the
>>>>"add group" button, on the administration-tab side, menu
>>>>"Administration", option "Group" (between users and IP range).
>>>>Then these groups are given rights (edit ou review) on the sitetree by
>>>>using the option 'CA auth." of the site-tab.
>>>>
>>>>Does this help ?
>>>>
>>>>
>>>>
>>>>
>>>Hi Annie,
>>>
>>>I can reproduce your problem with the current version of Lenya 1.2.x
>>>Then I replaced some area parameters in root.xsl and the problem seemed
>>>to go away. But I didn't test a lot, and not with Lenya 1.2.3. But you
>>>can try to replace the file lenya/xslt/info/root.xsl with the one in the
>>>attachement to see if it helps.
>>>(I replaced authoring with info-authoring in this file)
>>>
>>>hth,
>>>Josias
>>>
>>>
>>>
>>>
>>>
>>>
>>>>Cheers, annie
>>>>
>>>>PS : i am in lenya 1.2.3 and cocoon 2.1.
>>>>
>>>>
>>>>
>>>7
>>>
>>>
>>>------------------------------------------------------------------------
>>>
>>><?xml version="1.0"?>
>>><!--
>>> Copyright 1999-2004 The Apache Software Foundation
>>>
>>> Licensed under the Apache License, Version 2.0 (the "License");
>>> you may not use this file except in compliance with the License.
>>> You may obtain a copy of the License at
>>>
>>> http://www.apache.org/licenses/LICENSE-2.0
>>>
>>> Unless required by applicable law or agreed to in writing, software
>>> distributed under the License is distributed on an "AS IS" BASIS,
>>> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
>>> See the License for the specific language governing permissions and
>>> limitations under the License.
>>>-->
>>>
>>><!-- $Id: root.xsl 158907 2005-03-24 10:19:14Z michi $ -->
>>>
>>><xsl:stylesheet version="1.0"
>>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>>> xmlns="http://www.w3.org/1999/xhtml"
>>> >
>>>
>>> <xsl:param name="contextprefix"/>
>>> <xsl:param name="publicationid"/>
>>> <xsl:param name="area"/>
>>> <xsl:param name="tab"/>
>>> <xsl:param name="documentid"/>
>>> <xsl:param name="documentextension"/>
>>> <xsl:param name="documenturl"/>
>>> <xsl:param name="languages"/>
>>> <xsl:param name="chosenlanguage"/>
>>> <xsl:param name="defaultlanguage"/>
>>> <xsl:param name="cutdocumentid"/>
>>>
>>> <xsl:variable name="extension"><xsl:if test="$documentextension != ''">.</xsl:if><xsl:value-of select="$documentextension"/></xsl:variable>
>>>
>>> <xsl:template match="/">
>>> <html>
>>> <head>
>>>
>>> <link href="{$contextprefix}/lenya/css/default.css" rel="stylesheet" type="text/css"/>
>>>
>>> <!-- These three scripts define the tree, do not remove-->
>>> <script src="{$contextprefix}/{$publicationid}/info-authoring/info-sitetree/tree.js" type="text/javascript" />
>>> <script src="{$contextprefix}/{$publicationid}/info-authoring/info-sitetree/navtree.js" type="text/javascript" />
>>> <script type="text/javascript" >
>>> CONTEXT_PREFIX = "<xsl:value-of select="$contextprefix"/>";
>>> PUBLICATION_ID = "<xsl:value-of select="$publicationid"/>";
>>> CHOSEN_LANGUAGE = "<xsl:value-of select="$chosenlanguage"/>";
>>> DEFAULT_LANGUAGE = "<xsl:value-of select="$defaultlanguage"/>";
>>> IMAGE_PATH = "<xsl:value-of select="$contextprefix"/>/lenya/images/tree/";
>>> CUT_DOCUMENT_ID = "<xsl:value-of select="$cutdocumentid"/>";
>>> ALL_AREAS = "authoring,trash,archive"
>>> PIPELINE_PATH = '/info-authoring/info-sitetree/sitetree-fragment.xml'
>>>
>>> function buildTree() {
>>> var placeholder = document.getElementById('tree');
>>> var root = new NavRoot(document, placeholder);
>>> root.init(PUBLICATION_ID);
>>> root.render();
>>> root.loadInitialTree('<xsl:value-of select="$area"/>', '<xsl:value-of select="$documentid"/>');
>>> };
>>>
>>> </script>
>>>
>>> </head>
>>>
>>> <body>
>>> <div id="lenya-info-body">
>>> <table border="0" cellpadding="0" cellspacing="0" width="100%">
>>> <tr>
>>> <td valign="top" width="25%">
>>> <div id="lenya-info-treecanvas">
>>> <!-- Build the tree. -->
>>>
>>> <table border="0" cellpadding="0" cellspacing="0">
>>> <tr>
>>> <xsl:call-template name="languagetabs">
>>> <xsl:with-param name="tablanguages">
>>> <xsl:value-of select="$languages"/>
>>> </xsl:with-param>
>>> </xsl:call-template>
>>> </tr>
>>> </table>
>>>
>>> <div id="lenya-info-tree">
>>> <div id="tree">
>>> <script type="text/javascript">
>>> buildTree();
>>> </script>
>>> </div>
>>> </div>
>>> </div>
>>> </td>
>>> <td valign="top" width="75%">
>>> <div id="lenya-info-content">
>>> <xsl:copy-of select="*"/>
>>> </div>
>>> </td>
>>> </tr>
>>> </table>
>>> </div>
>>> </body>
>>> </html>
>>> </xsl:template>
>>>
>>> <xsl:template name="activate">
>>> <xsl:param name="tablanguage"/>
>>> <xsl:variable name="docidwithoutlanguage"><xsl:value-of select="substring-before($documentid, '_')"/></xsl:variable>
>>> <xsl:attribute name="href"><xsl:value-of select="$contextprefix"/>/<xsl:value-of select="$publicationid"/>/info-<xsl:value-of select="$area"/><xsl:value-of select="$documentid"/>_<xsl:value-of select="$tablanguage"/><xsl:value-of select="$extension"/>?lenya.usecase=info-overview&lenya.step=showscreen</xsl:attribute>
>>> <xsl:attribute name="class">lenya-tablink<xsl:choose><xsl:when test="$chosenlanguage = $tablanguage">-active</xsl:when><xsl:otherwise/></xsl:choose></xsl:attribute><xsl:value-of select="$tablanguage"/>
>>> </xsl:template>
>>>
>>> <xsl:template name="selecttab">
>>> <xsl:text>?lenya.usecase=info-</xsl:text>
>>> <xsl:choose>
>>> <xsl:when test="$tab"><xsl:value-of select="$tab"/></xsl:when>
>>> <xsl:otherwise>overview</xsl:otherwise>
>>> </xsl:choose>
>>> <xsl:text>&lenya.step=showscreen</xsl:text>
>>> </xsl:template>
>>>
>>> <xsl:template name="languagetabs">
>>> <xsl:param name="tablanguages"/>
>>> <xsl:choose>
>>> <xsl:when test="not(contains($tablanguages,','))">
>>> <xsl:call-template name="languagetab">
>>> <xsl:with-param name="tablanguage">
>>> <xsl:value-of select="$tablanguages"/>
>>> </xsl:with-param>
>>> </xsl:call-template>
>>> </xsl:when>
>>> <xsl:otherwise>
>>> <xsl:variable name="head">
>>> <xsl:value-of select = "substring-before($tablanguages,',')" />
>>> </xsl:variable>
>>> <xsl:variable name="tail">
>>> <xsl:value-of select = "substring-after($tablanguages,',')" />
>>> </xsl:variable>
>>> <xsl:call-template name="languagetab">
>>> <xsl:with-param name="tablanguage"><xsl:value-of select="$head"/></xsl:with-param>
>>> </xsl:call-template>
>>> <xsl:call-template name="languagetabs">
>>> <xsl:with-param name="tablanguages"><xsl:value-of select="$tail"/></xsl:with-param>
>>> </xsl:call-template>
>>> </xsl:otherwise>
>>> </xsl:choose>
>>> </xsl:template>
>>>
>>> <xsl:template name="languagetab">
>>> <xsl:param name="tablanguage"/>
>>> <td><a id="{$tablanguage}">
>>> <xsl:call-template name="activate">
>>> <xsl:with-param name="tablanguage"><xsl:value-of select="$tablanguage"/></xsl:with-param>
>>> </xsl:call-template>
>>> </a></td>
>>> </xsl:template>
>>>
>>></xsl:stylesheet>
>>>
>>>
>>>------------------------------------------------------------------------
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>>>For additional commands, e-mail: user-help@lenya.apache.org
>>>
>>>
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>>For additional commands, e-mail: user-help@lenya.apache.org
>>
>>
>>
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>For additional commands, e-mail: user-help@lenya.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: About sitetree
Posted by Josias Thoeny <jo...@wyona.com>.
On Mon, 2005-11-28 at 09:56 +0100, Michael Wechner wrote:
> thanks very much for the patch. I have checked it in.
>
Hi Michi,
Thanks checking it in, but it looks like you committed the file I sent
to Annie, which was for Lenya 1.2.3 and misses the waitscreen code from
1.2.x
I will file a bug and post a proper patch.
Josias
> Michi
>
> Josias Thoeny wrote:
>
> >On Fri, 2005-11-25 at 15:21 +0400, Annie Dumont wrote:
> >
> >
> >>Hi Josias, hi Michi, hi all,
> >>
> >>Josias Thoeny a écrit :
> >>
> >>
> >>>On Fri, 2005-11-25 at 09:42 +0100, Michael Wechner wrote:
> >>>
> >>>
> >>>
> >>>>Annie Dumont wrote:
> >>>>
> >>>>
> >>>>[...]
> >>>>
> >>>>
> >>>Actually the AccessControlSitetreeTransformer is being applied already.
> >>>This sounds like a bug.
> >>>Annie, can you explain with more detail how you set the rights of this
> >>>"simple user"?
> >>>
> >>>
> >>>
> >>I use the admin tab of lenya.
> >>I create users by clicking on "cms users" button. Then i affect each
> >>one to a group.
> >>The reviewer and editor groups are those created during the
> >>installation of lenya.
> >>The other groups, for the "simple users" are created by using the
> >>"add group" button, on the administration-tab side, menu
> >>"Administration", option "Group" (between users and IP range).
> >>Then these groups are given rights (edit ou review) on the sitetree by
> >>using the option 'CA auth." of the site-tab.
> >>
> >>Does this help ?
> >>
> >>
> >
> >Hi Annie,
> >
> >I can reproduce your problem with the current version of Lenya 1.2.x
> >Then I replaced some area parameters in root.xsl and the problem seemed
> >to go away. But I didn't test a lot, and not with Lenya 1.2.3. But you
> >can try to replace the file lenya/xslt/info/root.xsl with the one in the
> >attachement to see if it helps.
> >(I replaced authoring with info-authoring in this file)
> >
> >hth,
> >Josias
> >
> >
> >
> >
> >>Cheers, annie
> >>
> >>PS : i am in lenya 1.2.3 and cocoon 2.1.
> >>
> >7
> >
> >
> >------------------------------------------------------------------------
> >
> ><?xml version="1.0"?>
> ><!--
> > Copyright 1999-2004 The Apache Software Foundation
> >
> > Licensed under the Apache License, Version 2.0 (the "License");
> > you may not use this file except in compliance with the License.
> > You may obtain a copy of the License at
> >
> > http://www.apache.org/licenses/LICENSE-2.0
> >
> > Unless required by applicable law or agreed to in writing, software
> > distributed under the License is distributed on an "AS IS" BASIS,
> > WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> > See the License for the specific language governing permissions and
> > limitations under the License.
> >-->
> >
> ><!-- $Id: root.xsl 158907 2005-03-24 10:19:14Z michi $ -->
> >
> ><xsl:stylesheet version="1.0"
> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> > xmlns="http://www.w3.org/1999/xhtml"
> > >
> >
> > <xsl:param name="contextprefix"/>
> > <xsl:param name="publicationid"/>
> > <xsl:param name="area"/>
> > <xsl:param name="tab"/>
> > <xsl:param name="documentid"/>
> > <xsl:param name="documentextension"/>
> > <xsl:param name="documenturl"/>
> > <xsl:param name="languages"/>
> > <xsl:param name="chosenlanguage"/>
> > <xsl:param name="defaultlanguage"/>
> > <xsl:param name="cutdocumentid"/>
> >
> > <xsl:variable name="extension"><xsl:if test="$documentextension != ''">.</xsl:if><xsl:value-of select="$documentextension"/></xsl:variable>
> >
> > <xsl:template match="/">
> > <html>
> > <head>
> >
> > <link href="{$contextprefix}/lenya/css/default.css" rel="stylesheet" type="text/css"/>
> >
> > <!-- These three scripts define the tree, do not remove-->
> > <script src="{$contextprefix}/{$publicationid}/info-authoring/info-sitetree/tree.js" type="text/javascript" />
> > <script src="{$contextprefix}/{$publicationid}/info-authoring/info-sitetree/navtree.js" type="text/javascript" />
> > <script type="text/javascript" >
> > CONTEXT_PREFIX = "<xsl:value-of select="$contextprefix"/>";
> > PUBLICATION_ID = "<xsl:value-of select="$publicationid"/>";
> > CHOSEN_LANGUAGE = "<xsl:value-of select="$chosenlanguage"/>";
> > DEFAULT_LANGUAGE = "<xsl:value-of select="$defaultlanguage"/>";
> > IMAGE_PATH = "<xsl:value-of select="$contextprefix"/>/lenya/images/tree/";
> > CUT_DOCUMENT_ID = "<xsl:value-of select="$cutdocumentid"/>";
> > ALL_AREAS = "authoring,trash,archive"
> > PIPELINE_PATH = '/info-authoring/info-sitetree/sitetree-fragment.xml'
> >
> > function buildTree() {
> > var placeholder = document.getElementById('tree');
> > var root = new NavRoot(document, placeholder);
> > root.init(PUBLICATION_ID);
> > root.render();
> > root.loadInitialTree('<xsl:value-of select="$area"/>', '<xsl:value-of select="$documentid"/>');
> > };
> >
> > </script>
> >
> > </head>
> >
> > <body>
> > <div id="lenya-info-body">
> > <table border="0" cellpadding="0" cellspacing="0" width="100%">
> > <tr>
> > <td valign="top" width="25%">
> > <div id="lenya-info-treecanvas">
> > <!-- Build the tree. -->
> >
> > <table border="0" cellpadding="0" cellspacing="0">
> > <tr>
> > <xsl:call-template name="languagetabs">
> > <xsl:with-param name="tablanguages">
> > <xsl:value-of select="$languages"/>
> > </xsl:with-param>
> > </xsl:call-template>
> > </tr>
> > </table>
> >
> > <div id="lenya-info-tree">
> > <div id="tree">
> > <script type="text/javascript">
> > buildTree();
> > </script>
> > </div>
> > </div>
> > </div>
> > </td>
> > <td valign="top" width="75%">
> > <div id="lenya-info-content">
> > <xsl:copy-of select="*"/>
> > </div>
> > </td>
> > </tr>
> > </table>
> > </div>
> > </body>
> > </html>
> > </xsl:template>
> >
> > <xsl:template name="activate">
> > <xsl:param name="tablanguage"/>
> > <xsl:variable name="docidwithoutlanguage"><xsl:value-of select="substring-before($documentid, '_')"/></xsl:variable>
> > <xsl:attribute name="href"><xsl:value-of select="$contextprefix"/>/<xsl:value-of select="$publicationid"/>/info-<xsl:value-of select="$area"/><xsl:value-of select="$documentid"/>_<xsl:value-of select="$tablanguage"/><xsl:value-of select="$extension"/>?lenya.usecase=info-overview&lenya.step=showscreen</xsl:attribute>
> > <xsl:attribute name="class">lenya-tablink<xsl:choose><xsl:when test="$chosenlanguage = $tablanguage">-active</xsl:when><xsl:otherwise/></xsl:choose></xsl:attribute><xsl:value-of select="$tablanguage"/>
> > </xsl:template>
> >
> > <xsl:template name="selecttab">
> > <xsl:text>?lenya.usecase=info-</xsl:text>
> > <xsl:choose>
> > <xsl:when test="$tab"><xsl:value-of select="$tab"/></xsl:when>
> > <xsl:otherwise>overview</xsl:otherwise>
> > </xsl:choose>
> > <xsl:text>&lenya.step=showscreen</xsl:text>
> > </xsl:template>
> >
> > <xsl:template name="languagetabs">
> > <xsl:param name="tablanguages"/>
> > <xsl:choose>
> > <xsl:when test="not(contains($tablanguages,','))">
> > <xsl:call-template name="languagetab">
> > <xsl:with-param name="tablanguage">
> > <xsl:value-of select="$tablanguages"/>
> > </xsl:with-param>
> > </xsl:call-template>
> > </xsl:when>
> > <xsl:otherwise>
> > <xsl:variable name="head">
> > <xsl:value-of select = "substring-before($tablanguages,',')" />
> > </xsl:variable>
> > <xsl:variable name="tail">
> > <xsl:value-of select = "substring-after($tablanguages,',')" />
> > </xsl:variable>
> > <xsl:call-template name="languagetab">
> > <xsl:with-param name="tablanguage"><xsl:value-of select="$head"/></xsl:with-param>
> > </xsl:call-template>
> > <xsl:call-template name="languagetabs">
> > <xsl:with-param name="tablanguages"><xsl:value-of select="$tail"/></xsl:with-param>
> > </xsl:call-template>
> > </xsl:otherwise>
> > </xsl:choose>
> > </xsl:template>
> >
> > <xsl:template name="languagetab">
> > <xsl:param name="tablanguage"/>
> > <td><a id="{$tablanguage}">
> > <xsl:call-template name="activate">
> > <xsl:with-param name="tablanguage"><xsl:value-of select="$tablanguage"/></xsl:with-param>
> > </xsl:call-template>
> > </a></td>
> > </xsl:template>
> >
> ></xsl:stylesheet>
> >
> >
> >------------------------------------------------------------------------
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> >For additional commands, e-mail: user-help@lenya.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: About sitetree
Posted by Michael Wechner <mi...@wyona.com>.
thanks very much for the patch. I have checked it in.
Michi
Josias Thoeny wrote:
>On Fri, 2005-11-25 at 15:21 +0400, Annie Dumont wrote:
>
>
>>Hi Josias, hi Michi, hi all,
>>
>>Josias Thoeny a écrit :
>>
>>
>>>On Fri, 2005-11-25 at 09:42 +0100, Michael Wechner wrote:
>>>
>>>
>>>
>>>>Annie Dumont wrote:
>>>>
>>>>
>>>>[...]
>>>>
>>>>
>>>Actually the AccessControlSitetreeTransformer is being applied already.
>>>This sounds like a bug.
>>>Annie, can you explain with more detail how you set the rights of this
>>>"simple user"?
>>>
>>>
>>>
>>I use the admin tab of lenya.
>>I create users by clicking on "cms users" button. Then i affect each
>>one to a group.
>>The reviewer and editor groups are those created during the
>>installation of lenya.
>>The other groups, for the "simple users" are created by using the
>>"add group" button, on the administration-tab side, menu
>>"Administration", option "Group" (between users and IP range).
>>Then these groups are given rights (edit ou review) on the sitetree by
>>using the option 'CA auth." of the site-tab.
>>
>>Does this help ?
>>
>>
>
>Hi Annie,
>
>I can reproduce your problem with the current version of Lenya 1.2.x
>Then I replaced some area parameters in root.xsl and the problem seemed
>to go away. But I didn't test a lot, and not with Lenya 1.2.3. But you
>can try to replace the file lenya/xslt/info/root.xsl with the one in the
>attachement to see if it helps.
>(I replaced authoring with info-authoring in this file)
>
>hth,
>Josias
>
>
>
>
>>Cheers, annie
>>
>>PS : i am in lenya 1.2.3 and cocoon 2.1.
>>
>7
>
>
>------------------------------------------------------------------------
>
><?xml version="1.0"?>
><!--
> Copyright 1999-2004 The Apache Software Foundation
>
> Licensed under the Apache License, Version 2.0 (the "License");
> you may not use this file except in compliance with the License.
> You may obtain a copy of the License at
>
> http://www.apache.org/licenses/LICENSE-2.0
>
> Unless required by applicable law or agreed to in writing, software
> distributed under the License is distributed on an "AS IS" BASIS,
> WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> See the License for the specific language governing permissions and
> limitations under the License.
>-->
>
><!-- $Id: root.xsl 158907 2005-03-24 10:19:14Z michi $ -->
>
><xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns="http://www.w3.org/1999/xhtml"
> >
>
> <xsl:param name="contextprefix"/>
> <xsl:param name="publicationid"/>
> <xsl:param name="area"/>
> <xsl:param name="tab"/>
> <xsl:param name="documentid"/>
> <xsl:param name="documentextension"/>
> <xsl:param name="documenturl"/>
> <xsl:param name="languages"/>
> <xsl:param name="chosenlanguage"/>
> <xsl:param name="defaultlanguage"/>
> <xsl:param name="cutdocumentid"/>
>
> <xsl:variable name="extension"><xsl:if test="$documentextension != ''">.</xsl:if><xsl:value-of select="$documentextension"/></xsl:variable>
>
> <xsl:template match="/">
> <html>
> <head>
>
> <link href="{$contextprefix}/lenya/css/default.css" rel="stylesheet" type="text/css"/>
>
> <!-- These three scripts define the tree, do not remove-->
> <script src="{$contextprefix}/{$publicationid}/info-authoring/info-sitetree/tree.js" type="text/javascript" />
> <script src="{$contextprefix}/{$publicationid}/info-authoring/info-sitetree/navtree.js" type="text/javascript" />
> <script type="text/javascript" >
> CONTEXT_PREFIX = "<xsl:value-of select="$contextprefix"/>";
> PUBLICATION_ID = "<xsl:value-of select="$publicationid"/>";
> CHOSEN_LANGUAGE = "<xsl:value-of select="$chosenlanguage"/>";
> DEFAULT_LANGUAGE = "<xsl:value-of select="$defaultlanguage"/>";
> IMAGE_PATH = "<xsl:value-of select="$contextprefix"/>/lenya/images/tree/";
> CUT_DOCUMENT_ID = "<xsl:value-of select="$cutdocumentid"/>";
> ALL_AREAS = "authoring,trash,archive"
> PIPELINE_PATH = '/info-authoring/info-sitetree/sitetree-fragment.xml'
>
> function buildTree() {
> var placeholder = document.getElementById('tree');
> var root = new NavRoot(document, placeholder);
> root.init(PUBLICATION_ID);
> root.render();
> root.loadInitialTree('<xsl:value-of select="$area"/>', '<xsl:value-of select="$documentid"/>');
> };
>
> </script>
>
> </head>
>
> <body>
> <div id="lenya-info-body">
> <table border="0" cellpadding="0" cellspacing="0" width="100%">
> <tr>
> <td valign="top" width="25%">
> <div id="lenya-info-treecanvas">
> <!-- Build the tree. -->
>
> <table border="0" cellpadding="0" cellspacing="0">
> <tr>
> <xsl:call-template name="languagetabs">
> <xsl:with-param name="tablanguages">
> <xsl:value-of select="$languages"/>
> </xsl:with-param>
> </xsl:call-template>
> </tr>
> </table>
>
> <div id="lenya-info-tree">
> <div id="tree">
> <script type="text/javascript">
> buildTree();
> </script>
> </div>
> </div>
> </div>
> </td>
> <td valign="top" width="75%">
> <div id="lenya-info-content">
> <xsl:copy-of select="*"/>
> </div>
> </td>
> </tr>
> </table>
> </div>
> </body>
> </html>
> </xsl:template>
>
> <xsl:template name="activate">
> <xsl:param name="tablanguage"/>
> <xsl:variable name="docidwithoutlanguage"><xsl:value-of select="substring-before($documentid, '_')"/></xsl:variable>
> <xsl:attribute name="href"><xsl:value-of select="$contextprefix"/>/<xsl:value-of select="$publicationid"/>/info-<xsl:value-of select="$area"/><xsl:value-of select="$documentid"/>_<xsl:value-of select="$tablanguage"/><xsl:value-of select="$extension"/>?lenya.usecase=info-overview&lenya.step=showscreen</xsl:attribute>
> <xsl:attribute name="class">lenya-tablink<xsl:choose><xsl:when test="$chosenlanguage = $tablanguage">-active</xsl:when><xsl:otherwise/></xsl:choose></xsl:attribute><xsl:value-of select="$tablanguage"/>
> </xsl:template>
>
> <xsl:template name="selecttab">
> <xsl:text>?lenya.usecase=info-</xsl:text>
> <xsl:choose>
> <xsl:when test="$tab"><xsl:value-of select="$tab"/></xsl:when>
> <xsl:otherwise>overview</xsl:otherwise>
> </xsl:choose>
> <xsl:text>&lenya.step=showscreen</xsl:text>
> </xsl:template>
>
> <xsl:template name="languagetabs">
> <xsl:param name="tablanguages"/>
> <xsl:choose>
> <xsl:when test="not(contains($tablanguages,','))">
> <xsl:call-template name="languagetab">
> <xsl:with-param name="tablanguage">
> <xsl:value-of select="$tablanguages"/>
> </xsl:with-param>
> </xsl:call-template>
> </xsl:when>
> <xsl:otherwise>
> <xsl:variable name="head">
> <xsl:value-of select = "substring-before($tablanguages,',')" />
> </xsl:variable>
> <xsl:variable name="tail">
> <xsl:value-of select = "substring-after($tablanguages,',')" />
> </xsl:variable>
> <xsl:call-template name="languagetab">
> <xsl:with-param name="tablanguage"><xsl:value-of select="$head"/></xsl:with-param>
> </xsl:call-template>
> <xsl:call-template name="languagetabs">
> <xsl:with-param name="tablanguages"><xsl:value-of select="$tail"/></xsl:with-param>
> </xsl:call-template>
> </xsl:otherwise>
> </xsl:choose>
> </xsl:template>
>
> <xsl:template name="languagetab">
> <xsl:param name="tablanguage"/>
> <td><a id="{$tablanguage}">
> <xsl:call-template name="activate">
> <xsl:with-param name="tablanguage"><xsl:value-of select="$tablanguage"/></xsl:with-param>
> </xsl:call-template>
> </a></td>
> </xsl:template>
>
></xsl:stylesheet>
>
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>For additional commands, e-mail: user-help@lenya.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: About sitetree
Posted by Annie Dumont <an...@univ-reunion.fr>.
Hi Josias ! Hi all,
Josias Thoeny a écrit :
> Hi Annie,
>
>I can reproduce your problem with the current version of Lenya 1.2.x
>Then I replaced some area parameters in root.xsl and the problem seemed
>to go away.
>
Yes that's it :-) I test it on our server, and the sitetree is now
visible for a simple user.The portion of sitetree forbiden is in red and
unclickable. Perfect !
Thank you very much Josias.
Cheers, annie
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: About sitetree
Posted by Josias Thoeny <jo...@wyona.com>.
On Fri, 2005-11-25 at 15:21 +0400, Annie Dumont wrote:
> Hi Josias, hi Michi, hi all,
>
> Josias Thoeny a écrit :
> > On Fri, 2005-11-25 at 09:42 +0100, Michael Wechner wrote:
> >
> > > Annie Dumont wrote:
> > >
> > >
> > > [...]
> >
> > Actually the AccessControlSitetreeTransformer is being applied already.
> > This sounds like a bug.
> > Annie, can you explain with more detail how you set the rights of this
> > "simple user"?
> >
> I use the admin tab of lenya.
> I create users by clicking on "cms users" button. Then i affect each
> one to a group.
> The reviewer and editor groups are those created during the
> installation of lenya.
> The other groups, for the "simple users" are created by using the
> "add group" button, on the administration-tab side, menu
> "Administration", option "Group" (between users and IP range).
> Then these groups are given rights (edit ou review) on the sitetree by
> using the option 'CA auth." of the site-tab.
>
> Does this help ?
Hi Annie,
I can reproduce your problem with the current version of Lenya 1.2.x
Then I replaced some area parameters in root.xsl and the problem seemed
to go away. But I didn't test a lot, and not with Lenya 1.2.3. But you
can try to replace the file lenya/xslt/info/root.xsl with the one in the
attachement to see if it helps.
(I replaced authoring with info-authoring in this file)
hth,
Josias
>
> Cheers, annie
>
> PS : i am in lenya 1.2.3 and cocoon 2.1.7
Re: About sitetree
Posted by Annie Dumont <an...@univ-reunion.fr>.
Hi Josias, hi Michi, hi all,
Josias Thoeny a écrit :
>On Fri, 2005-11-25 at 09:42 +0100, Michael Wechner wrote:
>
>
>>Annie Dumont wrote:
>>
>>
>>
>> [...]
>
>
>Actually the AccessControlSitetreeTransformer is being applied already.
>This sounds like a bug.
>Annie, can you explain with more detail how you set the rights of this
>"simple user"?
>
>
I use the admin tab of lenya.
I create users by clicking on "cms users" button. Then i affect each one
to a group.
The reviewer and editor groups are those created during the installation
of lenya.
The other groups, for the "simple users" are created by using the "add
group" button, on the administration-tab side, menu "Administration",
option "Group" (between users and IP range).
Then these groups are given rights (edit ou review) on the sitetree by
using the option 'CA auth." of the site-tab.
Does this help ?
Cheers, annie
PS : i am in lenya 1.2.3 and cocoon 2.1.7
Re: About sitetree
Posted by Josias Thoeny <jo...@wyona.com>.
On Fri, 2005-11-25 at 09:42 +0100, Michael Wechner wrote:
> Annie Dumont wrote:
>
> > Hi everybody !
> >
> > When you belong to the group editor or/and reviewer under Lenya, you
> > have the ability on our publication to see all the sitetree on the
> > site-tab, because by default, the editor et the reviewer can write and
> > publish everywhere on our site.
> > We created many groups with rights, on different part of the
> > sitetree. It would be great if these people could see the part of
> > sitetree they are able to work in.
> > For the moment, a simple user obtains this message : [Application
> > JavaScript] Error : could not load sitetree.xml
> > Is it possible to change this ? As anybody an idea ?
>
>
> I think you should file an enhancement bug. I guess one would have to
> pass the sitretree through the Access/Authorization controller
> and by using XMLHTTP resp. AJAX the performance problem shouldn't be
> such an issue, but which certainly depends on your actual sitetree.
> e.g. let's say one has a million nodes on a certain level, then all
> these nodes need to be checked. Just something one has to be aware
> of when implementing such a solution. So I guess it would make sense to
> have a disable/enable switch for such a feature.
Actually the AccessControlSitetreeTransformer is being applied already.
This sounds like a bug.
Annie, can you explain with more detail how you set the rights of this
"simple user"?
thanks,
Josias
>
> Michi
>
> >
> > Cheers. annie
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> > For additional commands, e-mail: user-help@lenya.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: About sitetree
Posted by Michael Wechner <mi...@wyona.com>.
Annie Dumont wrote:
> Hi everybody !
>
> When you belong to the group editor or/and reviewer under Lenya, you
> have the ability on our publication to see all the sitetree on the
> site-tab, because by default, the editor et the reviewer can write and
> publish everywhere on our site.
> We created many groups with rights, on different part of the
> sitetree. It would be great if these people could see the part of
> sitetree they are able to work in.
> For the moment, a simple user obtains this message : [Application
> JavaScript] Error : could not load sitetree.xml
> Is it possible to change this ? As anybody an idea ?
I think you should file an enhancement bug. I guess one would have to
pass the sitretree through the Access/Authorization controller
and by using XMLHTTP resp. AJAX the performance problem shouldn't be
such an issue, but which certainly depends on your actual sitetree.
e.g. let's say one has a million nodes on a certain level, then all
these nodes need to be checked. Just something one has to be aware
of when implementing such a solution. So I guess it would make sense to
have a disable/enable switch for such a feature.
Michi
>
> Cheers. annie
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org