10 years ago
4
Topic
Right, I'm getting along nicely with customizing a template to meet my needs but am interested to know if/how I can do the following.

When in a Seblod content view I would like to be able to load some of the fields in a module that is loaded into the main Joomla template's sidebar...

To explain better. I am using the following theme by yootheme;

http://yoocore.com/demo/themes/joomla/2013/lava/index.php/widgetkit

If we were to pretend that the page there is built with Seblod. The bulk of my fields would be in the main content area (i.e. under the breadcrumbs), however I would like to show some of the fields in a module in the sidebar (where the Get Widgetkit) module is displayed.

It must be a joomla module as I want to be able to display other modules beneath, such as login, google ads etc.

Backgound - I am building a recipe site with a responsive theme. When the screen size is reduced the sidebar will disappear, as such I want to display some of the less important fields in the sidebar.

Would it be as simple as installing an extension like http://extensions.joomla.org/extensions/core-enhancements/coding-a-scripts-integration/custom-code-in-modules/15251 and then just creating a module with the same code I use in my seblod template, e.g;

<?php
echo $cck->renderField('art_title');
?>

Thanks in advance for your help and sorry for the long explaination!
Get a VIP membership
175 Posts
webcastor
10 years ago
1
Level 1
Just my 2 cents: why don't you create a List&Search on content id and just display what you need in that search layout (via Seblod List module)
10 years ago
0
Level 2
I've not dipped into search and loats yet! But can you clarify that I can do the following...

Create a content type with all the fields I need.

Create a template for the joomla main body that contains the majority of the fields.

Create a search and list type that uses the 'live' article ID to fetch the extra fields from the currently displayed article. Then display this 'list' in a Joomla module.

Seems to make sense, I'll give that a try later.
175 Posts
webcastor
10 years ago
1
Level 1
Keep in mind that this "trick" applies to situations when you display single content. In case you display category blog menu type, you are better off without wrangling with additional modules.
10 years ago
0
Level 2
Thanks - I'd only want to use it on a single content item.

I'll get my head around search and list types and give this a shot.

Get a Book for SEBLOD