- Posts: 44
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- customize the display of items k2 of certain categories
customize the display of items k2 of certain categories
- Alaabouch
- Topic Author
- Offline
- Senior Member
Less
More
8 years 3 months ago #155673
by Alaabouch
customize the display of items k2 of certain categories was created by Alaabouch
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 3 months ago #155733
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic customize the display of items k2 of certain categories
First of all you should use overrides -> getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
In the category_item.php file you can perform a simple check like this:
Where you can echo some CSS class which differentiate the layout.
In the category_item.php file you can perform a simple check like this:
<?php if($item->categoryname == 'CATEGORY_NAME'):
#code here
endif; ?>
Where you can echo some CSS class which differentiate the layout.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Alaabouch
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 44
8 years 3 months ago #155754
by Alaabouch
Replied by Alaabouch on topic customize the display of items k2 of certain categories
Hi,
thank you for attention, I've followed the instructions cited in this connection and is the result :
www.aidepharmacien.ma/allergologie/antihistaminiques-h1
but what I do not understand is that I did call that 4 additional fields! why others are displayed ?
thank you for attention, I've followed the instructions cited in this connection and is the result :
www.aidepharmacien.ma/allergologie/antihistaminiques-h1
but what I do not understand is that I did call that 4 additional fields! why others are displayed ?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 3 months ago #155760
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic customize the display of items k2 of certain categories
These are the extrafields. You can hide them by selecting 'Hide' in the category's settings.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Alaabouch
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 44
8 years 3 months ago - 8 years 3 months ago #155767
by Alaabouch
Replied by Alaabouch on topic customize the display of items k2 of certain categories
Last edit: 8 years 3 months ago by Alaabouch.
Please Log in or Create an account to join the conversation.
- Alaabouch
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 44
8 years 3 months ago - 8 years 3 months ago #155772
by Alaabouch
Replied by Alaabouch on topic customize the display of items k2 of certain categories
Last edit: 8 years 3 months ago by Alaabouch.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 3 months ago #155810
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic customize the display of items k2 of certain categories
You should move the extrafields block next to the title and apply float left to these classes.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Alaabouch
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 44
8 years 3 months ago #155829
by Alaabouch
Replied by Alaabouch on topic customize the display of items k2 of certain categories
Hi,
can you give me a hand please. I remove the extra fields to the title but I know not how to apply float right to te class ?
can you give me a hand please. I remove the extra fields to the title but I know not how to apply float right to te class ?
Please Log in or Create an account to join the conversation.
- Alaabouch
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 44
8 years 3 months ago #155856
by Alaabouch
Replied by Alaabouch on topic customize the display of items k2 of certain categories
Hi,
Here, I just do it! but it's ugly as design. is it possible to integrate them in a table ?
Here, I just do it! but it's ugly as design. is it possible to integrate them in a table ?
Please Log in or Create an account to join the conversation.
- Alaabouch
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 44
8 years 3 months ago #155857
by Alaabouch
Replied by Alaabouch on topic customize the display of items k2 of certain categories
Hi,
Here, I just do it! but it's ugly as design. is it possible to integrate them in a table ?
www.aidepharmacien.ma/antalgiques/antalgiques-non-opioides
Here, I just do it! but it's ugly as design. is it possible to integrate them in a table ?
www.aidepharmacien.ma/antalgiques/antalgiques-non-opioides
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- customize the display of items k2 of certain categories