I’m pleased to announce the first release of a custom plugin for use with Joomla 1.7 & K2 2.5.4. Information Blocs is designed to read values from a K2 article’s extra fields and insert them into the body of the article itself, rather than displaying them in a single group at the bottom of the page. I’ve setup a GoogleCode project to host the project’s source code and release files.
Main Features
- Fully user configurable:
- User defines sets of extra field IDs along with a set name and a header text in the plugin’s configuration.
- User can chose to use either a basic div element for output, or an HTML5 compatible aside element for standards compliance.
- User can set CSS class names for floating Blocs to left or right.
- Unstyled CSS markup:
- Values are displayed in a definition list based format.
- All elements have a completely unstyled CSS class applied reflecting their role in the display.
- Simple shortcode syntax:
- Blocs are added to the K2 article’s content through the use of an easy to remember shortcode.
- QuickBlocs:
- In addition to pre-made sets of data pulled from the article’s extra fields, the plugin can also create display boxes using values supplied in the shortcode itself.
- Doesn’t effect the normal display of extra field content.
- The plugin only reads values from the article’s extra fields – it doesn’t remove any of that data, so K2’s regular extra field display will still work perfectly.
2 Responses to “Information Blocs – A Joomla/K2 Plugin”
Comments (2)
Great idea! Can you explain how to apply the css classes a little further?
The classes are actually already applied to the generated bloc – you just need to add classes using the supplied names (check in the plugin under the extension manager) to your style sheet with styling to apply to the individual blocs. When I update the plugin next – probably this weekend – I’ll include an example style sheet.