mike_henden

Thanks @thats4shaw — got that but I’ve still got an UploadField. Think the problem’s with this line:

  1. $fields->addFieldToTab("Root.Subtitle", new UploadField('TextareaField'));

??

thats4shaw

You don’t want to add a relationship, you just want to add a field. Should be something more like:

  1. private static $db = [
  2. 'Subtitle' => 'Text'
  3. ];
mike_henden

Hey @thats4shaw, working on this now. We’ve got a few tabs on this page, I’ve added a new field Root.Subtitle and rebuild DB, etc. All good except for the fact that I have an Upload Field added instead of a text field! Can you see where I went wrong?

thats4shaw

That’ll get you started but in all honesty I think you’d be better off just adding a new field as suggested above.

mike_henden

@firesphere — yes, the <h2> is inside the content. Which is why I thought $Content.h2 would work… so would I still need to write an extension or is my syntax wrong?