Display albums using PHP

itdcole - August 7, 2008 - 15:25
Project:Gallerix
Version:5.x-1.3-1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

How would I show the albums created by everyone by using PHP?

I can get the different variables, but only in the variable table. How would I echo/print the variable type "album"?

For ex.

<?php
print variable_get("site_slogan","")
?>

Prints the site slogan in a Block.

How would I display the albums and link them within a block?

#1

silviogutierrez - August 8, 2008 - 17:13

Try using views; it's designed to do exactly what you want.

Silvio

 
 

Drupal is a registered trademark of Dries Buytaert.