Template & Universal content module : Somme d'un champ

More
7 years 11 months ago #72155 by id-pop
Si on prend l'exemple du lien de menu. Je me dis qu'il y a déjà une requête pour définir les éléments à afficher en fonction des catégories, des filtres sélectionnés, etc. Cette requête permet de créer la liste des articles à afficher..
Mon idée serait de :
- récupérer ces informations
- créer un array avec tel ou tel champ
- créer un calcul comme sur : php.net/manual/fr/function.array-sum.php

Malheureusement, je ne suis pas développeur et je tâtonne beaucoup....

Si tu ne vois pas de solution, pas de souci, je me débrouillerai autrement (ou attendrai le dev du plugin).

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #72166 by micker
le mieux c'est de suivre le tuto car la donnée que tu recherches est dans d'énorme tableau de données ....

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #72167 by ggppdk
Hello

do you want to create a "total" calculation in category view ?

github.com/FLEXIcontent/flexicontent-cck/issues/252


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

Please Log in or Create an account to join the conversation.

More
7 years 10 months ago #72535 by id-pop
Yes, I would like to create a calculation on category view but the best would be to create a calculation on universal content module...
I have looked at the url but I don't really understand how I can use it.
If for example I want to have the sum of the values of a text field (ID = 138), how can I write it ?
Thanks

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save