Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Subsites module - Single content location


Reply


5 Posts   2272 Views

Avatar
freefall

Community Member, 5 Posts

16 June 2009 at 12:02pm

Hey everyone,

Have just installed the Subsites module, and I can see that you can create different sub sites. however is there any way to share content between sites, so I only need to create some content in one of the sites, and publish to a seperate site?

Cheers,
Freefall

Avatar
Chucky2k

Community Member, 32 Posts

17 June 2009 at 5:03pm

Hi Freefall,

The subsites module creates a Subsites Virtual Page. You can use that to select which subsites page you want to have duplicated on the site you are viewing.

Cheers
David

Avatar
ulysses

Community Member, 57 Posts

19 February 2010 at 2:34pm

Hi David,

I have also installed subsites and all appear to work OK after going through a very hoops to understand the intricacies of the setup. All is good now.

The only problem I am havingis that when I create the subsite Virtual page, when I try to select the site tree, instead of the tree getting displayed, I get a Fatal error. See attached image.

Can you help? I have reported this as a bug but not received any responses to it.

Cheers

Ulysses

Avatar
wmk

Community Member, 46 Posts

23 March 2010 at 4:02am

Hi ulysses,

that's because subsites/code/SubsitesTreeDropdownField.php::gettree() should call parent::gettree($request) instead parent::tree($request).

If you change about line 30 like following, it works:

   function gettree(SS_HTTPRequest $request) {
      $oldSubsiteID = Session::get('SubsiteID');
      Session::set('SubsiteID', $this->subsiteID);

      $results = parent::gettree($request);

      Session::set('SubsiteID', $oldSubsiteID);

      return $results;
   }

HTH,

wmk

Avatar
ulysses

Community Member, 57 Posts

23 March 2010 at 10:42am

Thanks WMK. Your solution solved the problem. You help is most appreciated.

Ulysses