Ok,

Two questions then:

-the concept of parent? I thought that pages were just spacename.pagename, and 
the parents where the link sources.

-How can I get the pages with no link to them?

Thanks,

Francisco

-----Mensaje original-----
De: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] En nombre de 
Vincent Massol
Enviado el: lunes, 16 de febrero de 2009 12:04
Para: XWiki Users
Asunto: Re: [xwiki-users] My orphaned pages panels do not work properly

Hi,

On Feb 16, 2009, at 11:46 AM, Hernández Cuchí, Francisco Ricardo wrote:

> Hello,
>
>
>
> I have some pages listed in the orphaned panel, but this page have a  
> backlink in the backlink panel, so meybe I don´t understand the  
> meaning of the orphaned pages panel, but I think that a page with a  
> parent, is not orphaned.

* orphaned means no parent.
* backlinks means that some page points to you

If you want no parent + no backlinks then you'd need to modify the  
query in your orphaned pages panel.

Thanks
-Vincent

> Here is the code of the panel:
>
>>
> #panelheader('Páginas Huérfanas')
>
> #set ($query = "where doc.parent is null or doc.parent='' and  
> doc.name <> 'WebHome' order by doc.name asc")
>
> #foreach ($item in $xwiki.searchDocuments("${query}"))
>
> #if ($xwiki.hasAccessLevel("view", $context.user, "$ 
> {context.database}:${item}"))
>
> #set($bentrydoc = $xwiki.getDocument($item))
>
> * [${bentrydoc.fullName}]
>
> #end
>
> #end
>
> #panelfooter()
>
>
>
> Thanks for the help,
>
>
>
> Francisco,
>
>

_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
**********************************************************************************************
IMPORTANTE: El contenido de este correo y ficheros adjuntos es confidencial y 
está dirigido únicamente 
para el destinatario/s.
Si Ud recibe este correo por error, por favor póngase en contacto con su 
administrador de correo o con el 
emisor immediatamente y no difunda su contenido a nadie ni haga copias.
*** Este correo ha sido escaneado de virus y contenido malicioso ***
**********************************************************************************************

_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to