Re: [xwiki-users] Navigation Panel

2017-05-15 Thread Timo Dachs-Wegmann
Hi Vincent,

I've looked at the option for hiding spaces that are tagged as hidden but I 
can't hide all the pages I don't want to have in the navigation panel because 
they should be viewable by default... 

We had another navigation panel in an earlier version that displays the navi as 
an accordion bar. It hat a blacklist option as you can see below:
#set ($blacklistedSpaces = ['Main', 'AnnotationCode', 'ColorThemes', 
'XWiki', 'Panels', 'Scheduler', 'Stats', 'AppWithinMinutes', 'Blog'])


I tried using the tree macro and I've read the documentation about the custom 
document tree but neither in the first few tries :(.

Thank you for your answer and I hope that Marius will find a way to add a 
Blacklist feature :)

Kind regards,
Timo


Hi Timo,

> On 10 May 2017, at 14:50, Timo Dachs-Wegmann  wrote:
> 
> Hello all,
> 
> I installed the latest version of XWiki (9.3.1) and I want to get a new 
> navigation panel since my old is a little bit buggy and outdated. 
> 
> I would like to have something like the document tree macro generates with 
> this command:
> 
>   {{velocity}}
>   #panelheader('Navi3')
>   {{documentTree showTranslations="false" showAttachments="false" 
> compact="true" showSpaces="true" limit=20/}}
>   #panelfooter()
>   {{/velocity}}
> 
> But the problem there is, that I can't blacklist the spaces I don't 
> want to be shown in this list…

If the spaces contain hidden pages or pages that the user doesn’t have 
permissions to view then it shouldn’t be listed. Maybe that’s a workaround that 
could work for you?

> There was a ticket already with this topic and I posted a comment 
> there, so hopefully they add this "feature" (yes for me it is a needed 
> feature) but I thought maybe you guys have a navigation bar that is generated 
> dynamicly and will work for me. (It should be a tree panel).
> Something like this:
> http://test.xwiki.org/xwiki/bin/view/Panels%20Tests/Navigation%20Panel
> #Attachments

If you want to control the content, maybe you could use the Tree macro: 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Tree%20Macro

Or 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Document+Tree+Macro#HCustomDocumentTree

EDIT: I see you’ve commented on 
https://jira.xwiki.org/browse/XWIKI-12895?focusedCommentId=94975&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-94975

I’ll reply there. 

Thanks
-Vincent

> Link to the JIRA ticket:
> https://jira.xwiki.org/browse/XWIKI-12895
> 
> 
> Mit freundlichen Grüßen
> 
> Timo Dachs-Wegmann
> -EDV-
> 
> 
> -
> PROCITEC GmbH Rastatter Strasse 41
> D-75179 Pforzheim
> Fon: +49 7231 15561-29
> Fax: +49 7231 15561-11
> Mailto: t.wegm...@procitec.de
> 
> Mannheim HRB 504702
> Geschäftsführer: Dipl.-Ing. (FH) Dipl.-Inf. (FH) Jens Heyen
> 
> 
> 
> 






Re: [xwiki-users] Navigation Panel

2017-05-10 Thread Vincent Massol
Hi Timo,

> On 10 May 2017, at 14:50, Timo Dachs-Wegmann  wrote:
> 
> Hello all,
> 
> I installed the latest version of XWiki (9.3.1) and I want to get a new 
> navigation panel since my old is a little bit buggy and outdated. 
> 
> I would like to have something like the document tree macro generates with 
> this command:
> 
>   {{velocity}}
>   #panelheader('Navi3')
>   {{documentTree showTranslations="false" showAttachments="false" 
> compact="true" showSpaces="true" limit=20/}}
>   #panelfooter()
>   {{/velocity}}
> 
> But the problem there is, that I can't blacklist the spaces I don't want to 
> be shown in this list…

If the spaces contain hidden pages or pages that the user doesn’t have 
permissions to view then it shouldn’t be listed. Maybe that’s a workaround that 
could work for you?

> There was a ticket already with this topic and I posted a comment there, so 
> hopefully they add this "feature" (yes for me it is a needed feature) but I 
> thought maybe you guys have a navigation bar that 
> is generated dynamicly and will work for me. (It should be a tree panel).
> Something like this:
> http://test.xwiki.org/xwiki/bin/view/Panels%20Tests/Navigation%20Panel#Attachments

