Issue 500: move default template routing into the routing system
http://code.google.com/p/qubit-toolkit/issues/detail?id=500
Comment #5 by vangarderen.peter:
RE: r1524
Modified: trunk/qubit/apps/qubit/lib/SiteSettingsFilter.class.php
===================================================================
+
+ // Set routing default parameters so that links to edit and show
actions
+ // get routed to existent actions
+ $this->context->getRouting()->setDefaultParameters(array('template'
=> 'isad'));
+
setting the defaultParameter in the filter is adding it to all URLs in the
app which
is breaking basic things like the login link, homepage link, etc
('login/index/isad',
'user/edit/isad/id/258', 'homepage/index/isad') . Also, this is not module
sensitive,
eg, the default template should be set to 'isaar' not 'isad' when in the
actor module.
Another option that was discussed was to set the DefaultParameter from the
individual
actions where we can make it more module-sensitive and also use the default
settings
from the admin site settings as values. Perhaps we can try this as an
alternative to
setting the DefaultParameter in a filter
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Issues" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/qubit-issues?hl=en
-~----------~----~----~----~------~----~------~--~---