Has Entries

Introduction

Simply check if there is any entry in one or more channels.

Installation

Prerequisites

Make sure your system meets the minimum requirements:

Installation Instructions

Update instructions

Tags

{exp:has_entries}...{/exp:has_entries}

Tag Parameters

Below are the Tag Parameters. Those parameters can be used in the tag described above

channel

Select the Channel(s) to check

channel="channel_name_1|channel_name_2"

Prefix

Prefix the variables

prefix="has_entries"

Tag Variable

Below are the Tag Variables. Those Variables can be used in the tag described above

entry_count

Total entry count of all channels

{has_entries:entry_count}

channel_data

The channel data of the selected channel

{has_entries:channel_data}...{/has_entries:channel_data}

channel_data:channel_id

The channel_id

{has_entries:channel_data}
    {has_entries:channel_data:channel_id}
{/has_entries:channel_data}

channel_data:site_id

The Site ID

{has_entries:channel_data}
    {has_entries:channel_data:site_id}
{/has_entries:channel_data

channel_data:channel_name

The Channel Name

{has_entries:channel_data}
    {has_entries:channel_data:channel_name}
{/has_entries:channel_data}

channel_data:channel_title

The Channel Title

{has_entries:channel_data}
    {has_entries:channel_data:channel_title}
{/has_entries:channel_data}

channel_data:channel_url

The Channel Url

{has_entries:channel_data}
    {has_entries:channel_data:channel_url}
{/has_entries:channel_data}

channel_data:total_entries

Total entry per Channel

{has_entries:channel_data}
    {has_entries:channel_data:total_entries}
{/has_entries:channel_data}

channel_data:total_comments

The total comments per Channel

{has_entries:channel_data}
    {has_entries:channel_data:total_comments}
{/has_entries:channel_data}

channel_data:last_entry_date

The last date of an Entry

{has_entries:channel_data}
    {has_entries:channel_data:last_entry_date}
{/has_entries:channel_data}

channel_data:last_comment_date

The last date of a Comment

{has_entries:channel_data}
    {has_entries:channel_data:last_comment_date}
{/has_entries:channel_data}

Changelog

1.0