[support] Same node, multiple places

Earnie Boyd earnie at users.sourceforge.net
Tue Oct 16 21:41:59 UTC 2007


Quoting Larry Garfield <larry at garfieldtech.com>:

>
> Hi folks.  I'm trying to figure out the cleanest way to set this up.
>
> I have a site that is actually kinda sorta 2 sites.  It doesn't make 
> sense to make it a multi-site, really, but it needs to give the 
> impression of multiple sites, visually.
>
> For the most part that's easy; just base the template file off of the 
> path for the sub-site.  (/ and /journal in my case).  However, the 
> client wants news items (news nodes) to appear on both "sites", with 
> each one having its own visual appearance.  That is, at /news/$nid it 
> uses the main site template, while at /journal/news/$nid it uses the 
> sub-site's template.
>
> Is there a good way to do that?
>

How about a modification to $GLOBALS['base_path']? [1]

[1] http://api.drupal.org/api/function/base_path/6

Earnie -- http://for-my-kids.com/
-- http://give-me-an-offer.com/



More information about the support mailing list