IV Structure Parent ID

Developer

Ivano Vardé

3rd Party (Free)

GNU General Public License v3 Download

EE Version Support

  • ExpressionEngine 1.x
  • ExpressionEngine 2

Compatibility

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

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Plugin

Tags

Returns the structure's parent entry_id of a given entry, or 0 if the entry is at Structure Top Level. Good to be used in conditionals.


Returns the structure's parent entry_id of a given entry, or 0 if the entry is at Structure Top Level. Good to be used in conditionals.

		PARAMETERS:

		url_title = Optional / Required. The url_title of a Structure\'s entry
		entry_id = Optional / Required. The entry_id of a Structure\'s entry
		weblog / channel = Optional. The weblog or Channel name
		site_id = Optional. The site_id of a Structure's entry

		At least one of these: url_title, entry_id must be provided.

		EXAMPLES:

		{exp:iv_structure_parent_id entry_id="22"}

		{exp:iv_structure_parent_id url_title="my_entry"}

		{exp:iv_structure_parent_id url_title="{segment_1}"}


		{if {exp:iv_structure_parent_id url_title="{segment_1}"} == 0}

		    // this IS A TOP LEVEL structure entry.

		{/if}


		{if {exp:iv_structure_parent_id url_title="{segment_1}"}}

		    // this IS NOT a top level structure entry.
		    // The tag will return the Structure's entry parent_id
		    parent_id = {exp:iv_structure_parent_id url_title="{segment_1}"}

		{/if}

Download IV Structure Parent ID

EE Support Downloads Add-On Version Release Date
2.2.0+ Download

IV Structure Parent ID Links

This entry was created September 13, 2016, 11:19 pm.
This entry was last updated September 22, 2016, 7:16 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 devot-ee.com. 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 https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!