Re: modify accordion behavior and appearance
Jean Jordaan <[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.user |
|---|---|
| Message-ID | <CAJqnznAwQe_4rZZu0FYvYC7Da8uh6aZyWjjSeccYJeCCnOSo2A@mail.gmail.com> |
On Sat, Oct 11, 2014 at 3:09 AM, Chuck Theobald <[email protected]> wrote: > Hi All, > > New plone user, fairly new to css as well. Plone version 4.3.3 on RHEL 6.5. > > How do I alter the appearance of my accordion elements? This is the accordion used: http://jqueryui.com/accordion/ Plomino drives it with 24 lines of javascript, see Products/CMFPlomino/browser/javascript/plomino.accordion.js > Where in zope would I manage this? Or would it be in my theming (I > started with the plone burned theme)? To control whether accordions are open or not, change the parameters in `plomino.accordion.js` (e.g. override that file in your theme product using https://pypi.python.org/pypi/collective.jbot ). To change the appearance, add CSS rules that target the relevant classes (in the case of Plomino, `plomino-accordion-header`). > How do I work with zope db to find these answers myself? In this case it's a matter of finding where to look. - Start with a page containing an accordion, - inspect accordion element, see `plomino-accordion-header`, - grep for this, find `plomino.accordion.js`, see `$("h4.plomino-accordion-header").parent().accordion(...)` - realise this is a jquery call, nothing Zopish, - chase down the jquery docs. -- jean . .. .... //\\\oo///\\ ------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://p.sf.net/sfu/Zoho