[xwiki-users] Content Restriction Question
All, Is there a way to hide content by group within XWiki? For example, if I wanted a panel to show a link that only group foo has access to, how could I make it so only users with group foo see the link in the panel (because only group foo has access to the page/space that the link ponits to)? Rick ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Problem with a Downloaded Macro (RSSAggregator)
I'm getting this after installing the RssAggregator macro XAR and using it in a page: Failed to execute macro: groovy org.xwiki.rendering.macro.MacroExecutionException: You don't have the right to execute this script at org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.execute(AbstractJSR223ScriptMacro.java:134) at org.xwiki.rendering.macro.script.AbstractJSR223ScriptMacro.execute(AbstractJSR223ScriptMacro.java:50) at org.xwiki.rendering.internal.transformation.MacroTransformation.transformOnce(MacroTransformation.java:175) etc... Ideas? Rick ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Problem with a Downloaded Macro (RSSAggregator)
Jerome Velociter wrote: Hello Rick, You need to save the macro document (Macros.RssAggregatorMacro IIRC) with a user that has the programming access level granted. Hi Jerome, I saved it as the Admin user - it didn't have Program access, but I added it afterward. Do I have to re-install the macro? If so how do I accomplish that? Rick ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Blog: Showing teasers inline on a wiki page
Guillaume Lerouge wrote: Yes, definitely. The blog actually used to do this but we changed it some time ago because when content got truncated sometimes markup was no longer closed properly, which led to wome weird display on the blog homepage (half of the text getting underlined, stuff like that). With the new rendering engine, it could be possible to write a smart snippet algorithm that would cut the markup in the right place. In the default version, you'll notice that if you manually fill the summary field of a blog post it gets displayed on the blog homepage instead of the actual article content, which I believe is close to the behavior you're looking for. If that's what you want to do, follow the indications on http://code.xwiki.org/xwiki/bin/view/Applications/BlogApplication to create a blog out of any page. OK. I'll give this a try. In theory the engine could be smart enough to know if it is going to truncate in the middle of markup and adjust accordingly, but having people provide a summary is a decent alternative. But what I'm trying to do is create the blogs, but then be able to list the blogs on another regular wiki/content page - either in a list or a summary format. I don't want to force the user to go to the blog page to get the teasers for that content - I'd like to be able to tease the content on another page or two (where relevant, by category, or blog, etc) and let them click to read the full thing. By the way, I'd be interested in hearing your feedback about XWiki as compared to Confluence. Specifically, if you were to name one thing you like best in XWiki vs Confluence and one thing you like best in Confluence compared to XWiki, what would those be? Well, it's probably too soon to tell as I'm very new with XWiki and very comfortable with Confluence. My sense is that XWiki has a long way to go - Confluence's markup language is excellent, and you can do pretty much anything you want with the macros they provide and the parameters for them. For example with the blog issue you simply use the blog macro on any page and pass it the parameters for which blogs you want (category, space, date ranges, what kind of listing, etc) and voila. There's no need to know Velocity to do anything so you don't have all this code that regular editors and site maintainers won't ever have a prayer of knowing all over the place. XWiki's preview doesn't work correctly - often you will preview and want to go back to editor and it's broken. For example, edit a blog and then preview, and when you go back to edit it will have a different look (no 'summary' and 'content' pane, just one pane, and an error in it). Very annoying. The number of plug-ins and add-ons to confluence is massive - it allows a richness of content that is unmatched by pretty much any other product on the market. It's something that, if I were XWiki, I would target to make plugins compatible with Confluence's. Confluence's permissions seem to be easier to use and apply to discrete pages, spaces, and functions within than pretty much any other product's. Confluence's macros around inclusion of Confluence content really set it apart from XWiki. Pretty much anything in Confluence can be included on a page through a macro. That's something that really helps. I know you can code it in XWiki but that really is not something that makes sense for a site managed by end users. See: http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax versus http://sandbox.onconfluence.com/renderer/notationhelp.action?section=all The panels on XWiki are awesome. That's really an easy way to create that sort of thing - Confluence can't do it - you have to do sections and such and it's not perfect. You can do it, but it's not as easy as XWiki's. Again- take with a bit of a grain of salt because I'm much, much more familiar with Confluence. I'm using XWiki for a client who doesn't want to pay the license fee, which is a major advantage for XWiki. But right now, it's not quite there as far as ease of use or richness/completeness of features. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Blog: Showing teasers inline on a wiki page
Vincent Massol wrote: First let me thank you a lot for the feedback, that's really useful for us. No problem. As I continue to learn I'll give more. I'd be happy to know if you still think there are things better done in the confluence syntax and that xwiki's syntax cannot do (I believe the opposite is true). Also, to be noted, is that XWiki is polyglot ie it supports several syntaxes, amongst which Confluence syntax (although if you use it you won't be able to use our new WYSIWYG editor since right now it only supports XWiki Syntax 1.0). Cheers, Vincent. I'll take a look at this in more depth. One question - does the WYSIWYG support pages that use the XWiki Syntax 2.0 though? I'd avoid using confluence syntax on XWiki personally, and will recommend my users to do the same. Note: I am having trouble right now having two separate named blogs in one space. I figured out how to do it in theory by renaming Blog to whatever I want it to be, but since it relies heavily on templates and what not from the Blog _space_, it doesn't actually work in practice. But I will mess with the macros to see if this is necessary because if I can control the display of blog teasers by category using an XWiki macro, I'll do that. I agree that confluence has an edge in term of number of macros. Where XWiki catches up I believe is with the ability to write velocity/groovy/ruby/python scripts directly in pages along with a powerful API accessible from theses scripting language which makes it relatively easy to script any missing macro. However this is no substitute for more macros since standard users may not have the skills to write such scripts. Inline scripting is a bad idea, though. But one thing that you might want to do - and maybe you have it already, but the default pages don't seem to make use of it - it allow user macros and global macros that are code/markup/macros that can be referred to as a standard XWiki macro w/ parameters. Confluence does this - you can put the scripting and stuff in the user macro or the space macro - which isn't Java code, but this kind of code - and then users use the resulting macro w/ parameters in the actual pages. This is much better as it's easier for end-users to understand and work with. Code inline in the page - they'll just back away from the keyboard and call someone else, which defeats the purpose. I remember using the confluence blog a long time ago (around 2005) and I didn't like it because it was something part of the Confluence core and you couldn't modify it to your needs. For example it had not ability to modify the date of a post (that's probably been added since then) and there was no way I could add it (except to go in java dev mode and rewrite the blog provided I had access to the sources). In XWiki the blog application is contained in wiki pages and you can edit them and modify them to suit your exact needs, where needed. No, I think even in 3.1 you can't back-date the blog post, which is stupid. I really like that you can do that - we're starting a new site, we have extant blog posts - I want to preserve the continuity. Can't do that on Confluence, so you're correct. XWiki's preview doesn't work correctly - often you will preview and want to go back to editor and it's broken. For example, edit a blog and then preview, and when you go back to edit it will have a different look (no 'summary' and 'content' pane, just one pane, and an error in it). Very annoying. This is strange. Could it be that you're using a version of XWiki where the blog was still using the old wysiwyg editor? What version of XWiki Enterprise are you using? XWiki Enterprise 2.1.25683 It's something that, if I were XWiki, I would target to make plugins compatible with Confluence's. Yes we wanted to do this at one point but it's not something easy to do. We'd need a confluence runtime, ie implement all APIs available from confluence plugins which is probably the whole platform if we wanted to be 100% compatible. Yes, that's the problem. Perhaps a JAR with a package that would allow developers to map functions or something- something to make it easier to port to XWiki. If it's easy, they'll do it. Since many (most??) Confluence add-ons are open source you guys could do 5-10 and release them with lots of code comments and documentation to show how easy it is. One thing that is clear is that XWiki CAN do whatever Confluence can. I also agree here. XWiki permissions are probably more powerful but still too complex to use. We have scheduled to work on this in the near future. That's great news! Yes I know this confluence page but you shouldn't compare it with our syntax page. On our syntax page we only describe the syntax not macros (we only refer to it). Our macro page is here: http://code.xwiki.org/xwiki/bin/view/Macros/ I
Re: [xwiki-users] Blog: Showing teasers inline on a wiki page
Vincent Massol wrote: ... Thank you for all your suggestions, pointers, and comments. Clearly support is not a problem with XWiki. I'll start working with this information some more now and see if that helps me get the project moving faster! One thing I'm also not clear how to do is if I wanted to put up a form on a page that collects some information and then e-mails it to someone (e.g., a request for information form) - is that something I can even do at all? That would be okay to have scripting since it'd need CAPTCHA and all that. Re captcha we have just committed a captcha component. You'll have it in XE 2.2 milestone 2 to be released next week. Re mail, we have a mail sender plugin: http://code.xwiki.org/xwiki/bin/view/Plugins/MailSenderPlugin Yep. Do you have a tutorial on how to combine that with a form? I need to create a page that has a bunch of fields (Name, address, some free form, etc) and then have everything submitted get e-mailed to someone to process. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Blog: Showing teasers inline on a wiki page
Hi, I'm new to XWiki but know Confluence pretty well. I'd like to be able to do something similar to what Confluence does with their blog macro - be able to show 1..n recent blog posts on a page, either just showing the titles (which we can do with Velocity as per the default Dashboard), or showing a teaser that shows the title, date posted, poster, and a small intro snippet of the post... Format would be like: TITLE snippet... ... ... Posted by user at datetime (possibly comment stats etc) Is there a way to do this in XWiki? ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users