Using 2 sets of autonav, possible?
Permalink
hi,
my scenario is like this:
my client's webhost allows only 1 MySQL database, but he wants 2 sites to sit on that single database. 1st site is his main company, and the 2nd site will be his subcompany.
my initial plan is to put the (2nd site) subcompany in a sub-domain. that will mean a 2nd installation is required in the subdomain. since C5 makes it not possible to allow us to have custom prefix in the database table, so i scrapped that idea.
my idea is then to setup 'featured' pages using single_page function. i create a hyperlink from the main page to go to the 2nd site. the 2nd site starting with it's first 'Home' single_page, i populate other single_pages and put them as 'featured' pages.
the problem now is how can i pull auto-nav for that 2nd site that was made of single_page featured pages? this is because whenever i try to pull the auto-nav menu out, it will only show menu for the first main site and not the 2nd one.
any ideas for 2 sets of auto-nav for 2 different sites sitting on the same database??
thanks
my scenario is like this:
my client's webhost allows only 1 MySQL database, but he wants 2 sites to sit on that single database. 1st site is his main company, and the 2nd site will be his subcompany.
my initial plan is to put the (2nd site) subcompany in a sub-domain. that will mean a 2nd installation is required in the subdomain. since C5 makes it not possible to allow us to have custom prefix in the database table, so i scrapped that idea.
my idea is then to setup 'featured' pages using single_page function. i create a hyperlink from the main page to go to the 2nd site. the 2nd site starting with it's first 'Home' single_page, i populate other single_pages and put them as 'featured' pages.
the problem now is how can i pull auto-nav for that 2nd site that was made of single_page featured pages? this is because whenever i try to pull the auto-nav menu out, it will only show menu for the first main site and not the 2nd one.
any ideas for 2 sets of auto-nav for 2 different sites sitting on the same database??
thanks
i was thinking about the same method that you mentioned that is if 2 navigation for 2 different sites is not doable. im going to opt for the method that you suggested.
initially, i was actually trying to hide away my client's second site from the main site's navigation but since there is no other method of doing it i feel this is the only chance of doing it.
as for the subdomain that resides say @http://subcompany.maincompany.com,... i will upload an index.html file with meta-refresh that will target the 2nd site's 'Home' URL.
this method will in a way divert the subdomain URL to the 2nd site's 'Home' link so it looks natural.
thanks for the reply btw.
initially, i was actually trying to hide away my client's second site from the main site's navigation but since there is no other method of doing it i feel this is the only chance of doing it.
as for the subdomain that resides say @http://subcompany.maincompany.com,... i will upload an index.html file with meta-refresh that will target the 2nd site's 'Home' URL.
this method will in a way divert the subdomain URL to the 2nd site's 'Home' link so it looks natural.
thanks for the reply btw.
You can use .htaccess instead of a meta-refresh. Don't have the code off the top of my head but look it up, it's probably easier and an better idea.
Now there's a bilingual addon for C5, but a year ago I put up a bilngual site with two different trees, worked out well. You might consider that structure:
home
- home page site 1
- - site 1 page
- - site 1 page
- home page site 2
- - site 2 page
- - site 2 page
Then with htaccess redirect the domains / subdomains.
Now there's a bilingual addon for C5, but a year ago I put up a bilngual site with two different trees, worked out well. You might consider that structure:
home
- home page site 1
- - site 1 page
- - site 1 page
- home page site 2
- - site 2 page
- - site 2 page
Then with htaccess redirect the domains / subdomains.
thanks. that is really insightful.
Like this:
Home
- About
- Contact, etc. (pages for main site)
- Second Site Placeholder (exclude from nav)
- - 2nd site home
- - 2nd site other pages