Re: [xwiki-users] some help needed: short URLs

2015-12-10 Thread Paul Libbrecht
Ricardo,

are you unable to move the webapp to root?
The shortURLs experience thus far has been based on that.

For your vhost, you "just" need to change:

ProxyPass /atriumkm http://localhost:8080/atriumkm
to
ProxyPass / http://localhost:8080/atriumkm

but there will be links left produced by the web-app that will contain
/atriumkm, I think.

Paul

> [IDIS Technical Secretariat] Ricardo Rodríguez
> 
> 10 décembre 2015 11:36
> Hi!
>
> I'm moving an old XWiki installation (XWiki Enterprise 2.4.30451) to a new
> box. It currently runs as root in a CentOS/Tomcat/MySQL box serving pages
> at port 80. The destination is a Ubuntu/Apache Web Server/Tomcat MySQL
> where an Apache virtual host will serve all controller and virtual
> wikis. A
> different application is already running as root in the destination.
>
> I do need to remove the application part of the URL from the pages served
> by the new location. This is mainly due to lots of hardcoded URLs I''m not
> able to get rid of them now.
>
> This simple virtual host configuration works fine, but I'm not able to
> understand how could I remove the "atriumkm", the application, part of the
> URL...
>
> 
> ServerAdmin ricardo.rodrig...@idisantiago.es
> ServerName isabel.idisantiago.es
>
> RedirectMatch permanent ^/$ http://isabel.idisantiago.es/atriumkm/
>
> ProxyPass /atriumkm http://localhost:8080/atriumkm
> ProxyPassReverse /atriumkm http://localhost:8080/atriumkm
>
> DocumentRoot /var/www/html
>
> # Logging
> ErrorLog /var/log/apache2/isabel.idisantiago.es-error_log
> CustomLog /var/log/apache2/isabel.idisantiago.es-access_log common
> 
>
> I've found this thread that it seems to me deals with a similar issue...
>
> http://markmail.org/thread/u5hu7kw6rr2fcacx
>
> ... but I'm not able to understand how to get it working.
>
> Please, must I be able to do that by modifying the VirtualHost
> configuration? Must I modify web.xml? Something related with xwiki.cfg
> parameters? There are a lot of information playing around and concepts I
> don't understand well.
>
> Any help will be extremely welcome!
>
> Cheers!
>
> Ricardo
> ___
> 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


[xwiki-users] some help needed: short URLs

2015-12-10 Thread [IDIS Technical Secretariat] Ricardo Rodríguez
Hi!

I'm moving an old XWiki installation (XWiki Enterprise 2.4.30451) to a new
box. It currently runs as root in a CentOS/Tomcat/MySQL box serving pages
at port 80. The destination is a Ubuntu/Apache Web Server/Tomcat MySQL
where an Apache virtual host will serve all controller and virtual wikis. A
different application is already running as root in the destination.

I do need to remove the application part of the URL from the pages served
by the new location. This is mainly due to lots of hardcoded URLs I''m not
able to get rid of them now.

This simple virtual host configuration works fine, but I'm not able to
understand how could I remove the "atriumkm", the application, part of the
URL...


 ServerAdmin ricardo.rodrig...@idisantiago.es
 ServerName isabel.idisantiago.es

 RedirectMatch permanent ^/$ http://isabel.idisantiago.es/atriumkm/

 ProxyPass /atriumkm http://localhost:8080/atriumkm
 ProxyPassReverse /atriumkm http://localhost:8080/atriumkm

 DocumentRoot /var/www/html

 # Logging
 ErrorLog /var/log/apache2/isabel.idisantiago.es-error_log
 CustomLog /var/log/apache2/isabel.idisantiago.es-access_log common


I've found this thread that it seems to me deals with a similar issue...

http://markmail.org/thread/u5hu7kw6rr2fcacx

... but I'm not able to understand how to get it working.

Please, must I be able to do that by modifying the VirtualHost
configuration? Must I modify web.xml? Something related with xwiki.cfg
parameters? There are a lot of information playing around and concepts I
don't understand well.

Any help will be extremely welcome!

Cheers!

Ricardo
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Xwiki html parsing of user list

2015-12-10 Thread gervwyk
I'm creating a form but I prefer using HTML and bootstrap rather than only
velocity syntax. I have the following problem:

 

I want to insert user selection list into the form. By doing the following:

{{velocity}}
{{html velocity="true" }}

 #set( $tempobj = $doc.newObject('Classes.USR'))
 $tempobj.display('userslist','edit') 


{{html velocity="true" }}
{{/velocity}}

however I get the {{html}} tag around the search box which I don't want. How
can I remove this?
closing and opening the html before and after the call gives rendering
errors. Is there a way to all the  $tempobj.display('userslist','edit')
function without rendering the {{html}} tags?
Which function in java lib will give me a simular output? maybe I can do
this through a java component? 
What output does thedisplayEdit() method in BaseObject class give? 

I tried something like this, but did not work, I might be totally wrong..

  XWikiContext xcontext = this.xwikiContextProvider.get();
  DocumentReference referenceClass = 
resolver.resolve("Classes.USR");
  XWikiDocument doc = xcontext.getDoc();
  BaseObject domainObject = doc.getXObject(referenceClass);
  String disp = domainObject.displayEdit("userslist", xcontext);
  return disp



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Xwiki-html-parsing-of-user-list-tp7597164.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


Re: [xwiki-users] Xwiki html parsing of user list

2015-12-10 Thread Marius Dumitru Florea
On Thu, Dec 10, 2015 at 5:03 PM, gervwyk  wrote:

> I'm creating a form but I prefer using HTML and bootstrap rather than only
> velocity syntax. I have the following problem:
>
> 
>
> I want to insert user selection list into the form. By doing the following:
>
> {{velocity}}
>


> {{html velocity="true" }}
>

Check the HTML Macro parameters
http://extensions.xwiki.org/xwiki/bin/view/Extension/HTML+Macro#HParametersdefinition
. There's no "velocity" parameter. There is a "wiki" parameter though,
maybe that's what you need.


> 
>  #set( $tempobj = $doc.newObject('Classes.USR'))
>  $tempobj.display('userslist','edit')
>
> 
> {{html velocity="true" }}
> {{/velocity}}
>
> however I get the {{html}} tag around the search box which I don't want.
> How
> can I remove this?
> closing and opening the html before and after the call gives rendering
> errors. Is there a way to all the  $tempobj.display('userslist','edit')
> function without rendering the {{html}} tags?
> Which function in java lib will give me a simular output? maybe I can do
> this through a java component?
> What output does thedisplayEdit() method in BaseObject class give?
>
> I tried something like this, but did not work, I might be totally wrong..
>
>   XWikiContext xcontext = this.xwikiContextProvider.get();
>   DocumentReference referenceClass =
> resolver.resolve("Classes.USR");
>   XWikiDocument doc = xcontext.getDoc();
>   BaseObject domainObject = doc.getXObject(referenceClass);
>   String disp = domainObject.displayEdit("userslist",
> xcontext);
>   return disp
>
>
>
> --
> View this message in context:
> http://xwiki.475771.n2.nabble.com/Xwiki-html-parsing-of-user-list-tp7597164.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
>
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users