[Radiant] please help: How do I set the default URL path with
multiple installs?
Ruben D. Orduz
aminox at gmail.com
Mon Nov 13 10:33:32 CST 2006
Jose,
I'd fiddle with the lines below (which correspond to lines > 56 in routes.rb
):
# Site URLs
> map.with_options(:controller => 'site') do |site|
> site.homepage '', :action
> => 'show_page', :url => '/'
>
>
> site.not_found 'error/404', :action
> => 'not_found'
> site.error 'error/500', :action
> => 'error'
>
> # Everything else
> site.connect '*url', :action
> => 'show_page'
> end
>
On 11/13/06, Ruben D. Orduz <aminox at gmail.com> wrote:
>
> I think what you describe should be fairly easy to solve with routes.rbhacks. Else your COULD create an url filter in the front controller to add
> "/myApp/" in front of all incoming URLS. Sorry I can't be more specific at
> the moment...I'm at work and am supposed to be debugging some 2K lines of
> .Net code :(
>
>
> On 11/13/06, jlopez at hpcf.upr.edu <jlopez at hpcf.upr.edu> wrote:
> >
> > Ok, let me exaplin this as easily as I can.
> >
> > Radiant generates an html page with the following div
> >
> > <div id="top_nav">
> > <a href="/recursos/">Recursos para la investigación</a>
> >
> > What I want to do is to force, in <a href=>, "/myapp/"
> >
> > So I would get /myapp/recursos/
> >
> > and eveything will work fine : )
> >
> > Any ideas?
> >
> > > Thanks for the reply.
> > >
> > > Do you know where exactly do I have to make the changes?
> > >
> > > Perhaps # Site URLs ?
> > >
> > > Jose.
> > >
> > >
> > >> The easiest way is to set your DNS to point to your radiant sub dir.
> > >> Else
> > >> you could fiddle with the routes.rb file to fit your needs.
> > >>
> > >>
> > >> On 11/13/06, jlopez at hpcf.upr.edu <jlopez at hpcf.upr.edu> wrote:
> > >>>
> > >>> Hi,
> > >>>
> > >>> I've managed to set two radiant sites using apache 1.3 and fcgi. Now
> > I
> > >>> can
> > >>> access them site at http://www.mydomain.org/radiant1 and
> > >>> http://www.mydomain.org/radiant2
> > >>>
> > >>> However, I can't navigate the sites because all the links are
> > generated
> > >>> using the default path /
> > >>>
> > >>> So if I click the News section for example, the site refers me to
> > >>> http://www.mydomain.org/news instead of
> > >>> http://www.mydomain.org/radiant1/news.
> > >>>
> > >>> Where do I set the default url path for each of my radiant sites?
> > >>>
> > >>> Jose.
> > >>> _______________________________________________
> > >>> Radiant mailing list
> > >>> Post: Radiant at lists.radiantcms.org
> > >>> Search: http://radiantcms.org/mailing-list/search/
> > >>> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> > >>>
> > >> _______________________________________________
> > >> Radiant mailing list
> > >> Post: Radiant at lists.radiantcms.org
> > >> Search: http://radiantcms.org/mailing-list/search/
> > >> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> > >
> > > _______________________________________________
> > > Radiant mailing list
> > > Post: Radiant at lists.radiantcms.org
> > > Search: http://radiantcms.org/mailing-list/search/
> > > Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> > >
> >
> > _______________________________________________
> > Radiant mailing list
> > Post: Radiant at lists.radiantcms.org
> > Search: http://radiantcms.org/mailing-list/search/
> > Site: http://lists.radiantcms.org/mailman/listinfo/radiant
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.radiantcms.org/pipermail/radiant/attachments/20061113/696249db/attachment.html
More information about the Radiant
mailing list