- Posts: 15920
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
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
8 years 3 months ago #155860
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
I think with these changes it will look nicer -> imgur.com/iRyo5jE
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 #155867
by Alaabouch
Replied by Alaabouch on topic customize the display of items k2 of certain categories
Hi,
I have made the change, but I would incorporate the content in a table. is it possible ?
I have made the change, but I would incorporate the content in a table. is it possible ?
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 #155868
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 can do this, you will have to override the category_item.php file however - getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
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 2 months ago #156045
by Alaabouch
Replied by Alaabouch on topic customize the display of items k2 of certain categories
Hi,
honestly I could not do anything !
honestly I could not do anything !
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 2 months ago #156056
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
Which part did you get stuck on?
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 2 months ago - 8 years 2 months ago #156071
by Alaabouch
Replied by Alaabouch on topic customize the display of items k2 of certain categories
Hi,
in this code
/* extrafields columns */
.extrafieldscolumns ul { width: 100%; margin:0;padding:0;/* CSS Reset */ max-width: 1000px; /* restrict the width */ margin: 0 40px; /* center it */}.extrafieldscolumns li { width: 20%; float:center; /* IMPORTANT */ list-style-type: none; display:inline; /* IMPORTANT */}
/* END extrafields columns */
div.catItemView.groupLeading{float:left;}
div.extrafieldscolumns{float: left;}
I don't know how do I adjust this code for additional fields align vertically ?
in this code
/* extrafields columns */
.extrafieldscolumns ul { width: 100%; margin:0;padding:0;/* CSS Reset */ max-width: 1000px; /* restrict the width */ margin: 0 40px; /* center it */}.extrafieldscolumns li { width: 20%; float:center; /* IMPORTANT */ list-style-type: none; display:inline; /* IMPORTANT */}
/* END extrafields columns */
div.catItemView.groupLeading{float:left;}
div.extrafieldscolumns{float: left;}
I don't know how do I adjust this code for additional fields align vertically ?
Last edit: 8 years 2 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 2 months ago #156072
by Alaabouch
Replied by Alaabouch on topic customize the display of items k2 of certain categories
Hi,
in this code
/* extrafields columns */
.extrafieldscolumns ul { width: 100%; margin:0;padding:0;/* CSS Reset */ max-width: 1000px; /* restrict the width */ margin: 0 40px; /* center it */}.extrafieldscolumns li { width: 20%; float:center; /* IMPORTANT */ list-style-type: none; display:inline; /* IMPORTANT */}
/* END extrafields columns */
div.catItemView.groupLeading{float:left;}
div.extrafieldscolumns{float: left;}
I don't know how do I adjust this code for additional fields align vertically ?
in this code
/* extrafields columns */
.extrafieldscolumns ul { width: 100%; margin:0;padding:0;/* CSS Reset */ max-width: 1000px; /* restrict the width */ margin: 0 40px; /* center it */}.extrafieldscolumns li { width: 20%; float:center; /* IMPORTANT */ list-style-type: none; display:inline; /* IMPORTANT */}
/* END extrafields columns */
div.catItemView.groupLeading{float:left;}
div.extrafieldscolumns{float: left;}
I don't know how do I adjust this code for additional fields align vertically ?
Please Log in or Create an account to join the conversation.
- Alaabouch
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 44
8 years 2 months ago - 8 years 2 months ago #156099
by Alaabouch
Replied by Alaabouch on topic customize the display of items k2 of certain categories
Hi,
there was someone who had me help solve this problem partially. I replace the preceding code with this code in the file override.css
.itemContainer {
display: block;
}
.catItemView {
width: 30%;
}
.extrafieldscolumns ul {
margin: 0;
max-width: none;
padding: 0;
width: 100%;
}
.extrafieldscolumns li {
display: inline-block;
width: 20%;
text-align: right;
}
.extrafieldscolumns li:first-child {
width: 20%;
text-align: left;
}
.extrafieldscolumns li:nth-child(2) {
width: 30%;
}
.extrafieldscolumns li:nth-child(3) {
width: 20%;
}
.extrafieldscolumns li:nth-child(4) {
width: 10%;
}
but the change has been applied in all pages :(
there was someone who had me help solve this problem partially. I replace the preceding code with this code in the file override.css
.itemContainer {
display: block;
}
.catItemView {
width: 30%;
}
.extrafieldscolumns ul {
margin: 0;
max-width: none;
padding: 0;
width: 100%;
}
.extrafieldscolumns li {
display: inline-block;
width: 20%;
text-align: right;
}
.extrafieldscolumns li:first-child {
width: 20%;
text-align: left;
}
.extrafieldscolumns li:nth-child(2) {
width: 30%;
}
.extrafieldscolumns li:nth-child(3) {
width: 20%;
}
.extrafieldscolumns li:nth-child(4) {
width: 10%;
}
but the change has been applied in all pages :(
Last edit: 8 years 2 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 2 months ago #156129
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
FYI float:center; is not supported (sadly).
Now, you can create a K2 sub-template and add a class to the wrapper which is specific to that view.
Then your CSS should look like:
More info can be found here: www.joomlaworks.net/blog/item/194-k2-inheritance-sub-templating
Now, you can create a K2 sub-template and add a class to the wrapper which is specific to that view.
Then your CSS should look like:
YourWrapperClass .itemContainer {
display: block;
}
YourWrapperClass .catItemView {
width: 30%;
}
.YourWrapperClass .extrafieldscolumns ul
...
More info can be found here: www.joomlaworks.net/blog/item/194-k2-inheritance-sub-templating
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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