Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Display only if 'No. of links greater than x%

Quote Reply
Display only if 'No. of links greater than x%
Situation:
Category Structure:

Root-Category-One (8170)
....Sub-Category-One (50 links)
....Sub-Category-Two (7500 links)
....Sub-Category-Three (600 links)
....Sub-Category-Four (20 links)

Category-Two (507)
....Sub-Category-One (5 links)
....Sub-Category-Two (2 links)
....Sub-Category-Three (500 links)

What I am trying to do:
on Category page (category.html) page, I want to only display categories that has 11% or more of total links under their parent category.

-------------------
In subcategory.html I understand that I can use something like
<%if Direct_Links >= '50' %>
however that can't really work for different categories, as trying to display categories only with a minimum of x% links of Parent category.

Is there any if/elseif type condition that could help with this?


Thank you.

Vishal
-------------------------------------------------------
Subject Author Views Date
Thread Display only if 'No. of links greater than x% VishalT 2291 Dec 31, 2019, 5:33 AM
Thread Re: [VishalT] Display only if 'No. of links greater than x%
VishalT 2198 Dec 31, 2019, 3:30 PM
Thread Re: [VishalT] Display only if 'No. of links greater than x%
Robert 1617 Sep 1, 2020, 10:36 AM
Post Re: [Robert] Display only if 'No. of links greater than x%
VishalT 1454 Oct 31, 2020, 2:56 PM