If you want to control the content, maybe you could use the Tree macro: 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Tree%20Macro

Or 
http://extensions.xwiki.org/xwiki/bin/view/Extension/Document+Tree+Macro#HCustomDocumentTree

EDIT: I see you’ve commented on 
https://jira.xwiki.org/browse/XWIKI-12895?focusedCommentId=94975&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-94975

I’ll reply there. 

Thanks
-Vincent

> Link to the JIRA ticket:
> https://jira.xwiki.org/browse/XWIKI-12895
> 
> 
> Mit freundlichen Grüßen  
> 
> Timo Dachs-Wegmann
> -EDV- 
> 
> 
> -
> PROCITEC GmbH Rastatter Strasse 41
> D-75179 Pforzheim
> Fon: +49 7231 15561-29
> Fax: +49 7231 15561-11
> Mailto: t.wegm...@procitec.de 
> 
> Mannheim HRB 504702
> Geschäftsführer: Dipl.-Ing. (FH) Dipl.-Inf. (FH) Jens Heyen
> 
> 
> 
> 



[xwiki-users] Navigation Panel

2017-05-10 Thread Timo Dachs-Wegmann
Hello all,

I installed the latest version of XWiki (9.3.1) and I want to get a new 
navigation panel since my old is a little bit buggy and outdated. 

I would like to have something like the document tree macro generates with this 
command:

{{velocity}}
#panelheader('Navi3')
{{documentTree showTranslations="false" showAttachments="false" 
compact="true" showSpaces="true" limit=20/}}
#panelfooter()
{{/velocity}}

But the problem there is, that I can't blacklist the spaces I don't want to be 
shown in this list...
There was a ticket already with this topic and I posted a comment there, so 
hopefully they add this "feature" (yes for me it is a needed feature) but I 
thought maybe you guys have a navigation bar that 
is generated dynamicly and will work for me. (It should be a tree panel).
Something like this:
http://test.xwiki.org/xwiki/bin/view/Panels%20Tests/Navigation%20Panel#Attachments

Link to the JIRA ticket:
https://jira.xwiki.org/browse/XWIKI-12895


Mit freundlichen Grüßen  

Timo Dachs-Wegmann
-EDV- 


-
PROCITEC GmbH Rastatter Strasse 41
D-75179 Pforzheim
Fon: +49 7231 15561-29
Fax: +49 7231 15561-11
Mailto: t.wegm...@procitec.de 

Mannheim HRB 504702
Geschäftsführer: Dipl.-Ing. (FH) Dipl.-Inf. (FH) Jens Heyen






Re: [xwiki-users] Navigation Panel that lists all wiki's in a farm

2014-02-18 Thread Marius Dumitru Florea
You can also adapt this code snippet
http://extensions.xwiki.org/xwiki/bin/view/Extension/List+Of+Wikis+I+can+Administer
(i.e. remove the rights check) and put it in a panel.

Hope this helps,
Marius

On Tue, Feb 18, 2014 at 7:37 PM, vinc...@massol.net  wrote:
> Hi,
>
> You could upgrade to XWiki 5.4.1 since this is a built-in feature, see:
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Wiki+Application#HNewmenusandWikiIndex
>
> Thanks
> -Vincent
>
> On 18 Feb 2014 at 18:23:10, stypuma 
> (mark.stypulkow...@ngc.com(mailto:mark.stypulkow...@ngc.com)) wrote:
>
>> I am new to xwiki so bear with me if this a solution already built into
>> xwiki.
>>
>> I would like to create a navigation panel that will automatically populate a
>> list of all wikis (including home) in a xwiki farm and contain links to each
>> wiki's home page. Does anyone know how to create this panel?
>>
>> Thanks
> ___
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Navigation Panel that lists all wiki's in a farm

2014-02-18 Thread vinc...@massol.net
Hi,

You could upgrade to XWiki 5.4.1 since this is a built-in feature, see:
http://extensions.xwiki.org/xwiki/bin/view/Extension/Wiki+Application#HNewmenusandWikiIndex

Thanks
-Vincent

On 18 Feb 2014 at 18:23:10, stypuma 
(mark.stypulkow...@ngc.com(mailto:mark.stypulkow...@ngc.com)) wrote:

