- Posts: 47
COMMUNITY FORUM
K2 BNR Content module
- BNR Investment Group
-
Topic Author
- Offline
- Senior Member
The module also supports subtemplates so you can completely control not only which content is displayed in the module, but also how it is displayed.
The attached image shows the extra fields for the item being displayed in the left column. The main image banner across the top is also in a module position so it can change based on the item image that has been uploaded.
You can download the module in the JED here - K2 BNR Content
CHANGE LOG
V1.4.0Added Social Links and Related Items by Tag as display optionsV1.3.0Fixed PHP 5.3.x plugin event errors due to variable not being passed by reference
V1.2.0Fixed Undefined property errorsFixed Undefined variable errors
v1.1.0 - Fixed module template override issues. You can now add your template overrides in templates/[template name]/html/mod_k2bnr_content and the module will see the folders and use the correct files.
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
- Posts: 3722
Worked well, installed the first time....a good addition to allowing placement of many things on the page
thanks
Please Log in or Create an account to join the conversation.
- BNR Investment Group
-
Topic Author
- Offline
- Senior Member
- Posts: 47
William White said:Good Work! I got it off of the joomla extensions last evening, and posted there.... Worked well, installed the first time....a good addition to allowing placement of many things on the page
thanks
Please Log in or Create an account to join the conversation.
- BNR Investment Group
-
Topic Author
- Offline
- Senior Member
- Posts: 47
Please Log in or Create an account to join the conversation.
- Christian Sweningsen
-
- Offline
- New Member
- Posts: 10
I don't see any documentation at all? Don't see a read me, don't see notes in the module ... what am I missing?
Thanks in advance, Christian
Please Log in or Create an account to join the conversation.
- BNR Investment Group
-
Topic Author
- Offline
- Senior Member
- Posts: 47
Typically, all of the content from an item displays in the content area of the template. This allows you to put some content in the content area, the related video in the one column, the extra fields in another column, and the photo gallery in the footer for example.
Christian Sweningsen said:
Hi, sorry to bother you with the obvious. Looks like this will solve a number of problems on my site. But - I am a "Noobe," and though I have an experienced site builder helping, I really don't have a clue how to make use of this, or what to tell her.
I don't see any documentation at all? Don't see a read me, don't see notes in the module ... what am I missing?
Thanks in advance, Christian
Please Log in or Create an account to join the conversation.
- rexkramer
-
- Offline
- Senior Member
- Posts: 71
Maybe not interesting for K2 themers, who work on K2 templates and overrides on a daily basis.
By the way... i am not that deep into the inner workings of K2... but is it possible to retrieve single extra fields? We always get the whole extra field group. Do you have a clue?
Please Log in or Create an account to join the conversation.
- rexkramer
-
- Offline
- Senior Member
- Posts: 71
one question or issue:
Since this module is for the article full-view... there is no option to restrict the module-output to article pages. When you are on a K2 Category the module position for BNRcontent is not empty. This happens in Purity, MilkyWay and Beez, so i guess its not a template question and has nothing todo with collapsable module positions.
The only way to restrict the output on article pages is to use:
AdvancedModuleManager
MetaMod
right?
Maybe its possible and easier for other users to have this option right inside the Module code?! Then there is no need to have other helpers. I mean, something that checks the URL for the view mode or something like that...
Please Log in or Create an account to join the conversation.
- BNR Investment Group
-
Topic Author
- Offline
- Senior Member
- Posts: 47
As far as having the module empty, I am not sure there is a good solution for this due to the way Joomla works. It might collapse properly using Adv Mod Manager since it has the option to suppress output if the module is empty. Joomla creates a module wrapper regardless of the output of the module to the change would need to be a that level rather than within the module. I'll have to see if AMM allows a position to collapse properly on category pages.
Please Log in or Create an account to join the conversation.
- Christian Sweningsen
-
- Offline
- New Member
- Posts: 10
>you don't select which items to display. This module automatically picks up the item being displayed, then displays content from that item in the module position.<
OK, maybe I've got it. I put the module on a "page" with an Item displaying in the Content position. I set the module parameters - e.g. "Show image". The module shows the image that is "in" the Item. Yes? And in the Item - do I set the parameters the same way, e.g. "Show image", but the module does it instead? Or do I set the Item to Not show image?
Thanks in advance,
Christian
Please Log in or Create an account to join the conversation.
- BNR Investment Group
-
Topic Author
- Offline
- Senior Member
- Posts: 47
Please Log in or Create an account to join the conversation.
- rexkramer
-
- Offline
- Senior Member
- Posts: 71
Important: The AMM compare method should read "OR".
Brent Friar said:
The extra fields are simply dumped in to an array, it is literally a single field in the DB. What I generally do is use a template override to select just the parts of the array I want to display. Once you figure out which array index goes with which extra field you can do all kinds of stuff.
As far as having the module empty, I am not sure there is a good solution for this due to the way Joomla works. It might collapse properly using Adv Mod Manager since it has the option to suppress output if the module is empty. Joomla creates a module wrapper regardless of the output of the module to the change would need to be a that level rather than within the module. I'll have to see if AMM allows a position to collapse properly on category pages.
Please Log in or Create an account to join the conversation.
- BNR Investment Group
-
Topic Author
- Offline
- Senior Member
- Posts: 47
Please Log in or Create an account to join the conversation.
- Sam Harney
-
- Offline
- Junior Member
- Posts: 33
Please Log in or Create an account to join the conversation.
- BNR Investment Group
-
Topic Author
- Offline
- Senior Member
- Posts: 47
Templates
> HTML
> mod_k2bnr_content
> subtemplate01
> subtemplate02
> subtemplate03
Please Log in or Create an account to join the conversation.
- James Synbian
-
- Offline
- New Member
- Posts: 2
Hi Brent, fantastic module. Wondering if you could offer me a little guidance with the control of extra fields? I have two extra fields, one 'textfield' and one 'textarea' which I'd like in separate module positions using your module. I've used a template override but am not sure on how to code in which extra field I want to display in the display.php file. Could you point me in the right direction to which array index controls each extra field and maybe the code needed? Many thanks for any help,
Brent Friar said:
The extra fields are simply dumped in to an array, it is literally a single field in the DB. What I generally do is use a template override to select just the parts of the array I want to display. Once you figure out which array index goes with which extra field you can do all kinds of stuff.
Please Log in or Create an account to join the conversation.
- BNR Investment Group
-
Topic Author
- Offline
- Senior Member
- Posts: 47
Please Log in or Create an account to join the conversation.
- James Synbian
-
- Offline
- New Member
- Posts: 2
Brent Friar said:
All of the extra field info is kept in the $item->extra_fields array. K2 has a nice little function that parses the DB info when it builds the array so you can access individual extra field info with $item->extra_fields[X]->name and $item->extra_fields[X]->value where X is the index of the array. Remember that indexes start at 0 and increment from there. Now you can simply echo the contents of each extra field and display them any way you like.
Please Log in or Create an account to join the conversation.
- BNR Investment Group
-
Topic Author
- Offline
- Senior Member
- Posts: 47
Please Log in or Create an account to join the conversation.
- Andrea
-
- Offline
- New Member
- Posts: 18
i've installed k2 bnr content but don't show anything.. someboyd can help me please? :\
thanks
andrea
Please Log in or Create an account to join the conversation.