Subdomain + Site Nav / Menu + possible bug?

Permalink 1 user found helpful
Hey Guys,

I have a new stack, using it for a drop down UL menu.
Pretty URLs work, have tested. I am using a sub-domain
until the site is ready to go live.
url:http://184.154.160.10/~flinflon/index.php?cID=1...
*btw, home link doesn't work, you'll have to us back button.*

Strange thing happens when I add links to the menu.

For some reason C5 either removes the ~flinflon part, or it adds
the parent menu listing in twice...? And even though I have the menu
working on the home page once you visit another page it breaks,

You can see it happening. The link above takes you to the home page.
Click on any link in the about us menu while taking note of the url in your status bar. Once the new page loads note the same menu and link and how it's changed.

I've looked and looked but found nothing to really help me with this. It doesn't make sense to me.

Any ideas would be appreciated. TY

p.s
The only way the menu even works is because I noticed that I could get it to work if I sort of confused C5 somehow into working.
I added a '/#' to the about us LI(parent). If I remove this, C5 decides the root is the IP and removes the ~flinflon from each url.
Relative url thing it seems. Wasn't sure how to resolve this and then the /# did the trick. But of course now the parent LI is duplicated.

webnut
 
jordanlev replied on at Permalink Reply
jordanlev
What version of c5 are you using? Do you have a BASE_URL or DIR_REL option defined in your config/site.php file?
webnut replied on at Permalink Reply
webnut
v.562

Not sure about base_url or Dir_rel. It it's not automatically generated I would say no to both.
mhawke replied on at Permalink Reply
mhawke
Does your nav use the autonav or is it hard-coded into an html block in your stack or some other way? How did you construct the nav?
webnut replied on at Permalink Reply
webnut
son of suckerfish menu in a wysiwyg stack.
mhawke replied on at Permalink Reply
mhawke
I can see from 'View Source' that it's figuring this out properly:

var CCM_BASE_URL = "http://184.154.160.10";
var CCM_REL = "/~flinflon";



So when you add/move/delete pages from your site, you need to hand-code these into your suckerfish nav? I also have my nav in a stack but my stack is made up from an autonav block with a suckerfish custom template.
webnut replied on at Permalink Reply
webnut
Not not really.
I go into the pagepaths and copy the url, then paste it into the wysiwyg editor for each link.

Is there a better way to do this??
I get the impression that your menu is editable without going into the stack?
mhawke replied on at Permalink Reply
mhawke
I learn by doing so try this:

1) Go to Dashboard->Stacks and add a new stack called 'main-nav' or something like that.

2) Add an 'AutoNav' block to the stack.

3) Initially set the 'Sub-pages to Display' option to 'Display All' and the 'Sub-page Levels' to 'Display All'.

3) Click on the stack and choose 'Custom Template'.

4) Choose the 'Header Menu'.

5) Approve your changes.

6) Make a new test page anywhere you want.

7) On that new page, add or replace your wysiwyg nav stack with this new stack and see what happens. I'm absolutely sure it won't be styled the way you want but just see how it works.

8) Add a page below your new page and then another page below that. Add this new autonav stack to those pages as well.

9) Go back to the stack and play around with the 'sub-level' options to see how you can control how many pages show up on this autonav.

Give it a go. Nothing ventured, nothing gained.
webnut replied on at Permalink Reply
webnut
it seems as though C5 doesn't know how the rel url should look.
It will duplicate the path.

For example it should be:
192.168.73.123/~flinflon/about-us/mission

It generates:
192.168.73.123/~flinflon/about-us/about-us/mission

It used to generate:
192.168.73.123/about-us/mission
mhawke replied on at Permalink Reply
mhawke
The 'rel' part is the '/~flinflon' part that seems to be correct.

(It's 3:30am here so I'm going to bed.)
webnut replied on at Permalink Reply
webnut
lol sleep well