Elxis CMS Forum
Support => Elxis 4.x/5.x DEV => Topic started by: seadhna on October 28, 2019, 17:43:41
-
Hi there,
in Elxis 5.0, in the landing page of a category - the first page of the category listing all articles within the category, I have the following settings in Components > Content > Category:
Columns: 3
Featured Number: 0
Short Articles Number: 18
Columns (under Short Articles): 3
Pagination: Show
Next Pages Style: Short Articles
However, on the live site, when I click to page 2 - there is only one column. How do I keep 3 columns on all pages?
I have tried everything I can think of and cannot make this happen. Thanks for your help!
-
This setting is only for the first page. Next pages have a specific layout.
-
Is there any way around this? From a design perspective this is very bad.
-
Actually, I realise this issue can be solved with CSS.
-
This might be useful to someone else (keeps 3 column layout on next page of category index):
div.elx5_artbox.elx5_artboxvt:not(.elx5_3colbox) {
margin: 0 0 40px 0;
padding: 0;
width: 32%;
float: left;
}
div.elx5_artbox.elx5_artboxvt:not(.elx5_3colbox):nth-of-type(3n+3) {
margin: 0 2% 40px 2%;
}
div.elx5_artbox.elx5_artboxvt:nth-of-type(3n+5) {
clear: left;
}
-
I have a different opinion in this subject. I think next pages should look more to an archive (or a blog) than a magazine. You can choose the next pages style from Elxis parameters between short articles, featured articles and links but you can not create columns. However it is very easy to change Elxis work as you wish. Open file components/com_content/views/category.html.php
go to line 35:
if ($page > 1) {
change it to something very high:
if ($page > 1000) {
That's all! Now all the pages have the same appearance as the first....