Re: [xwiki-users] special rights
hello again. i have tried to solve this paragraph rights for the last couple of days. didn't work :))) i made a var similar to $isAdvancedUser called $isMyUser and tried to give it or not access to parts of a page. then i tried to create a macro that i can add in my page where i want to protect the text. i was probably doing something very much wrong . and so i am starting again. i have read your idea more times to be sure i get it:) i am curious where did u put the #includeTopic('Sandbox.FirstParagraph') or more importantly where have u explained what does that mean. i see this as a method. i still don;t know if xwiki knows about methods. lost :))) Take care , Gabriela Radu :) www.gabrielaradu.com ----- Original Message ---- From: [Ricardo Rodriguez] Your EPEC Network ICT Team <[email protected]> To: XWiki Users <[email protected]> Sent: Tuesday, April 1, 2008 1:36:38 PM Subject: Re: [xwiki-users] special rights Hi Gabriela, Gabriela Radu wrote:
hello.. i don't think i get what you said about the rights on space.. i was talking about sections from the page that can have different rights(to edit or not) then the page. this is what i am trying to make... and yep...i said trying. a bit lost. if you have some pointers they are more then welcomed :D i have to write something like macros? in .vm files? thank you
Sorry if I have not been able to explain myself. In fact, the problem is that I am also a bit lost! Let's try to start again (it will help me with this issue! It is important for our group as well): We are speaking about being able to create a "page" where "sections" can have different assigned rights. Look at this: http://xepecnet..environmentalchange.net/xwiki/bin/view/Sandbox/NichitaStane... It seems a "page" including text, but it only includes five "calls" to other "pages". Look at the code: #includeTopic('Sandbox.Title') #includeTopic('Sandbox.FirstParagraph') #includeTopic('Sandbox.SecondParagraph') #includeTopic('Sandbox.ThirdParagraph') #includeTopic('Sandbox.FourthParagraph') In this case I am using a page (a single XWiki entry in a single space, in this case, Sandbox.NichitaStanescu) as a "document" metaphor and I can assign rights to any of the pieces as you do with any other page. I must not be difficult to add a button close to the starting point of each paragraph that only appears if the logged user has edit rights on each "section" and allow him/her to edit it. Please, let me know if this makes sense for you! It will be help me to decide if this makes sense for me! Then, we could go ahead completing this solution. XWiki is PLENTY of tools/features. The "only" point is to put it in the correct order :-) Cheers, Ricardo BTW: I think it is time to add XWiki to your CV ;-) -- Ricardo Rodríguez Your EPEC Network ICT Team _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users ____________________________________________________________________________________ You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com
Hi! Nohinder wrote:
hello again. i have tried to solve this paragraph rights for the last couple of days. didn't work :))) i made a var similar to $isAdvancedUser called $isMyUser and tried to give it or not access to parts of a page. then i tried to create a macro that i can add in my page where i want to protect the text. i was probably doing something very much wrong . and so i am starting again. i have read your idea more times to be sure i get it:) i am curious where did u put the #includeTopic('Sandbox.FirstParagraph') or more importantly where have u explained what does that mean. i see this as a method. i still don;t know if xwiki knows about methods. lost :)))
Sorry for being late with this. I've been a "bit" busy :-) I am not sure I get your doubt. I'm using #includeTopic to "construct" a document based on several other ones. Five in the case I am using as an example. This allow me/you to delegate access control to the parts more than to the whole doc. Please, allo me to go back to the example: http://xepecnet.environmentalchange.net/xwiki/bin/view/Sandbox/NichitaStanes... It now has a [edit] link after each paragraph. I am sending you an account for this wiki. Login and try to edit any of the four parts. You are allowed to see all four but you can only edit the first one. Of course the code is really poor! You could show/hide this "buttons" based on users rights. And I am sure it is possible to tell XWiki to generate then dynamically for each #includeTopic if you have edit rights on it. I am not devoted much time to this. Just trying to create a kind of "proof of concept" to see if this is what we need. By the way, I think I've not found any attached file to your previous message. Could you send it directly to me? Thanks! Hope this helps, Ricardo -- View this message in context: http://www.nabble.com/special-rights-tp16306398p16537254.html Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (2)
-
[Ricardo Rodríguez] -
Gabriela Radu