mishunov / webcouturier.dropdownmenu

7 stars 24 forks source link

No dropdowns when virtual hosting a sub site at the navigation root #11

Closed claytron closed 12 years ago

claytron commented 12 years ago

When you use Virtual Host Monster to serve up a sub site as its own domain, the tabPath no longer relates to the main portal. If you have a Plone site like this:

Plone
├── subsite1
│   ├── folder1
│   │   ├── page1
│   │   └── page2
│   └── folder2
└── subsite2

Then set up a VHM rewrite like this:

RewriteRule ^/(.*)$ http://localhost:8080/VirtualHostBase/http/subsite1.example.com:80/Plone/subsite1/VirtualHostRoot/$1 [L,P]

The folder1 menu item would not expand because it would be trying to do this:

portal.restrictedTraverse('folder1')
mishunov commented 12 years ago

Thanks, Clayton!