Author Topic: How to restrict a specific category news to be displayed prominently  (Read 298 times)

Offline kpshyam

  • Full Member
  • *****
  • Posts: 22
  • Karma: +0/-0
phpEnter Web Hosting
I would like to have a specific category news only to be displayed prominently, I mean as a first message.  How can I do this ?  I am using the latest version 5.3.  Kindly help me out.

Thanks in advance.
« Last Edit: October 15, 2019, 10:13:36 AM by kpshyam »

Offline aleks

  • Administrator
  • Full Member
  • *****
  • Posts: 266
  • Karma: +0/-0
Re: How to restrict a specific category news to be displayed prominently
« Reply #1 on: October 16, 2019, 09:14:16 PM »
In main.php replace this code:

Code: [Select]
{if $le@index > 0 && $le@index < 7}
with (for example category id 4):

Code: [Select]
{if $le@index > 0 && $le@index < 7 && $le.idblog == 4}

Offline kpshyam

  • Full Member
  • *****
  • Posts: 22
  • Karma: +0/-0
Re: How to restrict a specific category news to be displayed prominently
« Reply #2 on: October 17, 2019, 06:17:18 PM »
Hi,

Thank you for the reply.  Kindly let me know how can I identify the Category ID  ?

Offline aleks

  • Administrator
  • Full Member
  • *****
  • Posts: 266
  • Karma: +0/-0

Offline kpshyam

  • Full Member
  • *****
  • Posts: 22
  • Karma: +0/-0
Re: How to restrict a specific category news to be displayed prominently
« Reply #4 on: October 19, 2019, 10:00:22 AM »
Hi,

Thank you for the reply.  My purpose is only partially solved.  I will tell you once again what I would like to have:-

One of my site category is - LEADING NEWS.  I would like to have the messages of this category only to come at the TOP, and the other category messages should not come on this place.  Is there any way out to achieve this ?  Thanks once again.