Weblog Tags

Use our Forums to find examples and answers to your questions. If you have advanced requirements for your project, contact us and our staff can help you find a solution.

hccdevelopment

Weblog Tags

Use these tags within your templates to display information from the resource module.

Global Tag Variables

Use this tag to access resources information from other sites using the Multiple Site Manager

{resource_site="your_site_short_name"

Global Tag Parameters
  • sort="desc": Set the sorting order. Possible values are "desc" or "asc".
  • orderby: Set the ordering of the groups by fields. Possible values are "date" and "name"
  • limit: Limit the number of Resource Groups
  • paginate: Enables pagination and sets where the pagination links go. Possible values "both" or "bottom" or "top".
  • paginate_base: Set the path of the pagination links. Default value is the current template.
Head Tags

The head tag will load the required JavaScript and CSS files into your template. It is required to include this tag on any page that will be using Resources forms.

{exp:resources:headers load_jquery="yes" load_jquery_form="yes"

Parameters
  • load_jquery: If set to "yes", the jquery javascript library will be loaded.
  • load_jquery_form: If set to "yes", the jquery javascript plugin will be loaded.
Variables
  • resource_id
  • resource_group_id
  • resource_filename
  • resource_max_downloads
  • resource_md5sum
  • resource_download_count
  • resource_url
  • resource_url_link
  • resource_mime
  • resource_file_extension
  • resource_mime_macro
  • resource_ajax_download_link
  • resource_download_link
  • resource_image
Conditionals
  • resource_is_allowed
  • resource_is_url
  • resource_is_image
  • resource_is_title

Example

{exp:weblog:entries weblog="resources"}
    {if resource_is_allowed}
        {if resource_is_file}
        
<a href="{resource_download_link}">Download</a>
        
{/if}
        {if resource_is_image}
        
<img src="/images/resource_image.jpg" />
        
{/if}
        {if resource_is_url}
        
<a href="{resource_url}">View</a>
        
{/if}
    {
/if}
{
/exp:weblog:entries} 


Join our Mailing List