[xwiki-users] show/hide attachments, comments, information and history
Hi! Sorry, but I'm kind of a mess with this topic... Working with old XWiki XE releases, there was a way of controlling if attachments, comments, (information) and history were displayed or not by adding four string properties to the class XWiki.XWikiPreferences. Then, on a per document basis it were possible to set each of them to control this feature. #set ($showcomments="no") #set ($showattachments = "no") #set ($showhistory="no") #set ($showinformation = "no") Now, working with Xe/XEM 2.4.1, the #set for these four variables keeps working, but I don't know now to control this for a whole wiki because when editing XWiki.XWikiPreferences, the editor claims that these four properties have been deprecated and offers the an option to delete them. If I delete them, the settings keep working. I also found this in the configuration guide: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Configuration#HTurningof... So, please, where/how is now controlled the visibility of those items? Thanks for your help! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
You probably already know this so I don't know if it helps, but putting #xwikidata { display: none; } in an attached stylesheet is a way of hiding that stuff, or you could just put it into colibri.css directly. I guess on a per page basis though that might be annoying to manage. I hide it on my Main page that way. -- View this message in context: http://xwiki.475771.n2.nabble.com/show-hide-attachments-comments-information... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi! Lockie wrote:
You probably already know this so I don't know if it helps, but putting
#xwikidata { display: none; }
in an attached stylesheet is a way of hiding that stuff, or you could just put it into colibri.css directly. I guess on a per page basis though that might be annoying to manage. I hide it on my Main page that way.
Thanks. It really an easy way of hiding/showing stuff! I'm able to modify colibri.css and control the visibility, but how do you do that on a per page basis? So, in what simple way do you control #xwikidata visibility just in your home page by using an attached CSS stylesheet? The problem here though is that I'm not able to understand how I can recover the visibility of those elements in a migrated wiki for the reasons explained in the opening message of this thread. Any idea will be welcome! Thanks! Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
On 10/22/2010 08:56 AM, [Ricardo Rodriguez] eBioTIC. wrote:
Hi!
Lockie wrote:
You probably already know this so I don't know if it helps, but putting
#xwikidata { display: none; }
in an attached stylesheet is a way of hiding that stuff, or you could just put it into colibri.css directly. I guess on a per page basis though that might be annoying to manage. I hide it on my Main page that way.
Thanks. It really an easy way of hiding/showing stuff! I'm able to modify colibri.css and control the visibility, but how do you do that on a per page basis? So, in what simple way do you control #xwikidata visibility just in your home page by using an attached CSS stylesheet?
A style sheet extension on the home page should do it. See http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial#HMi... Hope this helps, Marius
The problem here though is that I'm not able to understand how I can recover the visibility of those elements in a migrated wiki for the reasons explained in the opening message of this thread. Any idea will be welcome!
Thanks!
Ricardo
Hi Marius, Lockie, Marius Dumitru Florea wrote:
On 10/22/2010 08:56 AM, [Ricardo Rodriguez] eBioTIC. wrote:
Hi!
Lockie wrote:
You probably already know this so I don't know if it helps, but putting
#xwikidata { display: none; }
in an attached stylesheet is a way of hiding that stuff, or you could just put it into colibri.css directly. I guess on a per page basis though that might be annoying to manage. I hide it on my Main page that way.
Thanks. It really an easy way of hiding/showing stuff! I'm able to modify colibri.css and control the visibility, but how do you do that on a per page basis? So, in what simple way do you control #xwikidata visibility just in your home page by using an attached CSS stylesheet?
A style sheet extension on the home page should do it. See http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial#HMi...
This is great stuff. Thank you so much. I've read here and there some message about eXtensions, but I've never tried it until now. I'm sure that there are a lot of other great features that I've not been able to find/use yet. Please, allow me to use this message to thanks again to the XWiki team and to the whole community for the great work already done. I keep trying hard to discover all what this great framework offer to us, the users.
The problem here though is that I'm not able to understand how I can recover the visibility of those elements in a migrated wiki for the reasons explained in the opening message of this thread. Any idea will be welcome!
Well, I'm afraid I don't understand this yet. I keep trying! All the best, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
[Ricardo Rodriguez] eBioTIC. wrote:
Hi Marius, Lockie,
Marius Dumitru Florea wrote:
On 10/22/2010 08:56 AM, [Ricardo Rodriguez] eBioTIC. wrote:
Hi!
Lockie wrote:
You probably already know this so I don't know if it helps, but putting
#xwikidata { display: none; }
in an attached stylesheet is a way of hiding that stuff, or you could just put it into colibri.css directly. I guess on a per page basis though that might be annoying to manage. I hide it on my Main page that way.
Thanks. It really an easy way of hiding/showing stuff! I'm able to modify colibri.css and control the visibility, but how do you do that on a per page basis? So, in what simple way do you control #xwikidata visibility just in your home page by using an attached CSS stylesheet?
A style sheet extension on the home page should do it. See http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial#HMi...
This is great stuff. Thank you so much. I've read here and there some message about eXtensions, but I've never tried it until now. I'm sure that there are a lot of other great features that I've not been able to find/use yet.
Please, allow me to use this message to thanks again to the XWiki team and to the whole community for the great work already done. I keep trying hard to discover all what this great framework offer to us, the users.
The problem here though is that I'm not able to understand how I can recover the visibility of those elements in a migrated wiki for the reasons explained in the opening message of this thread. Any idea will be welcome!
Well, I'm afraid I don't understand this yet. I keep trying!
Well, I've found a workaround: I'm using this in one of the *.vm files in the skin directory of this site: #if($hasEdit) #set ($showcomments="yes") #set ($showattachments = "yes") #set ($showhistory="yes") #set ($showinformation = "yes") #else #set ($showcomments="no") #set ($showattachments = "no") #set ($showhistory="no") #set ($showinformation = "no") #end I'm sure I'm missing something obvious, but I don't know what and I don't know why those panels don't show by default in all and every pages of the concerned subwiki. Thanks! Greetings, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems
participants (3)
-
[Ricardo Rodriguez] eBioTIC. -
Lockie -
Marius Dumitru Florea