You are here: Home CMS.Info Blog KSS Opener: Controller

KSS Opener: Controller

KSS Opener injects a bit of its own into element is is being assigned to. This bit is named Controller. Subject of this post is controlling the place to inject the KSS Opener Controller.

There was a discussion with Geir and Alex regarding the non-semantic example. Newer post addresses the issue with semantic KSS Opener albeit with a bit of complexity more:

In the case you need your opener controller to be inserted into specific place, you can use pair of controllerPlacementSelector parameters:

evt-init-elementSelector: '> dd';
evt-init-controllerPlacementSelector: '> dt';

if the above sample is applied to following HTML code:

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum
iaculis eros eu purus. Integer accumsan leo id lorem viverra vulputate.
Donec feugiat nunc molestie massa nonummy pulvinar. Proin porta pede
sit amet lectus. Duis leo urna, tempor non, condimentum condimentum,
commodo non, libero. Integer feugiat, pede at.

And the result is:

The whole definition list has opener assigned. Controller (clickable handle) is inserted into <dt> element, not in root of list (that can confuse some browsers). This is why I avoided dl/dt/dd example in my introduction post.

Document Actions
CMS.Info Blog

RSS Subscribe to CMS Info by saving the URL of RSS icon to use in your newsreader.

Plone (27)
Zope (1)
Powered by Plone