[xwiki-users] how to hide "${pdoc.displayTitle}" and its friends
Hi there! Is it possible to hide " ${pdoc.displayTitle}" and similar texts from the navigation bar? It's renders the proper title of the doc if the user is logged in but displays the "${pdoc.displayTitle}" (and similar) strings if the user is not logged out. Anybody faced the problem? Solutions? Cheers, P
Similar issue: what do you think: is it possible to remove all navigation and registration and editing stuff from the "Blog" if the user is no logged in. If the user is logged in, everything should be default. What is the simplest solution? Skinning? Cheers, P On 2/8/07, Ipacs Péter <[email protected]> wrote:
Hi there!
Is it possible to hide " ${pdoc.displayTitle}" and similar texts from the navigation bar? It's renders the proper title of the doc if the user is logged in but displays the "${pdoc.displayTitle }" (and similar) strings if the user is not logged out.
Anybody faced the problem? Solutions?
Cheers, P
-- Peter Ipacs Business Analyst E-mail: [email protected] Phone: (+36)20/483-4229 MSN: [email protected] ICQ: 131065782 Skype: peteripacs
Simplest solution would probably be to setup permissions to lock down the XWikiGuest account.. ________________________________ From: Ipacs Péter [mailto:[email protected]] Sent: 08 February 2007 12:33 To: [email protected] Subject: Re: [xwiki-users] how to hide "${pdoc.displayTitle}" and its friends Similar issue: what do you think: is it possible to remove all navigation and registration and editing stuff from the "Blog" if the user is no logged in. If the user is logged in, everything should be default. What is the simplest solution? Skinning? Cheers, P On 2/8/07, Ipacs Péter <[email protected]> wrote: Hi there! Is it possible to hide " ${pdoc.displayTitle}" and similar texts from the navigation bar? It's renders the proper title of the doc if the user is logged in but displays the "${pdoc.displayTitle }" (and similar) strings if the user is not logged out. Anybody faced the problem? Solutions? Cheers, P -- Peter Ipacs Business Analyst E-mail: [email protected] Phone: (+36)20/483-4229 MSN: [email protected] ICQ: 131065782 Skype: peteripacs
You mean disable viewing? That's not good for a public blog:) On 2/8/07, Esbach, Brandon <[email protected]> wrote:
Simplest solution would probably be to setup permissions to lock down the XWikiGuest account..
------------------------------ *From:* Ipacs Péter [mailto:[email protected]] *Sent:* 08 February 2007 12:33 *To:* [email protected] *Subject:* Re: [xwiki-users] how to hide "${pdoc.displayTitle}" and its friends
Similar issue: what do you think: is it possible to remove all navigation and registration and editing stuff from the "Blog" if the user is no logged in. If the user is logged in, everything should be default. What is the simplest solution? Skinning?
Cheers, P
On 2/8/07, Ipacs Péter <[email protected]> wrote:
Hi there!
Is it possible to hide " ${pdoc.displayTitle}" and similar texts from the navigation bar? It's renders the proper title of the doc if the user is logged in but displays the "${pdoc.displayTitle }" (and similar) strings if the user is not logged out.
Anybody faced the problem? Solutions?
Cheers, P
-- Peter Ipacs Business Analyst E-mail: [email protected] Phone: (+36)20/483-4229 MSN: [email protected] ICQ: 131065782 Skype: peteripacs
-- You receive this message as a subscriber of the [email protected] list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Peter Ipacs Business Analyst E-mail: [email protected] Phone: (+36)20/483-4229 MSN: [email protected] ICQ: 131065782 Skype: peteripacs
Not at all. Register, edit and comment are permissions you could restrict so that you have to be registered to do anything other than view items(Register can be further restricted to only admin, or any other group). So, one action to fix two parts. Navigation depends on what you regard as removing ability to navigate. Assuming xwiki10B*, then this could be done by removing all the panels from the side. To do this simply restrict the XWikiGuest to disallow viewing to the Panels space. ________________________________ From: Ipacs Péter [mailto:[email protected]] Sent: 08 February 2007 12:49 To: [email protected] Subject: Re: [xwiki-users] how to hide "${pdoc.displayTitle}" and its friends You mean disable viewing? That's not good for a public blog:) On 2/8/07, Esbach, Brandon <[email protected] > wrote: Simplest solution would probably be to setup permissions to lock down the XWikiGuest account.. ________________________________ From: Ipacs Péter [mailto:[email protected]] Sent: 08 February 2007 12:33 To: [email protected] Subject: Re: [xwiki-users] how to hide "${pdoc.displayTitle}" and its friends Similar issue: what do you think: is it possible to remove all navigation and registration and editing stuff from the "Blog" if the user is no logged in. If the user is logged in, everything should be default. What is the simplest solution? Skinning? Cheers, P On 2/8/07, Ipacs Péter <[email protected]> wrote: Hi there! Is it possible to hide " ${pdoc.displayTitle}" and similar texts from the navigation bar? It's renders the proper title of the doc if the user is logged in but displays the "${pdoc.displayTitle }" (and similar) strings if the user is not logged out. Anybody faced the problem? Solutions? Cheers, P -- Peter Ipacs Business Analyst E-mail: [email protected] Phone: (+36)20/483-4229 MSN: [email protected] ICQ: 131065782 Skype: peteripacs -- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto: [email protected] For general help: mailto: [email protected] <mailto:[email protected]> ?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws -- Peter Ipacs Business Analyst E-mail: [email protected] Phone: (+36)20/483-4229 MSN: [email protected] ICQ: 131065782 Skype: peteripacs
Brandon replied to the follow-on question, so I'll reply to the original question: The un-rendered display of Velocity references that evaluate to null (which is what this is) can be suppressed by adding "!" to the reference, right after the "$" - e.g.: $reference or ${reference} becomes $!reference or $!{reference}. That will stop the obnoxious display of data meaningless to the user, but I suspect that's not what you want. Instead, I think you want users to see the same thing as they would if logged in. The problem, of course, is what causes the references to be null in the first place. If the information that is supposed to be displayed is not intended to be hidden from unauthenticated users, then access to the resources accessed by the reference needs to be granted to them (i.e., to XWikiGuest). In the specific case of ${pdoc.displayTitle}, I believe that the resource is the relevant Preferences page, i.e. XWiki.XWikiPreferences or <spacename>.WebPreferences. This is something I've seen, and I think that the default permissions on those pages are probably wrong. It may also be due to lack of permission to read the "skins" or the "templates" directory. The URLs for these docs will be (relative to the appserver's address: /xwiki/skin/default/<docname> and /xwiki/templates/<templatename>.vm. I hope that's not the case, because I really don't know how to fix that. brain[sic] On 2/8/07, Ipacs Péter <[email protected]> wrote: Hi there! Is it possible to hide " ${pdoc.displayTitle}" and similar texts from the navigation bar? It's renders the proper title of the doc if the user is logged in but displays the "${pdoc.displayTitle }" (and similar) strings if the user is not logged out. Anybody faced the problem? Solutions? Cheers, P
I've noticed this happening when I delete documents this afternoon on our test B3 server - this is a new result on a previous mail I sent for B2 (titled "Deleting a document - XWiki10b2"). It's almost like, at certain times the XWiki has been treating my users as logged out (log-in link appears at the top right, group checks come back as false), even though they are in fact logged in. Could be maybe some html in there that's causing the cookie script to not run properly? ________________________________ From: THOMAS, BRIAN M (ATTSI) [mailto:[email protected]] Sent: 08 February 2007 14:59 To: [email protected] Subject: RE: [xwiki-users] how to hide "${pdoc.displayTitle}" and its friends Brandon replied to the follow-on question, so I'll reply to the original question: The un-rendered display of Velocity references that evaluate to null (which is what this is) can be suppressed by adding "!" to the reference, right after the "$" - e.g.: $reference or ${reference} becomes $!reference or $!{reference}. That will stop the obnoxious display of data meaningless to the user, but I suspect that's not what you want. Instead, I think you want users to see the same thing as they would if logged in. The problem, of course, is what causes the references to be null in the first place. If the information that is supposed to be displayed is not intended to be hidden from unauthenticated users, then access to the resources accessed by the reference needs to be granted to them (i.e., to XWikiGuest). In the specific case of ${pdoc.displayTitle}, I believe that the resource is the relevant Preferences page, i.e. XWiki.XWikiPreferences or <spacename>.WebPreferences. This is something I've seen, and I think that the default permissions on those pages are probably wrong. It may also be due to lack of permission to read the "skins" or the "templates" directory. The URLs for these docs will be (relative to the appserver's address: /xwiki/skin/default/<docname> and /xwiki/templates/<templatename>.vm. I hope that's not the case, because I really don't know how to fix that. brain[sic] On 2/8/07, Ipacs Péter <[email protected]> wrote: Hi there! Is it possible to hide " ${pdoc.displayTitle}" and similar texts from the navigation bar? It's renders the proper title of the doc if the user is logged in but displays the "${pdoc.displayTitle }" (and similar) strings if the user is not logged out. Anybody faced the problem? Solutions? Cheers, P
participants (3)
-
Esbach, Brandon -
Ipacs Péter -
THOMAS, BRIAN M (ATTSI)