Re: modify accordion behavior and appearance

Chuck Theobald <[email protected]>
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <[email protected]>
This is great stuff, Jean! Thanks for the pointers.

I think the confusing thing for me is where to find what I need to 
modify. For the accordion, the target is in the file system. Other items 
are less clear: modify through the WebUI? in the ZopeDB? This leads to a 
lot of time hunting, exacerbated by the fact that I have no reliable way 
to search the ZopeDB.

I attribute this to me being a stranger in a strange land. I've heard 
the learning curve on Plone is about a year long, I can see why.

Regards,
Chuck


On 10/10/2014 11:24 PM, Jean Jordaan wrote:
> 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.
>


-- 
Chuck Theobald
System Administrator
The Robert and Beverly Lewis Center for Neuroimaging
University of Oregon
P: 541-346-0343
F: 541-346-0345


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.