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

Is it possible to add values of particular fields for multiple links?

Quote Reply
Is it possible to add values of particular fields for multiple links?
 
Suppose I add a user-property field called 'amount_recovered'.
[type = BIGINT
index = Regular (I think) ]


How to calculate total for amount_recovered field for:
  1. Display value of 'amount_recovered' from user profile details in link.html & detailed.html page?

  2. Display total for 'amount_recovered' for all links any single category.

  3. Display total for 'amount_recovered' for all links for any desired category & all sub-categories under it.

  4. Display total for 'amount_recovered' for Entire website.



Example:
For a legal directory, I will be asking law-firms to input $ amount for the cases they have won/setteled so far.


Usage:
  1. So for the category of Dallas, I want to have the ability to display 'Grand Total' of 'amount_recovered' all the listings in Dallas Category.

  2. While for Texas (parent category of Dallas & all other cities in Texas), ideally I want to be able to display grand total of all.
    .. note: there might be few users who will have multiple listings, as some law-firms have offices in different cities. So in this scenario, we want to avoid doing multiple total additions.

  3. Ability to display grand total for all links in the entire directory.

  4. Ability to display grand total for all links . (or I suppose I should saw, grand total for all users)


Thank you.

Vishal
-------------------------------------------------------
Subject Author Views Date
Thread Is it possible to add values of particular fields for multiple links? VishalT 2643 Dec 27, 2020, 8:55 AM
Thread Re: [VishalT] Is it possible to add values of particular fields for multiple links?
Andy 2563 Dec 28, 2020, 1:30 AM
Post Re: [Andy] Is it possible to add values of particular fields for multiple links?
VishalT 2527 Dec 30, 2020, 9:44 AM
Thread Re: [VishalT] Is it possible to add values of particular fields for multiple links?
Andy 2566 Dec 28, 2020, 2:02 AM
Post Re: [Andy] Is it possible to add values of particular fields for multiple links?
VishalT 2531 Dec 30, 2020, 9:45 AM