Re: [xwiki-users] special characters in group-name, bug?
On 03/02/2014 08:32 PM, Michiel Hobbelman wrote: > When using group name "A & B" it is impossible to set permissions in the > WebPreferences. > > Xwiki version 5.4.1. > Is this a bug? > > ( maybe related to http://jira.xwiki.org/browse/XWIKI-5448 ?) > > Regards, > Michiel Yes, it is a bug, but an unrelated one. The same problem exists in the wiki admin. The name of the group is not properly encoded. Can you please create a new issue in jira? Clemens ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Setting page name from field data
This is my first post so, hello everyone! I've been using xwiki for a few years but only now am I starting to have a play with applications. When creating a new document in an application, the user needs to enter a name before actually entering data in whatever fields have been defined. My question is, could I setup my application in such a way that the name of the new document would be defined by information in the fields. Basically skipping the whole Document name input phase. I've spent a good few hours browsing through this mailing list but could not find an answer to this particular problem. Thanks, Pedro ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] special characters in group-name, bug?
When using group name "A & B" it is impossible to set permissions in the WebPreferences. Xwiki version 5.4.1. Is this a bug? ( maybe related to http://jira.xwiki.org/browse/XWIKI-5448 ?) Regards, Michiel ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] How to add a Js library into a page from CDN?
On 02/26/2014 02:43 AM, Patrick Masson wrote: > Hi Boudjelda (and Marius), > > I was wondering if you ever found a solution for this? I would like to add > TogetherJS to XWiki (see: https://togetherjs.com/#tryitout-section) but am > not sure how to insert > the JS source into the page head. > > I went through the suggested steps: > > 1st, created a new object for the page "myurl/Sandbox/WebHome/", "Edit" -> > "Objects": > > Objects of type XWiki.JavaScriptExtension > - JavaScriptExtension 0: TogetherJS > > Code: > document.observe('xwiki:dom:loaded', function() { > https://togetherjs.com/togetherjs-min.js";> > } > I guess this way to inject the script tag does not work. You might check your javascript error console - this should tell you it got an error when trying to understand the script-tag. One working option which uses bare bone javascript is shown here: http://stackoverflow.com/questions/8578617/inject-a-script-tag-with-remote-src-and-wait-for-it-to-execute (put that code inside the document.observe listener function) if it still does not work check the html source of the page; if the $xwiki.ssx.use and $xwiki.jsx.use elements have been executed properly they should have created tags inside the to include the corresponding page. I remember once I had the case where the includes have been generated, but they have been empty. Cause of that problem: I made a typo in the page name and included javascript from a page that did not exist ... > Then in the page I added: > > {{velocity}} > $xwiki.jsx.use("XWiki.SkinExt") > {{/velocity}} > > {{velocity}} > #set ($discard = $xwiki.ssx.use('Sandbox.WebHome')) > #set ($discard = $xwiki.jsx.use('Sandbox.WebHome')) > {{/velocity}} > > {{html}} > Start TogetherJS > {{/html}} > > Any ideas? > > Thanks Patrick ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Menu Application access for Unregistered Users
On 02/28/2014 07:11 PM, DeHaynes wrote: > I fixed it by modifying the code in Menu.MenuMacro. I wrapped it in an > if($isGuest) like this. > > {{velocity}} > #if ($isGuest) > #else > #set ($id = $xcontext.macro.params.id) > #set ($type = $xcontext.macro.params.type) > #set ($colorTheme = $xwiki.getUserPreference('colorTheme')) > #if ("$!colorTheme" != '') > ## Make sure we use an absolute reference (see XWIKI-9672) > #set ($colorTheme = $services.model.resolveDocument($colorTheme, > $doc.documentReference)) > #end > #set ($discard = $xwiki.ssx.use("$xcontext.macro.doc.prefixedFullName", > {'colorTheme': $colorTheme})) > #set ($discard = $xwiki.jsx.use("$xcontext.macro.doc.prefixedFullName")) > (% #if ("$!id" != '') id="$id"#end class="menu menu-$!type" %)((( > $xcontext.macro.content > ))) > #end > {{/velocity}} > > Sorry, I don't know the scripting language well enough to do a ($isGuest) == > false. > #if (!$isGuest) should do the trick :) A slightly better check might be to see if the current user (who ever this is) has view rights on the document to be included, via $xwiki.hasAccessLevel('view', $xcontext.userReference, ) But this seems to be in a different place, (and I have to admit I do not know the menu extension good enough to know where it is). ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Theme on Subwiki Error page
On 02/27/2014 07:42 PM, DeHaynes wrote: > I am working on setting up subwikis in a private Intranet wiki. I have a > customized theme with a custom logo. When a member of the subwiki clicks > around, they see the theme normally. When a non-member ties to go to a page > they get the normal "Error - You are not allowed to view this document or > perform this action". Which is good, except the theme on that page changes > back to the original XWiki theme and logo. The root wiki is using the same > customized theme and it appears on the login page because I gave > unregistered users access to view the theme. > > I don't know who to give permission to in order for the theme to appear. > The user is no longer unregistered, because they are a member of the root > wiki. However they are not a member of any group in the subwiki. > Unless I am very mistaken, a user who has no right on the subwiki is treated like the anonymous user. To let these users see the logo of the subwiki you must make the page containing the logo visible to the public. Depending on which page you added the logo, this will be either: - the color theme the wiki uses - go to /xwiki/bin/view/ColorThemes/ to find it - the current "Skin" page, most probably XWiki.DefaultSkin As an additional safety measure XWiki allows to block anonymous users globally, so if even after giving the anonymous user view rights on these pages the logo still does not show up, go to the wiki admin, section "rights" and make sure the "black checkmark" for "Prevent unregistered users from viewing pages, regardless of the page or space rights" is unchecked > > I using XWiki 5.4.1, with MySQL and Tomcat7. I have a vanilla .deb install. > > > > -- > View this message in context: > http://xwiki.475771.n2.nabble.com/Theme-on-Subwiki-Error-page-tp7589357.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 > -- Clemens Klein-Robbenhaar Software Development EsPresto AG Breite Str. 30-31 10178 Berlin/Germany Tel: +49.(0)30.90 226.763 Fax: +49.(0)30.90 226.760 robbenh...@espresto.com HRB 77554 B - Berlin-Charlottenburg Vorstand: Maya Biersack, Peter Biersack Vorsitzender des Aufsichtsrats: Dipl.-Wirtsch.-Ing. Winfried Weber Zertifiziert nach ISO 9001:2008 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users