[xwiki-users] Questions about the New Syntax help; was: Re: Link with get parameters and ID in XWiki 2.0 syntax
On 09/17/2013 05:18 PM, Vincent Massol wrote: > > On Sep 17, 2013, at 4:52 PM, Clemens Klein-Robbenhaar > wrote: > >> On 09/17/2013 04:40 PM, Vincent Massol wrote: >>> >>> On Aug 29, 2013, at 3:15 PM, Clemens Klein-Robbenhaar >>> wrote: >> [...snip ...] What is actually needed to finish this, aside of a few formatting things? >>> >>> Fixing the code based on the comments in the jira issue (for example it has >>> to pass the build, WCAG compliance is a must have). >>> >>> That's all. >>> >>> Interested to finish it? :) >>> >> >> Yes, definitely. >> I will be on vacation one week in October, then at latest I should find the >> time to look into this. > > Cool! > Well, I looked into it and already have a few questions. sorry ... WCAG Validation: Where is the WCAG test which makes the build fail? When I just run a mvn install inside the xwiki-platform-help-ui itself, this works. Do I have to make a full build to get the test running that would break now? Aside of that I have problems getting WCAG validity anyway. I tried the recommended online validation tool at http://www.webrichtlijnen.nl/english/testing but that complains that the page uses , and has several header ... well, they are part of the documentation showing how to type monospace and headers, so it is hard to avoid them except by leaving the out, which is kinda silly for a documentation; also they are already in the existing syntax help page, so it seems there is some way to avoid that which I do not know. Additionally there are a lot of duplicate id="H2.0" or the like in the full page, but this is how the proper syntax version is extracted from the document containing the relevant section. Similar to Johannes I am a bit lost how to avoid that, except for doing odd things like scrapping the header after rendering, or split the documentation into one document per section *and* syntax (would end up with somewhat 40 instead of 20 headers), or add separate "marker heading" to each and every section (the latter the somewhat best option imo) I see also some problem has been point out that the tables having width=100% However this is also the case with the existing syntax help; but for me they do more harm (making the tables with the examples shift below the left navigation), so I prefer scrap them all unless someone can tell me why they are there in the first place. Translations: There are a few new translations keys. Can I just add them to the ApplicationResources.properties? Additionally there are some existing translations of the complete document: http://l10n.xwiki.org/xwiki/bin/view/L10N/Search?application=&name=Platform.XWikiXWikiSyntax&lang=&key=content&origtext=&transtext= How is it possible to split the content into documents and still make then show up on l10n? (I hope I can do the split in the *.xml files, even though I do not understand most languages, as I can go by the examples, but I have no idea how to sync the results with l10n.xwiki,org.) Finally, should I discuss these issues here in the list, or in jira or on the devs list instead? Any pointers would be very appreciated. Clemens ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Adding a user to groups in Java
On Fri, Sep 20, 2013 at 9:30 PM, Christian Fiddick wrote: > Hello, > > This has frustrated me to no end. I have a custom authenticator based on the > http example > (https://github.com/xwiki-contrib/sandbox/blob/master/authenticators/xwiki-authentication-http/src/main/java/org/xwiki/contrib/authentication/http/XWikiHTTPAuthenticator.java) > and it works well, except for one thing. > > In the linked code, you'll see a method syncUser that creates the user if > necessary. I would like to modify this section to place the user in more than > one global group. Here is my best attempt: > > // Right after the createUser() call... > > XWikiGroupService groupService = context.getWiki().getGroupService(context); > groupService.addUserToGroup(validUserFullName, context.getDatabase(), > "XWiki.SomeGroup", context); > groupService.addUserToGroup(validUserFullName, context.getDatabase(), > "XWiki.AnotherGroup", context); Here is the javadoc of #addUserToGroup: https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/user/api/XWikiGroupService.java#L53 This method just update the cache (which is actually pretty useless since it's updated automatically by listening to document modification events so we should probably deprecate it) and does not really add the user to the group. There is no real API to do that directly so you will have to do it "by hand", meaning adding an object of class XWiki.XWikiGroups to the group document with the user id in it. If you want another authenticator that does it you can look at the LDAP one: more specifically https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/plugin/ldap/XWikiLDAPUtils.java#L967 > > But this is just creating the users. If I log in as superadmin and check the > groups, they are empty. Any ideas? > > Thanks!! > ___ > users mailing list > users@xwiki.org > http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Configuring Landing Page after login?
On 09/22/2013 05:57 AM, Mohit Gupta wrote: > Once user registers himself, registration gets successful and clicks login, > he is navigated to "Main" space "WebHome" PageI want the user navigates to > Webhome page of MySpace . For this i mentioned below config element in > xwiki.cfg and restarted the server. > > xwiki.authentication.defaultpage=/bin/view/MySpace/WebHome > > But it did not help. Still user is navigated to "Main" space "WebHome" > Page once user clicks the login after successful regstration? > Am i missing something here? The "click here to login" button which is shown after registration does not honor the settings in the xwiki.cfg; instead it configures its own "welcome page". You can find this in the XWiki Admin, section "Registration" This should, among others, contain a field "Redirect here after registration" with contents: $xwiki.getURL($services.model.resolveDocument('', 'default', $doc.documentReference.extractReference('WIKI'))) you can change this e.g. to $xwiki.getURL($services.model.resolveDocument('MySpace.WebHome')) I hope this helps Clemens ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] tutorial to develop full fledged websites on xwiki?
Look at http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial Valdis > Skin is good . But I always look to see xwiki to be competitive with > wordpresss where user can play a lot with UI. So if there is brief > tutorial where we can see what are all common needs of any CMS site and how > xwiki handles that, it would be great. > > > On Sat, Sep 21, 2013 at 7:49 PM, Vincent Massol wrote: > > > > > On Jun 15, 2013, at 2:40 PM, Mohit Gupta wrote: > > > > > If there is complete coding tutorial corresponding to any website example > > > at http://www.xwiki.org/xwiki/bin/view/References/WebHome, it would be > > > very helpful > > > > I don't think there's any but someone ought to write one :) > > > > The easiest for you is to use a skin for a web site, for example: > > http://extensions.xwiki.org/xwiki/bin/view/Extension/Leiothrix+Skin > > > > Thanks > > -Vincent > > > > > On Sat, Jun 15, 2013 at 6:08 PM, Mohit Gupta wrote: > > > > > >> I know xwiki has lot of potential. i am looking forward to develop the > > >> full fledged website like > > >> http://www.albertdemun.net/xwiki/bin/view/NBSitePublic/. It would be > > >> helpful to know if there is some tutorial exists explaining how we can > > >> develop the full website (For example website i pointed above) where we > > >> can separate type of UI components most of the website usually have. I > > know > > >> probably there are some different extension/plugin existing at different > > >> places but if we can have single page explaining how we can develop full > > >> fledged website it would be great. Thanks in advance. > > > > ___ > > 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Hiding the Top Level Menu /Page Menu links?
Create XWiki.StyleSheetExtension with code in content, e.g.: #if(!$xcontext.userReference) #contentmenu, .leftmenu { display:none; } #end See more at http://platform.xwiki.org/xwiki/bin/view/DevGuide/SkinExtensionsTutorial Valdis > Hi All, > If i want to hide top level menu(like Add,Space,Page,Wiki link) , i do not > find any way except changing in code. Similarly if i want to disable the > Page level menu(like Edit, Export,More Actions Link) for specific > group/user, did not find any way. Are these configurable or code > modification is only way? > ___ > 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