Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Pinned entry, posted by Giuseppe Cucinotta on Thu Apr 18 12:29:05 2019 
    icon2.gif   Re: Pinned entry, posted by Stefan Ritt on Tue Apr 23 10:00:48 2019 
       icon2.gif   Re: Pinned entry, posted by Giuseppe Cucinotta on Tue Apr 23 11:02:32 2019 
       icon2.gif   Re: Pinned entry, posted by Finn Junker on Tue May 21 15:42:46 2019 
Message ID: 68984     Entry time: Tue May 21 15:42:46 2019     In reply to: 68930
Icon: Reply  Author: Finn Junker  Author Email: fj@tvis.net 
Category: Question  OS: Linux | Windows  ELOG Version: 3.1.3 
Subject: Re: Pinned entry 

Hello Stefan

Works great and very usefull - but not when you use reverse sort = 1?.

Is there a way to get both. Pinned first and then the rest i reversed order (highest ID on page 1)

Kind Regards Finn

Stefan Ritt wrote:

This is not directly possible, but you can configure it with a trick. Create an attribute "pinned", make it of type "boolean", and set the start page such that it sorts using the "pinned" attribute:

Atributes = ..., Pinned
Options Pinned = boolean
Start page = ?rsort=Pinned

This move all entries where "Pinned" is true to the top of the list.

Stefan

 

Giuseppe Cucinotta wrote:

Hi everybody,

sorry if this question has already been posed (I did a quick search but I didn't found anything): elog sorts entry by ID, I wonder if it is possible to pin an entry in order to be always on top of the page independently on its ID.

Thanks

Giuseppe

 

 

ELOG V3.1.5-3fb85fa6