Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Did you know that
Elxis 5.x
uses HTML5, CSS3 and pure javascript without external libraries such as jQuery?
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
How to Keep 3 columns on 'next pages' of category?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to Keep 3 columns on 'next pages' of category? (Read 4426 times)
seadhna
Hero Member
Posts: 509
How to Keep 3 columns on 'next pages' of category?
«
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!
Logged
datahell
Elxis Team
Hero Member
Posts: 10358
Re: How to Keep 3 columns on 'next pages' of category?
«
Reply #1 on:
October 29, 2019, 06:49:37 »
This setting is only for the first page. Next pages have a specific layout.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
seadhna
Hero Member
Posts: 509
Re: How to Keep 3 columns on 'next pages' of category?
«
Reply #2 on:
October 29, 2019, 12:51:28 »
Is there any way around this? From a design perspective this is very bad.
Logged
seadhna
Hero Member
Posts: 509
Re: How to Keep 3 columns on 'next pages' of category?
«
Reply #3 on:
October 29, 2019, 13:13:29 »
Actually, I realise this issue can be solved with CSS.
Logged
seadhna
Hero Member
Posts: 509
Re: How to Keep 3 columns on 'next pages' of category?
«
Reply #4 on:
October 29, 2019, 18:03:33 »
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;
}
Logged
datahell
Elxis Team
Hero Member
Posts: 10358
Re: How to Keep 3 columns on 'next pages' of category?
«
Reply #5 on:
October 29, 2019, 23:05:59 »
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....
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
How to Keep 3 columns on 'next pages' of category?