> I am new to xwiki so bear with me if this a solution already built into
> xwiki.
> 
> I would like to create a navigation panel that will automatically populate a
> list of all wikis (including home) in a xwiki farm and contain links to each
> wiki's home page. Does anyone know how to create this panel?
> 
> Thanks
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Navigation Panel that lists all wiki's in a farm

2014-02-18 Thread stypuma
I am new to xwiki so bear with me if this a solution already built into
xwiki. 

I would like to create a navigation panel that will automatically populate a
list of all wikis (including home) in a xwiki farm and contain links to each
wiki's home page. Does anyone know how to create this panel?

Thanks



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Navigation-Panel-that-lists-all-wiki-s-in-a-farm-tp7589188.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Navigation Panel, many duplicate entries

2013-10-14 Thread Vincent Massol

On Oct 14, 2013, at 4:39 PM, Stefan Sabolowitsch  
wrote:

> Vincent, will this work in a nav panel (left / right site) ?

Yes. You might need to have proper CSS to adjust the width if it overflows for 
example.

thanks
-Vincent

> Am 14.10.13 16:31, schrieb Vincent Massol:
>> On Oct 14, 2013, at 4:23 PM, Vincent Massol  wrote:
>> 
>>> On Oct 14, 2013, at 4:12 PM, Vincent Massol  wrote:
>>> 
 Hi,
 
 On Oct 14, 2013, at 4:04 PM, StefanS  wrote:
 
> Hi Vincent,
> thank you for your fast answer.
> 
> About your recommend.
> Is there an alternative that with v5.2 works?
> I need a simple (tree) navigation (example confluence).
 Well you could have your own panel and put the links you wish in there. 
 Same solution as the Quick Links Panel.
>>> See also 
>>> http://extensions.xwiki.org/xwiki/bin/view/Extension/Menu+Application ?
>> And http://extensions.xwiki.org/xwiki/bin/view/Extension/HierarchyMacro
>> 
>> Thanks
>> -Vincent
>> 
>>> Thanks
>>> -Vincent
>>> 
 You could also check the other existing panels on 
 http://extensions.xwiki.org
 
 Ideally we should provide a scalable navigation panel with lazy loading.
 
 Maybe someone here has a solution?
 
 Thanks
 -Vincent
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Navigation Panel, many duplicate entries

2013-10-14 Thread Stefan Sabolowitsch

Vincent, will this work in a nav panel (left / right site) ?

Am 14.10.13 16:31, schrieb Vincent Massol:

On Oct 14, 2013, at 4:23 PM, Vincent Massol  wrote:


On Oct 14, 2013, at 4:12 PM, Vincent Massol  wrote:


Hi,

On Oct 14, 2013, at 4:04 PM, StefanS  wrote:


Hi Vincent,
thank you for your fast answer.

About your recommend.
Is there an alternative that with v5.2 works?
I need a simple (tree) navigation (example confluence).

Well you could have your own panel and put the links you wish in there. Same 
solution as the Quick Links Panel.

See also http://extensions.xwiki.org/xwiki/bin/view/Extension/Menu+Application ?

And http://extensions.xwiki.org/xwiki/bin/view/Extension/HierarchyMacro

Thanks
-Vincent


Thanks
-Vincent


You could also check the other existing panels on http://extensions.xwiki.org

Ideally we should provide a scalable navigation panel with lazy loading.

Maybe someone here has a solution?

Thanks
-Vincent

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





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


Re: [xwiki-users] Navigation Panel, many duplicate entries

2013-10-14 Thread StefanS
Vicent, thank you for this example.
>See also
http://extensions.xwiki.org/xwiki/bin/view/Extension/Menu+Application this ? 
Can you please describe how to do this with a left Panel as a NavTree ?
Sory i'm not a Java / Xwiki script expert.

thanks
Stefan



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Navigation-Panel-many-duplicate-entries-tp7587562p7587570.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Navigation Panel, many duplicate entries

2013-10-14 Thread Vincent Massol

On Oct 14, 2013, at 4:23 PM, Vincent Massol  wrote:

> 
> On Oct 14, 2013, at 4:12 PM, Vincent Massol  wrote:
> 
>> Hi,
>> 
>> On Oct 14, 2013, at 4:04 PM, StefanS  wrote:
>> 
>>> Hi Vincent,
>>> thank you for your fast answer.
>>> 
>>> About your recommend.
>>> Is there an alternative that with v5.2 works?
>>> I need a simple (tree) navigation (example confluence).
>> 
>> Well you could have your own panel and put the links you wish in there. Same 
>> solution as the Quick Links Panel.
> 
> See also 
> http://extensions.xwiki.org/xwiki/bin/view/Extension/Menu+Application ?

