Last active
August 29, 2015 14:08
-
-
Save kmgdevelopment/53ee9ce1c861c80b623b to your computer and use it in GitHub Desktop.
ExpressionEngine: Get Entry ID from URL Segment w/ ActiveRecord Plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{exp:activerecord | |
select='entry_id' | |
from='channel_titles' | |
where:url_title='{segment_x}' | |
limit='1' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment