1 of 2
1
Changing the ’Edit’ layout in the admin
Posted: 08 August 2008 07:51 AM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  348
Joined  06-12-2006

Hi all,

in the Edit of my weblogs, I see title, view, author, etc… Is it possible to add a custom filed to that, next tot tiele? For example, the article number of ana rticle, as this is truly unique, while description mught be the same.

Thx,
M

Thread Moved by Moderator to Extensions: Discussion and Questions

Profile
 
 
Posted: 08 August 2008 08:16 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  21039
Joined  04-29-2002

webnology, you could do this via an extension. Would you like me to move this to the Extensions forum for you?

 Signature 

EE 2.01PB - 2.x Bug Tracker | Docs | Upgrade from 1.x to 2.x | Build Update Instructions | 1.6.x Update Info

Most recent 2.x version: Build 20100215
Don’t forget to upgrade MSM and Forum as needed!

Profile
MSG
 
 
Posted: 08 August 2008 08:21 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  348
Joined  06-12-2006

yes, thx. I’ll take a look at that.

Profile
 
 
Posted: 08 August 2008 08:26 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  21039
Joined  04-29-2002

Hey, Leevi, Mark, any one else doing extensions, any ideas for this?

 Signature 

EE 2.01PB - 2.x Bug Tracker | Docs | Upgrade from 1.x to 2.x | Build Update Instructions | 1.6.x Update Info

Most recent 2.x version: Build 20100215
Don’t forget to upgrade MSM and Forum as needed!

Profile
MSG
 
 
Posted: 08 August 2008 10:13 AM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  268
Joined  01-04-2008

May be I miss something but the article number is in the first column. But if you want added some extra columns you can use hooks edit_entries_additional_tableheader and edit_entries_additional_celldata.

For example - Weegee from Masuga add edition information (thumbnail image) the same way.

 Signature 

All my addons | Twitter

MX UniEditor - integrate CKeditor, MarkItUp!, TinyMce with File/EntryLink Manager? Easily as a piece of cake. Try Now!

Profile
 
 
Posted: 08 August 2008 12:03 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  348
Joined  06-12-2006

Hay Maxup,

the first column is actually the entry_id, but I meant truly the inhouse article number, like ART_1bis for example. I’llt ake a look at what you posted, but it feels promiing.

Thx,
M