And http://extensions.xwiki.org/xwiki/bin/view/Extension/HierarchyMacro

Thanks
-Vincent

> Thanks
> -Vincent
> 
>> You could also check the other existing panels on http://extensions.xwiki.org
>> 
>> Ideally we should provide a scalable navigation panel with lazy loading.
>> 
>> Maybe someone here has a solution?
>> 
>> Thanks
>> -Vincent
> 

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


Re: [xwiki-users] Navigation Panel, many duplicate entries

2013-10-14 Thread Vincent Massol

On Oct 14, 2013, at 4:12 PM, Vincent Massol  wrote:

> Hi,
> 
> On Oct 14, 2013, at 4:04 PM, StefanS  wrote:
> 
>> Hi Vincent,
>> thank you for your fast answer.
>> 
>> About your recommend.
>> Is there an alternative that with v5.2 works?
>> I need a simple (tree) navigation (example confluence).
> 
> Well you could have your own panel and put the links you wish in there. Same 
> solution as the Quick Links Panel.

See also http://extensions.xwiki.org/xwiki/bin/view/Extension/Menu+Application 
this ?

Thanks
-Vincent

> You could also check the other existing panels on http://extensions.xwiki.org
> 
> Ideally we should provide a scalable navigation panel with lazy loading.
> 
> Maybe someone here has a solution?
> 
> Thanks
> -Vincent

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


Re: [xwiki-users] Navigation Panel, many duplicate entries

2013-10-14 Thread Vincent Massol
Hi,

On Oct 14, 2013, at 4:04 PM, StefanS  wrote:

> Hi Vincent,
> thank you for your fast answer.
> 
> About your recommend.
> Is there an alternative that with v5.2 works?
> I need a simple (tree) navigation (example confluence).

Well you could have your own panel and put the links you wish in there. Same 
solution as the Quick Links Panel.

You could also check the other existing panels on http://extensions.xwiki.org

Ideally we should provide a scalable navigation panel with lazy loading.

Maybe someone here has a solution?

Thanks
-Vincent
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Navigation Panel, many duplicate entries

2013-10-14 Thread StefanS
Hi Vincent,
thank you for your fast answer.

About your recommend.
Is there an alternative that with v5.2 works?
I need a simple (tree) navigation (example confluence).

Regards
Stefan



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Navigation-Panel-many-duplicate-entries-tp7587562p7587564.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Navigation Panel, many duplicate entries

2013-10-14 Thread Vincent Massol

On Oct 14, 2013, at 3:05 PM, StefanS  wrote:

> Hi all,
> i use xwiki 5.2 with Navigation Panel.
> However, i see many duplicate identical entries here in the Navigation
> Panel.
> 
> Example:
> Space Sandbox, 8 x WebHome
> Space Main, 10 x Welcome
> 
> Any help here ?

I guess that's because of the translations.

This Panel needs to be updated to only list one entry for all languages.

You should create a jira issue about it.

Note that this is a panel we don't recommend using since it doesn't scale with 
the # of documents and I thought we had moved it out of the XE but I checked 
and it's still there...

Thanks
-Vincent

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


[xwiki-users] Navigation Panel, many duplicate entries

2013-10-14 Thread StefanS
Hi all,
i use xwiki 5.2 with Navigation Panel.
However, i see many duplicate identical entries here in the Navigation
Panel.

Example:
Space Sandbox, 8 x WebHome
Space Main, 10 x Welcome

Any help here ?
thx
Stefan 



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Navigation-Panel-many-duplicate-entries-tp7587562.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Navigation Panel

2012-08-07 Thread Alex Meier

Hello,
I want to ask whether there is a way to configurate the navigaton-bar? I'd like 
to klick the headword and then the webhome comes up AND the next deeper level 
in the navigation-bar pops open.
Is there any possibility to handle that? 
 
Furthermore in the navigation-bar the first link should be webhome link every 
time. Can i create a ranking of links in the navigation bar? 
Can i make the navigation panel not dynamic but static? I mean that you manage 
the Spaces and Pages on your own.
 
Thanks for your answers
  
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Navigation Panel Displays in Different Locationof the Page

2009-02-05 Thread Villas82

