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

[Is this possible?] : Include Random Links that with certain link-properties?

Quote Reply
[Is this possible?] : Include Random Links that with certain link-properties?
Using UltraGlobal's 'Random_Link_In_Category' code is it possible to display All Links in a certain category (& its sub-category) that have a certain link property?

------------------------------------------
<%Plugins::ULTRAGlobals::Random_Link_In_Category($ID,'7')%>

<%if random_link_in_this_cat.length%>
<%loop random_link_in_this_cat%>
<%include link.html%>
<%endloop%>
<%endif%>
------------------------------------------
I am considering adding a link-property field (example: 'is_partner', with value as Yes/No)

& on every category page, I want to display all is_partner (set to 'Yes') links in the left bar or footer (still finalizing on design).

Is it possible to do this using the above global or some other global?

1. Generally most main/root categories will have 2000+ links.
2. Also, if there are only 4 links set as is_partner, then I only want the global to say 4.
3. Ideally, I would want the link order/sorting to be randomized with every page reload.


Thank you.

Vishal
-------------------------------------------------------
Subject Author Views Date
Thread [Is this possible?] : Include Random Links that with certain link-properties? VishalT 1780 Apr 15, 2021, 11:43 PM
Thread Re: [VishalT] [Is this possible?] : Include Random Links that with certain link-properties?
Andy 1718 Apr 17, 2021, 1:17 AM
Post Re: [Andy] [Is this possible?] : Include Random Links that with certain link-properties?
VishalT 1710 Apr 17, 2021, 1:52 AM