0

I need to add a custom field in the publish entry area (specifically in the date tab). Should I use the Control Panel class or is there a preferred method?

1

If I understood correctly, you need to add an extra field to an already existing channel and you can easily do that from the CP by going to Admin > Channel Administration > Channel Fields.

Browse and click on the channel that you want to add your custom field to and create a new channel field.

To put your field under the Date tab:

Refer to this http://ellislab.com/expressionengine/user-guide/cp/content/publish_page_layouts.html

3
  • Sorry about the miss understanding , I meant adding field using programming not for specific channel , I need to add a field which uses javascript in the publish entry section using php
    – Armin Abbasi
    Jul 23 '14 at 5:05
  • In that case, I'd say you either create a simple field in the publish area normally and use this plugin CP JS to create the javascript functionality that you want to assign to it.
    – greyhills
    Jul 23 '14 at 16:08
  • I need to customize one the "publish entry form" fields , "entry date" field which is in the "date" tab section of publish entry , I have to change the normal behavior of this field. I'm writing an extension and trying to change this field's behavior using hooks , but I have no good clue on this!? any suggestions? Jul 26 '14 at 13:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.