ipsure logo
Logo and Language
Login icon Language selection icon
Hello, guest
*NIX BACKUP Hands-On blog header image Right block of Hands-On blog header image Final menu block of Hands-On blog header image
MS TIP PKI PROJECTS CMS Active category menu left background Active category menu right background Türkçe HANDS-ON SERVICES IT BUSINESS CONTACT ABOUT REFERENCES TERMS RSS
Home page Hands-On Services IT Business Contact About References Terms of Use RSS



How to Sum Up “Global: PHP” Field Values in Drupal 7 Views

Filed under: CMS — Tags: , , , , , — Sezgin Bayrak @ 20:02

Drupal 7In Views, summing up custom php query results among themselves and getting the totals individually can be a problematic or even impossible task if you try to do this by using aggregation method or Views Calc module. After wasting considerable amount of time with these helpless methods, I decided to go wild and finally found a convenient solution via PHP approach.


more Read More

Displaying the Total Number of Rows Returned by Views in Drupal 7

Filed under: CMS — Tags: , , , — Sezgin Bayrak @ 15:18

Drupal 7If you need to display the total number of rows returned by Views, you need to simply add a “Global: PHP” field in the HEADER or FOOTER of your view setup and place the following PHP code inside the Output code area. Label you give here will only be displayed administratively. Don’t forget to use <?php and ?> delimiters to enclose PHP code.


more Read More