Profile
 
 
Posted: 08 August 2008 12:46 PM   [ Ignore ]   [ # 6 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  348
Joined  06-12-2006

I’m kind of lost how to use these hooks. Could someone help me to get this working?

Thx,
M

Profile
 
 
Posted: 08 August 2008 01:46 PM   [ Ignore ]   [ # 7 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  268
Joined  01-04-2008

Look, I make small example for you. You just need to install it like usual extension, enable it and then enter the field id number in extension settings.

File Attachments
edit_custom_field.zip  (File Size: 2KB - Downloads: 228)
 Signature 

All my addons | Twitter

MX UniEditor - integrate CKeditor, MarkItUp!, TinyMce with File/EntryLink Manager? Easily as a piece of cake. Try Now!

Profile
 
 
Posted: 09 August 2008 09:05 AM   [ Ignore ]   [ # 8 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  348
Joined  06-12-2006

Hi MAxup,

I instelled the extension, enable it, but what do I need to fill as id. The id of my custom field ‘Article Number’ is ‘nummer’. If I fill in this, it gives me the error that the column does not exist.

Notice: Undefined variable: field_label in /home/pacoor/public_html/system/extensions/ext.edit_custom_field.php on line 139
MySQL ERROR
:

Error Number: 1054

Description
: Unknown column 'field_id_nummer' in 'field list'

Query: SELECT field_id_nummer FROM exp_weblog_data WHERE entry_id='57'

Where do i go wrong?

M

Profile
 
 
Posted: 09 August 2008 09:14 AM   [ Ignore ]   [ # 9 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  10835
Joined  04-15-2006

I think you’ll need the actual id number of the field instead which you will find by going to :

Admin->Weblog Administration->Custom Weblog Fields->(Your Field Group Name)->Add/Edit Custom Fields

Hover over the field that you wish to find the id for and in the status bar you should see a longish link which should have field_id=2 tacked on the end. Where I have placed 2 previously you will find the id number that you need.

You need to hover over the field name in this way because you may one day order the fields in the back end differently and the numbers that show in the back-end are layout numbers as opposed to the actual field id.

Hope that helps. Great little extension by the way MaxUp wink

Best wishes,

Mark

 Signature 

Shopping Cart Plugin
Full list of add-ons
———————————————————-
Buy me a drink, or two if you like!!

Profile
 
 
Posted: 09 August 2008 09:18 AM   [ Ignore ]   [ # 10 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  268
Joined  01-04-2008

because ‘nummer’ is not ID. It’s the name.
When you edit customer field by Weblog Administration ›  Field Groups ›  Custom Fields look in URL
C=admin&M=blog_admin&P=edit_field&field;_id=ID
last numbers it was you need

Surely it was passable to make option for detected ID by custom field name, but it one more query, so I decided don’t do it.

 Signature 

All my addons | Twitter

MX UniEditor - integrate CKeditor, MarkItUp!, TinyMce with File/EntryLink Manager? Easily as a piece of cake. Try Now!

Profile
 
 
Posted: 09 August 2008 09:25 AM   [ Ignore ]   [ # 11 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  268
Joined  01-04-2008

Mark Bowen
It’s just simple example smile But, i think webnology request has some ideas for good futures expansion.

 Signature 

All my addons | Twitter

MX UniEditor - integrate CKeditor, MarkItUp!, TinyMce with File/EntryLink Manager? Easily as a piece of cake. Try Now!

Profile
 
 
Posted: 09 August 2008 09:28 AM   [ Ignore ]   [ # 12 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  10835
Joined  04-15-2006

Still a great extension though. Not only does it provide a very useful function for a lot of people but it also provides a good example of how to go about creating these kinds of extensions too for developers.

Kudos to you grin

Best wishes,

Mark

 Signature 

Shopping Cart Plugin
Full list of add-ons
———————————————————-
Buy me a drink, or two if you like!!

Profile
 
 
Posted: 09 August 2008 09:46 AM   [ Ignore ]   [ # 13 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  348
Joined  06-12-2006

Oh yes, it works. Thank you all very much.

M

Profile
 
 
Posted: 26 October 2008 01:38 PM   [ Ignore ]   [ # 14 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  189
Joined  10-17-2007

Brilliant, thanks MaxUp smile

Profile
 
 
Posted: 21 November 2008 10:05 AM   [ Ignore ]   [ # 15 ]  
Summer Student
Total Posts:  18
Joined  05-24-2002

Useful extension MaxUp. I know it’s just an example but I don’t suppose any php god would like to show me how to format the data that is pulled from it. I have a date I want added to the EDIT column but I get it as a long string of numbers (unformatted), would it be simple enough to have it format using the EE formatting abilities?

Honestly the idea behind this is great and I wish someone would pick it up and develop it further, especially while we wait for EE 2.0

Profile
 
 
Posted: 21 November 2008 01:23 PM   [ Ignore ]   [ # 16 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  268
Joined  01-04-2008

James B One more example with additional functions (for date field) smile

File Attachments
ext.edit_custom_field_b.zip  (File Size: 3KB - Downloads: 190)
 Signature 

All my addons | Twitter

MX UniEditor - integrate CKeditor, MarkItUp!, TinyMce with File/EntryLink Manager? Easily as a piece of cake. Try Now!

Profile
 
 
Posted: 21 November 2008 02:53 PM   [ Ignore ]   [ # 17 ]  
Summer Student
Total Posts:  18
Joined  05-24-2002

You sir are awesome!

Profile
 
 
Posted: 26 June 2009 08:16 AM   [ Ignore ]   [ # 18 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  104
Joined  02-13-2008

Thanks for posting this stuff up.. it was really helpful for me.  Here is a mod that I developed that pulls the custom field by field_label instead of field_id.  Why would I want to do that you may ask? I have several different types of field sets and I wanted to be able to display a common field from all of them.  Because they each have a unique field ID, I could just pull it based on that (without adding a whole bunch of columns). Instead this script looks for a field in the entries field set that has a particular label.. if it finds it, it shows it on the edit tab.

File Attachments
ext.edit_custom_field_by_label.zip  (File Size: 3KB - Downloads: 111)
 Signature 

http://sim.plified.com
skype: c.w.pollock
twitter: cwpollock

Profile
 
 
   
1 of 2
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 03:47 PM
Total Registered Members: 120568 Total Logged-in Users: 45
Total Topics: 126614 Total Anonymous Users: 28
Total Replies: 665609 Total Guests: 283
Total Posts: 792223    
Members ( View Memberlist )