ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Search Channel Entries based on URL_Title

January 05, 2012 4:50pm

Subscribe [1]
  • #1 / Jan 05, 2012 4:50pm

    artlab

    37 posts

    I am trying to located particular channel entries that have a URL_Title with a specific string.
    Some of our URL_Title are of the form Title_2006
    So I want to locate all entries that have the _2006 in the URL_Title in a particular channel.  The 2006 is not in the Title or in the body, so a standard CP search does not work.

    Is there a way to do this or can I write some kind of SQL query in the Tools>SQL Manager?

  • #2 / Jan 06, 2012 4:34pm

    Dan Decker

    7338 posts

    Hi artlab,

    While you could create a query that would return those entries, you wouldn’t be able to edit them in via the SQL Manager. You might be interested in an add-on called Zenbu that adds several more searching options for editing entries.

  • #3 / Jan 06, 2012 5:28pm

    artlab

    37 posts

    Zenbu doesn’t allow this it seems.  Not URL_Title search at least.

    If you can tell me the query, just having the resultant list by ID or name would help!  At least it narrows down the search.

  • #4 / Jan 06, 2012 5:35pm

    Dan Decker

    7338 posts

    You can try running this in the Query Form:

    SELECT * FROM exp_channel_titles WHERE url_title LIKE '%_2006%'

    That should return a list of results where the url_title contains “_2006”. That result set will include the entry ID and the Title for the entries you are looking for as well.

    Hope that helps!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases