Skip to content

A very simple ExpressionEngine plugin allowing you to check if a given entry_id or url_title is a channel entry.

Notifications You must be signed in to change notification settings

JamesMcFall/EE-Is-Entry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

EE-Is-Entry

A very simple ExpressionEngine plugin allowing you to check if a given entry_id or url_title is a channel entry.

Usage

This plugin has one parameter and can simply be passed a entry ID or an entry URL title. It returns a boolean.

For example if you were in the index template of your blog group on your website, you can test if there's a URL title or entry ID in the URL and if there is show the article page.

{if {exp:is_entry check="{last_segment}"}}
    {embed="Blog/post"}
{if:else}
    <!-- No article in the URL, show the blog listing page -->
    {embed="Blog/listing"}
{/if}

About

A very simple ExpressionEngine plugin allowing you to check if a given entry_id or url_title is a channel entry.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages