Mislav Marohnić wrote:
> I have Radiant installed in a subdirectory, not the site root. I have set
> AbstractRequest.relative_url_root accordingly, which makes admin section
> work. Surprisingly, links generated by Radius tags on the site itself start
> from root ("/") and don't get relative_url_root prepended to them... is
> having the application in a subdirectory unsupported?

There's no support for this out of the box, but you could create a 
behavior and assign it to the site root that would probably do what you 
need. Something like this:

   class RootBehavior < Behavior::Base

     register "Root"

     def page_url
       if parent_behavior?
         clean_url(parent_behavior.child_url(@page))
       else
         clean_url("/subfolder/[EMAIL PROTECTED]")
       end
     end
   end

--
John Long
http://wiseheartdesign.com
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to