It seems as the WYSIWYG editor causes this. When you enable center alignment,
it adds a div, below showed, which is never closed. 




Dicheva, Darina wrote:
> 
> Hande,
> 
>  
> 
> You got the code validated, right? Perhaps you could also send the
> report from the validator ...
> 
>  
> 
> 
> 
> From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf
> Of Hande Aksac
> Sent: Monday, October 29, 2007 2:24 PM
> To: XWiki Users
> Subject: Re: [xwiki-users] Navigation Panel Displays in Different
> Locationof the Page
> 
>  
> 
>  
> 
> Thank you for your reply. However, even though I used a validation tool,
> I still could not spot where the problem might be.  I was wondering if
> you could help me with the code below so that the navigation panel will
> not display in different locations on the Blog WebHome page? Thank you. 
> 
>  
> 
> Hande
> 
>  
> 
> This is the code behind Blog.Macros:
> 
>  
> 
> #macro(blog $category $nbitems $nbstart)
> #if(!$maxchars)
> #set($maxchars = 400)
> #end
> 
> #if($category=='')
> #set ($sql = ", BaseObject as obj where obj.name=doc.fullName and
> obj.className='XWiki.ArticleClass' and
> obj.name<>'XWiki.ArticleClassTemplate' order by doc.creationDate desc")
> #else
> #set ($sql = ", BaseObject as obj, DBStringListProperty as prop join
> prop.list list where obj.name=doc.fullName and
> obj.className='XWiki.ArticleClass' and
> obj.name<>'XWiki.ArticleClassTemplate' and obj.id=prop.id.id and
> prop.id.name='category '  and list='${category}' order by
> doc.creationDate desc")
> ## TODO: feed category
> #end
> #set($cdate = "")
> #set($inbitems = $xwiki.parseInt($nbitems))
> #set($inbstart = $xwiki.parseInt($nbstart)) 
> #foreach ($item in $xwiki.searchDocuments($sql, $inbitems, $inbstart))
> #set($bentrydoc = $xwiki.getDocument($item))
> #if($bentrydoc.fullName == $item)
> #set($bentryobj = $bentrydoc.getObject("XWiki.ArticleClass "))
> #set($creationDate = $xwiki.formatDate($bentrydoc.creationDate, "
> dd, "))
> #if($cdate!=$creationDate)
> $creationDate
> #set ($cdate = $creationDate) 
> #end
> 
> $bentrydoc.display("title","view",
> $bentryobj)
>  
> 
> #set($content = $bentrydoc.display("extract", "view", $bentryobj))
> #if($content=="")
> #set($content = $bentrydoc.display("content", "view", $bentryobj))
> #if($content.length()>400) 
> #set($i = $content.lastIndexOf(" ", $maxchars))
> #set($i = $i + 1)
> #set($content = "${content.substring(0,$i)}
> [...>${bentrydoc.fullName}]")
> #end
> #else
> #set($content = "${content} [...>${ bentrydoc.fullName}]")
> #end
> 
> 
> #set($Author = $bentrydoc.display("extract", "view", $bentryobj))
> #if($Author=="")
> #set($Author = $bentrydoc.display("AuthorName", "view", $bentryobj))
> #if($content.length()>400) 
> #set($i = $Author.lastIndexOf(" ", $maxchars))
> #set($i = $i + 1)
> #set($Author = "${Author.substring(0,$i)} [...>${bentrydoc.fullName}]")
> #end
> #else
> #set($Author = "${Author} [...>${ bentrydoc.fullName}]")
> #end
> 
> 
> #set($Year = $bentrydoc.display("extract", "view", $bentryobj))
> #if($Year=="")
> #set($Year = $bentrydoc.display("YearInfo", "view", $bentryobj))
> #if($Year.length()>400) 
> #set($i = $Year.lastIndexOf(" ", $maxchars))
> #set($i = $i + 1)
> #set($Year = "${Year.substring(0,$i)} [...>${bentrydoc.fullName}]")
> #end
> #else
> #set($Year = "${Year} [...>${ bentrydoc.fullName}]")
> #end
> 
> 
> #set($References = $bentrydoc.display("extract", "view", $bentryobj))
> #if($References=="")
> #set($References = $bentrydoc.display("ReferencesInfo", "view",
> $bentryobj)) 
> #if($References.length()>400)
> #set($i = $References.lastIndexOf(" ", $maxchars))
> #set($i = $i + 1)
> #set($References = "${References.substring(0,$i)}
> [...>${bentrydoc.fullName}]")
> #end
> #else
> #set($References = "${References} [...>${bentrydoc.fullName}]")
> #end
> 
> 
> #set($URL = $bentrydoc.display("extract", "view", $bentryobj))
> #if($URL=="")
> #set($URL = $bentrydoc.display("URLInfo", "view", $bentryobj))
> #if($

