We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Modify Channel Entries Columns

Development and Programming

readmetwice's avatar
readmetwice
18 posts
about 14 years ago
readmetwice's avatar readmetwice

Has anyone successfully been able to modify the “Edit Channel Entries” page of the Control Panel?

Currently is shows “#, Title, View, Comments, Author, Date, Channel, Status” Would like to change a column I don’t use, say “Comments” for “URL Title”. Reason being because several titles are identical and can only tell the difference with the URL. Can’t change the title for display in the actual website purposes. Would save me 1minute per manipulation for thousands of files.

Looking around the forum looks like perhaps a hook or extension may help. Thoughts?

Thanks 😊

       
the3mus1can's avatar
the3mus1can
426 posts
about 14 years ago
the3mus1can's avatar the3mus1can

Zenbu lets you customize that page: http://devot-ee.com/add-ons/zenbu

       
readmetwice's avatar
readmetwice
18 posts
about 14 years ago
readmetwice's avatar readmetwice

thanks for the link to the add-on. At this point I only need to switch one column so don’t need the super charged functionality.

Anyone successful in doing it out of the box? Thanks

       
readmetwice's avatar
readmetwice
18 posts
13 years ago
readmetwice's avatar readmetwice

Took some time to figure out how to do this via a hack in two EE files, posting my solution here to hopefully save others some time.

I successfully replaced a column in the default “Edit Entries” view in Control Panel (CP) “author” with another exp_channel_title table column “url_title” more useful to us. The issue resolved was being to differentiate among channel entries with the same title (which is the reason why EE forces distinct url_titles thus I don’t see why they don’t add the url_title by default).

Files modified are two (EEv2.5.2): system/expressionengine/controllers/cp/content_edit.php system/expressionengine/models/search_model.php (note line # below are approximate as sometimes they differ based on version and changes to your files)

In content_edit: line #105, in $columns array replaced ‘screen_name’ => array(‘header’ => lang(‘author’)), with ‘url_title’ => array(‘header’ => lang(‘url’), ‘sort’ => FALSE),

line #355, added url_title to line $this->db->select(‘entry_id, original_entry_id, channel_id, title, url_title, status, entry_date, dst_enabled, comment_total’);

line #406, added to for each ($row as &$row) $row[‘url_title’] = $row[‘url_title’];

In search_model: line #483 in get_full_cp_query added to $select.= exp_channel_titles.url_title,

Accomplished the same Hack in Playa fields with the help of Pixel & Tonic: https://getsatisfaction.com/pixelandtonic/topics/duplicate_channel_entry_titles_show_title_and_url_title

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.