Posts Tagged ‘rules’
Missing content menus in Plone
Another dose of insanity please! Coming right up, sir.
Today’s second discussion comes from an issue I was having recently with a new Plone site that I was hosting behind Apache and Deliverance. No Varnish here yet, because I’d rather the site worked first before I try and cache the life out of it.
Now, the specific problem I was having was that the content menus in Plone (eg Add New, Display, State, Actions and for me, Sub-types) weren’t displaying. I thought it a Deliverance issue – maybe I was dropping those content items accidentally or not including the JavaScript needed to display them. Uh, nope on both accounts.
Solution
After a detailed search of everything I could have been doing wrong, I can across my Apache rewrite rules. Amazingly enough, I’d left off the /_vh_mysite at the end, so the URLs weren’t being written correctly. Whilst the site was loading (mostly) fine, because I’d inserted the URL to point to the site correctly, I’d forgotten that the VHM needs the _vh_mysite part.
Adding it in fixed the problem in a second, along with a throat-clearing shift-refresh.
Deliver me from … Deliverance?
Always one for being on and beyond the bleeding edge of new technology, I’ve (with the help of colleagues) been setting up a new technology for applying themes to web sites. In particular, I’m applying Deliverance to Plone and whilst I’m not the first one to venture out into the wilderness this way, I’ve got to be thinking that I could be one of the few people documenting their experience. Ah, but where to begin? (more…)
Rewrite Rules Made Easy
I’ve pretty much got a nice handle on Rewrite rules for Apache. Once you’ve seen a few of them, it’s straight forward enough to replicate for new Plone sites and so forth.
However, to make things even easier on my brain I’ve found this: http://betabug.ch/zope/witch , the Rewrite Rule Witch. Seems like the rules it produces are what I’d expect, which makes me ponder why, if I know they’re right, would I bother.
Reason: easy confirmation and less chance of typos.