Skip to content

Panchesco/gdtstatus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Good at Statuses

Make status group data available in ExpressionEngine templates.

##Usage

###Tags

{exp:gdtstatus:unslug}

Replaces dashes and underscores in tagdata with a whitespace. ####Parameters

Parameter Description Default Options
slug The string to act on
separator Character used as separator in slugs -

You can also wrap tagdata in an unslug tag pair.

###Tag Pairs

{exp:gdtstatus:group}

####Parameters

Parameter Description Default Options
group_id The status group ids as pipe delimited list
group_name The status group names as pipe delimited list
exclude The statuses as pipe delimited list
group_sort Sort order for Status Group names ASC ASC, DESC
status_sort Sort order for Statuses using native status_order property ASC ASC, DESC
separator Character to use as separator in returned slug variable -
limit Set limit on how many statuses are returned 100

####Variables {group_id}
{group_name}
{status_id}
{status}
{slug}
{status_order}
{highlight}

###Example

{exp:gdtstatus:group group_name="Blog" exclude="draft|open|closed"}
{if count==1}<ul>{/if}
	<li><a href="{path="group"}/{slug}">{status}</a></li>
{if count==total_results}</ul>{/if}
{/exp:gdtstatus:group}

About

Make status group data available in ExpressionEngine templates.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages