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
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.
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.
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'
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
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.
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.
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
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.