$foreign_keys question

edited December 2012 in Share
Hmm, I'm going over the tutorial for creating a module with a dropdown related to another module. http://www.getfuelcms.com/user_guide/modules/tutorial

I'm not finding anywhere in there how displaying the $field['author_id'] you're changing the name for the field? It's showing Author instead of Author_id as mine does.

The content of the dropdown is correct so I don't really want to rebuild the list, just want to change the label name.

Am I missing something?

Thanks :)

Comments

  • edited 5:30AM
    Is the field name still author_id? You can always overwrite it in the fuel_forms method of your model:
    $fields['author_id']['label'] = 'Author ID';
  • edited 5:30AM
    Perfect, thanks! I knew there was an easy way to do it :)
Sign In or Register to comment.