MD Detect Page Type


Masuga Design

3rd Party (Free)

55 downloads (last 90 days)

Creative Commons Attribution Share Alike

EE Version Support

  • ExpressionEngine 1.x
  • ExpressionEngine 2


If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher


  • jQuery for the Control Panel

Add-On Type(s)



Detect if you are on pagination page, category page, or yearly archive page.

You can use a single template to handle the “landing page” for an area as well as the single-entry version of the page with a couple {if segment_3 != ‘’} and {if segment_3 == ‘’} conditionals. But when you introduce pagination, everything gets messed up. The goal was to avoid having to make a separate template to handle the single entries when pagination is used on the the same template. The URLs should look like the following using the (very basic) code sample that follows. – The “landing” page, that may include paginated items – A paginated page in this area – Using the same template for a single entry

Basic Example

{exp:md_detect_page_type url_segment="{segment_3}"}
Pagination Page: {if pagination_page}A Paginated Page{/if}
Category Page: {if category_page}This is a Category Page{/if}
Yearly Archive Page: {if yearly_archive_page}Yes!{/if} {/exp:md_detect_page_type}

Keep in mind that the Switchee plugin is also pretty useful for detecting page type, and may ultimately be more flexible.

Download MD Detect Page Type

EE Support Downloads Add-On Version Release Date
Not Specified Download 1.0.1 Sep 28, 2008
Not Specified Download 1.0.2 Mar 29, 2010

MD Detect Page Type Links

This entry was created March 12, 2009, 5:25 am.
This entry was last updated August 9, 2013, 11:02 pm.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at to initiate your return. If you have questions, email

2 Reviews:

Loughlin 02.25.13

Rating - {addon_rating_average}

Simple. Quick. Works.  Nothing more needs to be said.

Lee 08.26.12

Rating - {addon_rating_average}

Thanks to Masuga Design for a light weight, fast add-on that does it’s job perfectly.