my-account body class toevoegen voor alle mijn-account pagina’s via XML
Iedere pagina in de mijn account sectie van Magento beschikt standaard over de volgende html-structuur;
Wil je de mijn-account pagina's universeel opmaken, dan gebruik je de referentie .my-account. Maak je echter gebruik van third party modules die een pagina aan de mijn account sectie toevoegen, zoals in ons geval aheadWorks RMA, Sweet ToothPoints & Rewards en aheadWorks Advanced Newsletter zul je tot de ontdekking komen dat deze vaak niet dezelfde html-structuur hanteren. Weg universele opmaak!
Een oplossing zou zijn om iedere 'mijn account' pagina van deze modules van bovenstaande structuur, of in ieder geval een wrapper-element met class 'my-account', te voorzien. Een flexibelere en eenvoudigere manier is om op basis van een XML handle een universele (body) class toe te voegen aan alle 'mijn account' pagina's. Dit scheelt niet alleen geknoei met templates, het zorgt er ook voor dat iedere module die je in de toekomst installeert automatisch wordt voorzien van de gewenste opmaak.
Een extra bodyclass toevoegen voor mijn account-pagina's doe je als volgt. Plaats het volgende in de local.xml van je thema (app/design/frontend/jouwpackage/default/layout/local.xml), tussen de <layout></layout> elementen:
That's it! Verwijder je cache en bekijk de html van één van je mijn-account pagina's. Je zult zien dat de body nu een extra class heeft: 'my-account-pages'. Gebruik nu deze referentie om deze pagina's op te maken:
.my-account-pages .main .col-main {border:1px solid #ccc}


Has anyone solved the ajaxExpired error? It’s driving me crazy.
Hmm, the working of this module is pretty simple and it should definitely work straight out of the box! Try to install it again (maybe something went wrong) and try to remove caches. As a way to check if it did install successfully, take a look at the html output of your browser or use an inspector.
Dear Erwin,
The tool looks great, but when I am testing with the module it will not work. I have unpacked and installed the module, but when I am testing it in the styles it will not work. I want to use it browserspecific and tested a couple of functions, also your example of body.ie6 {display:none} (to make sure I was not doing any thing wrong). I want to change a couple of things in the navigation bar so #navigation. If it would work and I want to make the changes in ie7 how would the code look like: .ie7 #navigation or #navigation.ie7.
Let me know because it would make a big different if it would work.
Thanks.
If i want to display images in right sidebar in magento so what is the next step i should follow.Please give me result.
Great work….cheers
Hi Paul, will this steps work out if I wanna do like this in vertical navigation on the left sidebar? Or are there any modifications in the steps? Please advice.