Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

get_home_page_promoted_collections()

Parameters

This function accepts no parameters.

Location

include/collections_functions.php lines 3794 to 3799

Definition

 
function get_home_page_promoted_collections()
    {
    global 
$COLLECTION_PUBLIC_TYPES;
    
$public_types join(", "$COLLECTION_PUBLIC_TYPES); // Note this is a constant and not user input - does not need to be a a parameter in the next line.
    
return ps_query("select collection.ref, collection.`type`,collection.name,collection.home_page_publish,collection.home_page_text,collection.home_page_image,resource.thumb_height,resource.thumb_width, resource.resource_type, resource.file_extension from collection left outer join resource on collection.home_page_image=resource.ref where collection.`type` IN ({$public_types}) and collection.home_page_publish=1 order by collection.ref desc");
    }

This article was last updated 23rd July 2024 21:35 Europe/London time based on the source file dated 19th July 2024 16:55 Europe/London time.