Re: [xwiki-users] Navigation Panel Displays in Different Locationof the Page

2007-10-29 Thread Dicheva, Darina
Hande,

 

You got the code validated, right? Perhaps you could also send the
report from the validator ...

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Hande Aksac
Sent: Monday, October 29, 2007 2:24 PM
To: XWiki Users
Subject: Re: [xwiki-users] Navigation Panel Displays in Different
Locationof the Page

 

 

Thank you for your reply. However, even though I used a validation tool,
I still could not spot where the problem might be.  I was wondering if
you could help me with the code below so that the navigation panel will
not display in different locations on the Blog WebHome page? Thank you. 

 

Hande

 

This is the code behind Blog.Macros:

 

#macro(blog $category $nbitems $nbstart)
#if(!$maxchars)
#set($maxchars = 400)
#end

#if($category=='')
#set ($sql = ", BaseObject as obj where obj.name=doc.fullName and
obj.className='XWiki.ArticleClass' and
obj.name<>'XWiki.ArticleClassTemplate' order by doc.creationDate desc")
#else
#set ($sql = ", BaseObject as obj, DBStringListProperty as prop join
prop.list list where obj.name=doc.fullName and
obj.className='XWiki.ArticleClass' and
obj.name<>'XWiki.ArticleClassTemplate' and obj.id=prop.id.id and
prop.id.name='category '  and list='${category}' order by
doc.creationDate desc")
## TODO: feed category
#end
#set($cdate = "")
#set($inbitems = $xwiki.parseInt($nbitems))
#set($inbstart = $xwiki.parseInt($nbstart)) 
#foreach ($item in $xwiki.searchDocuments($sql, $inbitems, $inbstart))
#set($bentrydoc = $xwiki.getDocument($item))
#if($bentrydoc.fullName == $item)
#set($bentryobj = $bentrydoc.getObject("XWiki.ArticleClass "))
#set($creationDate = $xwiki.formatDate($bentrydoc.creationDate, "
dd, "))
#if($cdate!=$creationDate)
$creationDate
#set ($cdate = $creationDate) 
#end

$bentrydoc.display("title","view",
$bentryobj)
 

#set($content = $bentrydoc.display("extract", "view", $bentryobj))
#if($content=="")
#set($content = $bentrydoc.display("content", "view", $bentryobj))
#if($content.length()>400) 
#set($i = $content.lastIndexOf(" ", $maxchars))
#set($i = $i + 1)
#set($content = "${content.substring(0,$i)}
[...>${bentrydoc.fullName}]")
#end
#else
#set($content = "${content} [...>${ bentrydoc.fullName}]")
#end


#set($Author = $bentrydoc.display("extract", "view", $bentryobj))
#if($Author=="")
#set($Author = $bentrydoc.display("AuthorName", "view", $bentryobj))
#if($content.length()>400) 
#set($i = $Author.lastIndexOf(" ", $maxchars))
#set($i = $i + 1)
#set($Author = "${Author.substring(0,$i)} [...>${bentrydoc.fullName}]")
#end
#else
#set($Author = "${Author} [...>${ bentrydoc.fullName}]")
#end


#set($Year = $bentrydoc.display("extract", "view", $bentryobj))
#if($Year=="")
#set($Year = $bentrydoc.display("YearInfo", "view", $bentryobj))
#if($Year.length()>400) 
#set($i = $Year.lastIndexOf(" ", $maxchars))
#set($i = $i + 1)
#set($Year = "${Year.substring(0,$i)} [...>${bentrydoc.fullName}]")
#end
#else
#set($Year = "${Year} [...>${ bentrydoc.fullName}]")
#end


#set($References = $bentrydoc.display("extract", "view", $bentryobj))
#if($References=="")
#set($References = $bentrydoc.display("ReferencesInfo", "view",
$bentryobj)) 
#if($References.length()>400)
#set($i = $References.lastIndexOf(" ", $maxchars))
#set($i = $i + 1)
#set($References = "${References.substring(0,$i)}
[...>${bentrydoc.fullName}]")
#end
#else
#set($References = "${References} [...>${bentrydoc.fullName}]")
#end


