Jump to content

Multisite Integrated Navigation


ridgedale
 Share

Recommended Posts

I'm wondering if anyone else has attempted this before.

I've setup a basic test multisite installation that effectively includes the master site and 3 others subsites using either the basic or intermediate template. I can't remember which and there might even be a mix of both among them, but I don't think that should cause an issue.

What I want to achieve is a Home tab in the navigation menu on each of the subsites that links directly to the Home page of the master site. Is it possible to do that within the processwire admin or is it something that is going to have to be hardcoded into the template file. If the latter, do I go about that as I cannot see anything that appears to relate to the navigation in each of the site directories.

i.e. Is it possible to add a menu item to the left of the subsite "Home" page now named About that is simply a link named "Home" that redirects to the Home page of the master website?

Any thoughts would be greatly appreciated.

Link to comment
Share on other sites

Adding the following code:

		echo "<li><a href='http://www.example.com/'>Home</a></li>";

after:

	<!-- top navigation -->
	<ul class='topnav'><?php 

In the _head.php file and the _main.php files achieves the desired effect by directly editing the template files.

Is there a way to achieve the same result from within processwire admin?

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...