[Cartoweb-users] Loading a page before the map after login

Oliver Christen oliver.christen at camptocamp.com
Wed Dec 23 02:20:22 EST 2009


in cartoweb you have the possibility to override the default output.
this is done by either creating a plugin just for that or extending a plugin 
used in your project (maybe cleaner to do a new plugin though)

usualy, at the handleHttpPostRequest/handleHttpGetRequest stage (see 
execution flow chart http://www.cartoweb.org/doc/misc/plugins_diagram.pdf) 
you do:

if (some conditions, for example a variable set in plugin auth to say the 
user just loged) {
  $formRenderer = $this->getCartoclient()->getFormRenderer();
  // the template must be placed in your project's main templates folder


> Hi all,
> I have setup the auth plugin so that users need to login before going to 
> the
> map page.  However, after login in, I would like it to load another page
> (e.g. disclaimer page) before loading the map page.  So the map page will 
> be
> loaded only after the user has pressed the confirm button on the 
> disclaimer
> page.  How and where should I include this disclaimer page in the code?
> Thanks a lot,
> Jady
> -- 
> View this message in context: 
> http://old.nabble.com/Loading-a-page-before-the-map-after-login-tp26897614p26897614.html
> Sent from the cartoweb-users mailing list archive at Nabble.com.
> _______________________________________________
> Cartoweb-users mailing list
> Cartoweb-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/cartoweb-users

More information about the Cartoweb-users mailing list