[xwiki-users] Developing Custom login
Hi, Iam working on creating a custom login page but did't find any help regarding backend login functionality.i copied HTML from login.vm on my new page,set action of form to $xwiki.getURL("XWiki.XWikiLogin") but how can i redirect bact to my space if login details are incorrect or how can i redirect to next page if login succesfull. I used below script on top of login page.changed url's according but did't work #if($context.user!="XWiki.XWikiGuest") #if($request.xredirect) $response.sendRedirect($request.xredirect) #else $response.sendRedirect($xwiki.getURL("Main.WebHome")) #end #elseif($doc.fullName != "XWiki.XWikiLogin") #set($qs = "") #set($qs = $request.queryString) #if(!$request.getParameter("xredirect")) #set($qs = "xredirect=$util.encodeURI($doc.getURL('view'))&${qs}") #end $response.sendRedirect($xwiki.getURL("XWiki.XWikiLogin", "login", $qs)) #else ### ### Login page ### ### Please help. Thanks, Simer ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Developing Custom login
On 08/10/2010 09:46 AM, Simerpreet Singh wrote: > Hi, > > Iam working on creating a custom login page but did't find any help > regarding backend login functionality.i copied HTML from login.vm on my > new page,set action of form to $xwiki.getURL("XWiki.XWikiLogin") but > how can i redirect bact to my space if login details are incorrect or > how can i redirect to next page if login succesfull. > I used below script on top of login page.changed url's according but > did't work > > #if($context.user!="XWiki.XWikiGuest") > #if($request.xredirect) > $response.sendRedirect($request.xredirect) > #else > $response.sendRedirect($xwiki.getURL("Main.WebHome")) > #end > #elseif($doc.fullName != "XWiki.XWikiLogin") > #set($qs = "") > #set($qs = $request.queryString) > #if(!$request.getParameter("xredirect")) > #set($qs = "xredirect=$util.encodeURI($doc.getURL('view'))&${qs}") > #end > $response.sendRedirect($xwiki.getURL("XWiki.XWikiLogin", "login", $qs)) > #else > ### > ### Login page > ### > ### If you're trying to use a different page for logging in (other than XWiki.XWikiLogin), you must edit WEB-INF/xwiki.cfg and add something like: xwiki.authentication.loginpage=/xwiki/bin/login/XWiki/XWikiLogin Does this solve your problem? -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Treeview problem in URL path based virtual mode
Hi, I'm using a farm of XWiki 2.3.2 in a URL path mode and I do NOT encounter this issue. The XWiki.Treeview page works using the domain name of the server (in http protocol, not https). Sorry but I don't have any hint to suggest. Regards, Maxime 2010/8/6 Wesley Huang > NO one is having the same issue? I turned on debug and when connecting > through Domai name, looks to me that the JDBC transaction isn't get > generated? Does any one have any hints? > > ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] LightBox Macro does not work on XE 2.4
Hi, I'm using XE 2.4 and I've installed the LightBox macro 1.1. It seems it does not work properly, showing the message "Failed to execute html macro": When using the HTML macro inline, you can only use inline HTML content. Block HTML content (such as tables) cannot be displayed Is there a way to fix this problem ? Thank you, Andrea ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] UWC - Universal Wiki Converter??
I went looking for http://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/importexport/ and it doesnt seem to be there anymore. Could someone point me to where it is located? -- John Cavanaugh -Original Message- From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of Thomas Mortagne Sent: Tuesday, July 06, 2010 1:10 PM To: XWiki Users Subject: Re: [xwiki-users] UWC - Universal Wiki Converter?? On Tue, Jul 6, 2010 at 20:02, John Cavanaugh wrote: > > > Has anyone taken a look at > https://studio.plugins.atlassian.com/wiki/display/UWC/Universal+Wiki+C > onvert > er > > > > It is an apache licensed converter for confluence. It looks like it > might be something where instead of converting to confluence it could > be tweaked to export to xwiki format. We already have syntax conversion framework (which is supported a lot more that just wiki syntaxes) as well as the support for Confluence content as input. See http://code.xwiki.org/xwiki/bin/view/Modules/RenderingModule. Also a wiki importer application is in progress, there already a working mediawiki support. The goal of this application is to take as input a whole wiki (generally an export of a wiki) and import it into XWiki. See http://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/importexport/. > > > > -- > > John Cavanaugh > > ___ > 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 ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] UWC - Universal Wiki Converter??
I think this is what you're looking for. http://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/xwiki-wikiimporter/ Keep in mind, as with all things in the sandbox, it's a work in progress. Caleb John Cavanaugh wrote: > I went looking for > http://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/importexport/ and it > doesnt seem to be there anymore. Could someone point me to where it is > located? > > -- > John Cavanaugh > > -Original Message- > From: users-boun...@xwiki.org [mailto:users-boun...@xwiki.org] On Behalf Of > Thomas Mortagne > Sent: Tuesday, July 06, 2010 1:10 PM > To: XWiki Users > Subject: Re: [xwiki-users] UWC - Universal Wiki Converter?? > > On Tue, Jul 6, 2010 at 20:02, John Cavanaugh wrote: >> >> Has anyone taken a look at >> https://studio.plugins.atlassian.com/wiki/display/UWC/Universal+Wiki+C >> onvert >> er >> >> >> >> It is an apache licensed converter for confluence. It looks like it >> might be something where instead of converting to confluence it could >> be tweaked to export to xwiki format. > > We already have syntax conversion framework (which is supported a lot more > that just wiki syntaxes) as well as the support for Confluence content as > input. See http://code.xwiki.org/xwiki/bin/view/Modules/RenderingModule. > > Also a wiki importer application is in progress, there already a working > mediawiki support. The goal of this application is to take as input a whole > wiki (generally an export of a wiki) and import it into XWiki. See > http://svn.xwiki.org/svnroot/xwiki/contrib/sandbox/importexport/. > >> >> >> -- >> >> John Cavanaugh >> >> ___ >> 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 > > ___ > 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] Create application similar to attach file application
I appreciate you take the time to answer my question. You gave me part of the solution :). The other part is in here http://www.mail-archive.com/users@xwiki.org/msg02301.html, in case someone need to do a similar XWiki application. On Sat, Aug 7, 2010 at 3:01 AM, [Ricardo Rodriguez] eBioTIC. < ricardo.rodrig...@ebiotic.net> wrote: > Hi! > > Abel Solórzano Astorga wrote: > > Hi, > > > > I want to create an application similar or based on the attachment panel > > application at the bottom of the xwiki pages. The application should let > the > > user select the file to upload to the xwiki server and write a > description > > of the file. Then, the file name and description should be automatically > > added to a table. The first column of the table is the file name, that is > a > > link to the file. The second column of the table is the description of > the > > file. So, the table is like a repository of the files and its respective > > descriptions. > > My question is. Is there a macro or code snipped to add a file to the > > attachment panel application? > > I don't understand well your question. It seems to me that could be > reduced to how add a comment to an attachment "event" and retrieve it > together with the filename. I guess this comment must be linked to each > document version, not to the attachment name as this is shared by all > the releases of a document. > > It is easy to get the filenames of the attached files for a page using > XML-RPC following this example... > > > http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPCJavaExamples#HAttachment:ListAttachmentsForPage > > Or simply using this code snip (sorry, I don't remember who sent it to > me! I'm looking for it in xwiki.org site without success): > > * > #set($attachments = $doc.attachmentList) > > #if($attachments.size()>0) > #foreach ($attach in $attachments) > "download")" > > title="$msg.get("downloadthisattachment")">#packName($attach.filename) > #end > #end > * > > About how to add a comment to each attachment "event" and retrieve it, > sorry, I can't be of any help. I don't now even if this can be easy > using the current data model. Now, it is possible to retreive version, > size, author and date, but I don't know how to add and retreive a > description/comment for each of them. > > I must recognized that I've been from XWiki development for a while, but > I hope this could be helpful for you. > > Greetings, > > Ricardo > > -- > Ricardo Rodríguez > CTO > eBioTIC. > Life Sciences, Data Modeling and Information Management Systems > > ___ > 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] Create application similar to attach file application
Hi! Abel Solórzano Astorga wrote: > I appreciate you take the time to answer my question. You gave me part of > the solution :). The other part is in here > http://www.mail-archive.com/users@xwiki.org/msg02301.html, in case someone > need to do a similar XWiki application. Great to know I've been of any help! :-) BTW, have you then manage to get this application working? Are you planning to share it with the community? At least it will be helpful for me to get fileUploadPlugin or an application allowing to add descriptions to the uploaded files. Thanks! Cheers, Ricardo -- Ricardo Rodríguez CTO eBioTIC. Life Sciences, Data Modeling and Information Management Systems ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
[xwiki-users] Toolbar customization question
Hello, We would like to customize toolbar appearance in our xwiki app. How can we make the commands in the toolbars visible only to Admin Group members? For example, we want to do the following: 1, Allow only Admins to see certain commands, like the XWIKI command (to Create Space, etc.), plus MAIN and other commands that appear on left side of top toolbar (i.e. the same toolbar that has Register and Login on right side) 2. We would also like to do same with toolbar that has EDIT, EXPORT, MORE ACTIONS, ANOTATIONS and WATCH commands - i.e. we would like to set it so only Admins can see some of these commands, while users in other groups should not be able to see these commands, nor invoke them. Please advise how this can be accomplished. Thank you, --Tom ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users