forcing alternate $template_group
Posted: 21 July 2008 03:29 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  218
Joined  06-18-2007

We are converting our sites to a new design. In doing so, we want to be able to view a sites content in it’s new style, without duplicating content.

We have site A showing content over on site B by altering the path.php file of site b to reflect the $site_name of site A. Only issue is we want site B to use an alternate $template_group, not site A’s.

In the path.php, there is a $template_group variable. When we change this to site B’s template group, we still get template A’s group.

Can this be done? What small piece might we be missing?

Thanks.

Profile
 
 
Posted: 21 July 2008 03:55 PM   [ Ignore ]   [ # 1 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  218
Joined  06-18-2007

Let me throw this into the mix… as it may shed some light on our situation. We have several sites, which all embed templates from a “master” site. All of our sites are basically the same, only the content varies between sites. Having a master site to manage templates from allows us to easily apply global changes.

If we want site A, who only has one template group that refers to another sites template group, to pull a new template group from another sites template group, do we have to create a new template group per site that points to the new template group from the master set?

Does that even make sense?

Profile
 
 
Posted: 21 July 2008 04:44 PM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  218
Joined  06-18-2007

I’ve been trying to trouble shoot in not using cross-site template embedding and restricting my $template_group to just the main site, as in only working on site A. In doing this, I can’t get site A to use an alternate $template_group. I’ve even set up a new template group within site A. I can flip the template group for site A by editing the alternate group and selecting the box “Make the index template in this group your site’s home page?”. But the $template_group = “” variable in the path.php seems to be nothing.

I found the “Per Site Config” http://expressionengine.com/wiki/Per_Site_Config/ post on the wiki, but this points more to adding variables other than the defaults. Which should allow the override. 

I’m totally cornered at this point.

Profile
 
 
Posted: 22 July 2008 09:36 AM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  218
Joined  06-18-2007

Guess maybe I’m misunderstanding how the $template_group parameter works. Would anyone have any suggestions?

Thanks.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 03:47 PM
Total Registered Members: 120481 Total Logged-in Users: 44
Total Topics: 126555 Total Anonymous Users: 19
Total Replies: 665407 Total Guests: 279
Total Posts: 791962    
Members ( View Memberlist )