#set($URL = $bentrydoc.display("extract", "view", $bentryobj))
#if($URL=="")
#set($URL = $bentrydoc.display("URLInfo", "view", $bentryobj))
#if($URL.length()>400) 
#set($i = $URL.lastIndexOf(" ", $maxchars))
#set($i = $i + 1)
#set($URL = "${URL.substring(0,$i)} [...>${bentrydoc.fullName}]")
#end
#else
#set($URL = "${URL} [...>${bentrydoc.fullName }]")
#end

##Make the content visible or invisible 10-16-07 by Hande

#if(($Author !="") && ($Year !="") || ($References !="") && ($URL !=""))
Author: $bentrydoc.display("AuthorName","view",
$bentryobj) 
Year: $bentrydoc.display("YearInfo","view", $bentryobj)
Reference: $bentrydoc.display("ReferencesInfo","view",
$bentryobj) 
URL: $bentrydoc.display("URLInfo","view", $bentryobj)
#else
##set($content = $bentrydoc.display("content", "view"

Re: [xwiki-users] Navigation Panel Displays in Different Location of the Page

2007-10-29 Thread Hande Aksac
Thank you for your reply. However, even though I used a validation tool, I
still could not spot where the problem might be.  I was wondering if you
could help me with the code below so that the navigation panel will not
display in different locations on the Blog WebHome page? Thank you.

Hande

This is the code behind Blog.Macros:

#macro(blog $category $nbitems $nbstart)
#if(!$maxchars)
#set($maxchars = 400)
#end

#if($category=='')
#set ($sql = ", BaseObject as obj where obj.name=doc.fullName and
obj.className='XWiki.ArticleClass' and obj.name<>'XWiki.ArticleClassTemplate'
order by doc.creationDate desc")
#else
#set ($sql = ", BaseObject as obj, DBStringListProperty as prop join
prop.list list where obj.name=doc.fullName and
obj.className='XWiki.ArticleClass' and obj.name<>'XWiki.ArticleClassTemplate'
and obj.id=prop.id.id and prop.id.name='category'  and list='${category}'
order by doc.creationDate desc")
## TODO: feed category
#end
#set($cdate = "")
#set($inbitems = $xwiki.parseInt($nbitems))
#set($inbstart = $xwiki.parseInt($nbstart))
#foreach ($item in $xwiki.searchDocuments($sql, $inbitems, $inbstart))
#set($bentrydoc = $xwiki.getDocument($item))
#if($bentrydoc.fullName == $item)
#set($bentryobj = $bentrydoc.getObject("XWiki.ArticleClass"))
#set($creationDate = $xwiki.formatDate($bentrydoc.creationDate, " dd,
"))
#if($cdate!=$creationDate)
$creationDate
#set ($cdate = $creationDate)
#end

$bentrydoc.display("title","view",
$bentryobj)


#set($content = $bentrydoc.display("extract", "view", $bentryobj))
#if($content=="")
#set($content = $bentrydoc.display("content", "view", $bentryobj))
#if($content.length()>400)
#set($i = $content.lastIndexOf(" ", $maxchars))
#set($i = $i + 1)
#set($content = "${content.substring(0,$i)} [...>${bentrydoc.fullName}]")
#end
#else
#set($content = "${content} [...>${bentrydoc.fullName}]")
#end


#set($Author = $bentrydoc.display("extract", "view", $bentryobj))
#if($Author=="")
#set($Author = $bentrydoc.display("AuthorName", "view", $bentryobj))
#if($content.length()>400)
#set($i = $Author.lastIndexOf(" ", $maxchars))
#set($i = $i + 1)
#set($Author = "${Author.substring(0,$i)} [...>${bentrydoc.fullName}]")
#end
#else
#set($Author = "${Author} [...>${bentrydoc.fullName}]")
#end


#set($Year = $bentrydoc.display("extract", "view", $bentryobj))
#if($Year=="")
#set($Year = $bentrydoc.display("YearInfo", "view", $bentryobj))
#if($Year.length()>400)
#set($i = $Year.lastIndexOf(" ", $maxchars))
#set($i = $i + 1)
#set($Year = "${Year.substring(0,$i)} [...>${bentrydoc.fullName}]")
#end
#else
#set($Year = "${Year} [...>${bentrydoc.fullName}]")
#end


