5 years 6 months ago #178748
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- Place (right) module next to particular K2 article
Place (right) module next to particular K2 article
Admin
5 years 6 months ago #178782
I need to see what you want to achieve. A screenshot would help pointing out which is the K2 component and which is the K2 module.
Topic Author
5 years 6 months ago #178795
So here is example. I have a list of renting houses (1st picture), next to them is calendar with latest events, which is okay, but when you open, for example "Jura's country house", I don't wanna have latest events. I want to place another module or some kind of field which will display for example "House features" with a list of features, do you get me?
Regards,
M
Regards,
M
Admin
5 years 6 months ago #178808
You can utilize K2's Extra Fields then to built such additional data and instead of having a 2-column layout in the "item view", use a single-column layout, then just place the extra fields output in the right column.
It's easy to detect the K2 item view inside your template's code (e.g. in index.php):
It's easy to detect the K2 item view inside your template's code (e.g. in index.php):
if (JRequest::getCmd('option') == 'com_k2' && JRequest::getCmd('view') == 'item') {
// do something when on the item view
}Log in or create an account to reply.