Elxis CMS Forum

Support => General => Topic started by: armpouniotis on April 28, 2023, 15:58:09

Title: About file category.html.php
Post by: armpouniotis on April 28, 2023, 15:58:09
Hi there !

everytime I update elxis, I have to modify the file "category.html.php", line 35:

from:
if ($page > 1) {

to:
if ($page > 1000) {

I have to do that on every website...
is it possible to incorporate it in later elxis updates ?

thank you in advance
Christos
Title: Re: About file category.html.php
Post by: datahell on April 29, 2023, 13:58:36
Why?????? "page > 1" is the correct one. In this case the style of the articles is controlled by the parameter "Next pages style" (Short articles, Link articles, Featured articles). If you put page > 1000 Elxis will think that every sub-page is the first page of the category.
Title: Re: About file category.html.php
Post by: armpouniotis on May 01, 2023, 00:59:47
Yes you are right...
but we prefer every sub-page to be shown as short articles

never mind, I will modify it manually

Christos
Title: Re: About file category.html.php
Post by: datahell on May 01, 2023, 22:01:45
This is already supported....
parameter "Next pages style" (Short articles, Link articles, Featured articles)

Except if something is missing for you in the style Elxis applies. I don't know, you must be more specific.
Title: Re: About file category.html.php
Post by: armpouniotis on May 17, 2023, 23:27:41
check these settings in Category in Short articles Tab:

Short articles number = 10
Columns = 2
Short image = Left
etc...

yes, but next pages style is not in 2 columns like the 1st page...

That's why I modify:

"category.html.php", line 35:

from:
if ($page > 1) {

to:
if ($page > 1000) {

Christos