#set($References = $bentrydoc.display("extract", "view", $bentryobj))
#if($References=="")
#set($References = $bentrydoc.display("ReferencesInfo", "view", $bentryobj))
#if($References.length()>400)
#set($i = $References.lastIndexOf(" ", $maxchars))
#set($i = $i + 1)
#set($References = "${References.substring(0,$i)} [...>${bentrydoc.fullName
}]")
#end
#else
#set($References = "${References} [...>${bentrydoc.fullName}]")
#end


#set($URL = $bentrydoc.display("extract", "view", $bentryobj))
#if($URL=="")
#set($URL = $bentrydoc.display("URLInfo", "view", $bentryobj))
#if($URL.length()>400)
#set($i = $URL.lastIndexOf(" ", $maxchars))
#set($i = $i + 1)
#set($URL = "${URL.substring(0,$i)} [...>${bentrydoc.fullName}]")
#end
#else
#set($URL = "${URL} [...>${bentrydoc.fullName}]")
#end

##Make the content visible or invisible 10-16-07 by Hande

#if(($Author !="") && ($Year !="") || ($References !="") && ($URL !=""))
Author: $bentrydoc.display("AuthorName","view", $bentryobj)
Year: $bentrydoc.display("YearInfo","view", $bentryobj)
Reference: $bentrydoc.display("ReferencesInfo","view",
$bentryobj)
URL: $bentrydoc.display("URLInfo","view", $bentryobj)
#else
##set($content = $bentrydoc.display("content", "view", $bentryobj))
$bentrydoc.getRenderedContent($content)
#end


 ## entry-content

#set($bcategories = $bentryobj.getProperty("category").value)
Posted by #userfn($bentrydoc.creator) at $xwiki.formatDate($bentrydoc.creationDate,
"MMM dd,  HH:mm")#if($bcategories.size() > 0) in
#foreach($bcategory in $bcategories)$bcategory #end#end
#if($bentrydoc.date != $bentrydoc.creationDate) | Modified by #userfn($bentrydoc.author) at $xwiki.formatDate($bentrydoc.date,
"MMM dd,  HH:mm") #end | [$bentrydoc.comments.size()
Comment(s)>${bentrydoc.fullName}?xpage=comments] | Permalink
 ## article_footer
 ## hentry
#end
#end
## prev/next links
#if(($inbstart != 0) || ($velocityCount==$inbitems))

#if ($inbstart!=0)
#set($iprev = $inbstart - $inbitems)
[Previous>$doc.name?nbstart=${iprev}]
#end
#if($velocityCount==$inbitems)
#set($inext = $inbstart + $inbitems)
[Next>$doc.name?nbstart=${inext}]
#end

 ## pagingLinks
#end
 ## hfeed
#end
#blog($category $nbitems $nbstart)



On 10/27/07, Sergiu Dumitriu <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> This is caused by a mistake in the html code of the affected pages,
> most probably a missing or an extra . Us

Re: [xwiki-users] Navigation Panel Displays in Different Location of the Page

2007-10-27 Thread Sergiu Dumitriu
Hi,

This is caused by a mistake in the html code of the affected pages,
most probably a missing or an extra . Use a tool for validating
the page, and it will tell you where the problem is.


On 10/27/07, Hande Aksac <[EMAIL PROTECTED]> wrote:
>
>
>
> Hello,
>
> I am experiencing some layout issues. I am using the right navigation panel.
> In the Blog WebHome Page, the right navigation panel is properly visible for
> some pages.
> However, for some pages, the right navigation panel either appears at the
> bottom or at the upper left corner of the page. I am having this problem
> only on the Blog WebHome page.
> How can I solve this issue?
>
> Thank you very much for your time and help!
>
> Hande

Sergiu
-- 
http://purl.org/net/sergiu
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Navigation Panel Displays in Different Location of the Page

2007-10-26 Thread Hande Aksac
 Hello,

I am experiencing some layout issues. I am using the right navigation panel.
In the Blog WebHome Page, the right navigation panel is properly visible for
some pages.
However, for some pages, the right navigation panel either appears at the
bottom or at the upper left corner of the page. I am having this problem
only on the Blog WebHome page.
How can I solve this issue?

Thank you very much for your time and help!

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