2

I have a Composite C1 site with 5 different sites in it (with 5 different domains).

Each site has multiple languages.

Each site has the same basic design (html/css/images) - though is about a slightly different topic with different content.

What is the best way to insert a different navigation menu at the top of each website, and footer at the bottom of each, whilst keeping other layout items the same?

Thanks.

niico
  • 11,206
  • 23
  • 78
  • 161

1 Answers1

1

The menus like Composite.Navigation.Distributed or Layout.Navigation.Menu (from the starter site) are subsite-aware etc.

If your subsites share the same layout, you can simply insert the menus like the ones above, they will correctly show the pages that belong to the current website (subsite). you don't need to explicitly "tell" the menu to show pages from a specific site.

wysocki
  • 731
  • 5
  • 7
  • thx. Is there any way to hide some items from any of these menus? What is best menu? – niico Sep 14 '13 at 06:24
  • For example - I have a 'footer' section, and another I don't want in the main nav - and the front page has a long title that's used as the nav link. – niico Sep 14 '13 at 07:24
  • I also need to precisely control the HTML that the navigation outputs (embed it in a styled
      ) - is that possible also? thx
    – niico Sep 14 '13 at 07:37
  • are you referring to Composite.Navigation.Distributed.XSLT? ( – niico Sep 14 '13 at 10:59
  • 1
    > are you referring to Composite.Navigation.Distributed.XSLT 1. If you've installed the Open Cph Razor starter site, you should have the Composite.Navigation.Distributed.Razor already installed. No need to install the XSLT version. 2. You can find the Razor version of the function that comes with the package under Functions/ Razor Functions/Composite/Navigation – wysocki Sep 16 '13 at 06:39
  • 2
    > Is there any way to hide some items from any of these menus? Answer: The Composite.Navigation.Distributed function that outputs a menu has a few parameters. You can experiment with them to see if you can achieve your goal. If not, you can edit the function and customize it so it serves up to your needs. – wysocki Sep 16 '13 at 06:44
  • 2
    > I also need to precisely control the HTML that the navigation outputs (embed it in a styled
      ) - is that possible also? Answer: Simply edit and customize the function that outputs the menu (Functions/ Razor Functions/Composite/Navigation/Distributed). Or even create your own function for these purposes reusing some of the code from the Distributed function that works for you.
    – wysocki Sep 16 '13 at 06:47
  • 2
    > What is best menu? Answer: You can read about your naviagtion menu options at http://www.composite.net/Add-on-Market?category=Navigation – wysocki Sep 16 '13 at 06:49