Topic: Strange directory structure problem with dropmenu  (Read 722 times)

Pages: [1]   Go Down

#1: 4-Aug-2006, 07:10 AM


Vitalized
Posts: 138

"Teach a man to phish"

WWW
Sorry if this has been posted already... I did look before posting and couldn't find anything!

I'm building a MODx site and I'm using the dropmenu snippet for horizontal dropdowns.
The problem i'm getting is a strnge directory rebuild from all the sub pages on the site.
The homepage works ok (all the link go to the correct pages)

http://www.vitalized.co.uk/

But when I navigate to the page below all the links in the drop menu use the current directory as the root

http://www.vitalized.co.uk/web-design-development/modx-web-hosting.htm

If you hoover over the "HOME" button from the above URL it goes to:
http://www.vitalized.co.uk/web-design-development/index.htm

Instead of
http://www.vitalized.co.uk/index.htm


This strange thing is the directory structure appears correctly if I use the defualt modx template which just uses: [[DropMenu]] in the side bar.


The calls I've used on the drop menu are:

[[DropMenu? &startDoc=`0` &levelLimit=`2` &here=`activeLink` &topdiv=`1` &topdivClass=`nav`]]
[!DropMenu? &startDoc=`0` &levelLimit=`2` &here=`activeLink` &topdiv=`1` &topdivClass=`nav`!]
[[DropMenu]]
[[DropMenu? &startDoc=[*grandparent*]  &levelLimit=`2`]]
[[DropMenu? &startDoc=[*parent*]  &levelLimit=`2`]]

None do the trick!

Hope this makes sense to someone out there!!!!

Web Development, Web Hosting & Search Engine Marketing by:

Vitalized | UK
t. +44 (0) 208 123 0708
w. www.vitalized.co.uk

Website Design | Search Engine Marketing (SEM) | UK MODx web hosting, secure, fast & 100% MODx compatible

Vitalized | Australia
t. +61 (0) 2 8011 3095
w. www.vitalized-australia.com.au

Website Design | Search Engine Marketing (SEM) | Australian MODx web hosting, secure, fast & 100% MODx compatible

#2: 4-Aug-2006, 07:20 AM

Coding Team

doze
Posts: 4,101

....Boom!

Do you have friendly alias paths enabled?
New MODx wiki! Please help up with documentation efforts! || Old Wiki

"He can have a lollipop any time he wants to. That's what it means to be a programmer."

#3: 4-Aug-2006, 07:40 AM


Vitalized
Posts: 138

"Teach a man to phish"

WWW
Yes I do

The settings are:

Use friendly URLs: yes
Prefix for friendly URLs: blank
Suffix for friendly URLs: blank
Use friendly aliases: yes
Use friendly alias path: yes
Allow duplicate aliases: yes
Automatically generate alias: no

As I said before dropmenu seems to work ok in the default MODx template:
http://www.vitalized.co.uk/web-design-development/test-navigation.htm

Thanks for your help
Web Development, Web Hosting & Search Engine Marketing by:

Vitalized | UK
t. +44 (0) 208 123 0708
w. www.vitalized.co.uk

Website Design | Search Engine Marketing (SEM) | UK MODx web hosting, secure, fast & 100% MODx compatible

Vitalized | Australia
t. +61 (0) 2 8011 3095
w. www.vitalized-australia.com.au

Website Design | Search Engine Marketing (SEM) | Australian MODx web hosting, secure, fast & 100% MODx compatible

#4: 4-Aug-2006, 08:14 AM


Vitalized
Posts: 138

"Teach a man to phish"

WWW
I think I've solved it!

By using
Code:
<base href="[(site_url)]" />
in the head it seems to have solved my problem.

Web Development, Web Hosting & Search Engine Marketing by:

Vitalized | UK
t. +44 (0) 208 123 0708
w. www.vitalized.co.uk

Website Design | Search Engine Marketing (SEM) | UK MODx web hosting, secure, fast & 100% MODx compatible

Vitalized | Australia
t. +61 (0) 2 8011 3095
w. www.vitalized-australia.com.au

Website Design | Search Engine Marketing (SEM) | Australian MODx web hosting, secure, fast & 100% MODx compatible
Pages: [1]   Go Up
0 Members and 1 Guest are viewing this topic.