modxmodx-revolution

Modx - Add custom field to mod_site_content


Is it possible to add a custom field to modx_site_content? What I'm trying to accomplish, is to add a field t_id. I've already added this in the database. However, when I save it using: $object->save(); nothing is saved for that field, it just comes up as Null.

The version I'm using is: MODX Revolution 2.2.4-pl (June 14, 2012)


Solution

  • Actually - I've answered that question before. You want to create a separate table and schema.

    modx evolution external database

    however - it looks like you want to add a field so that you can call it as part of the page/template in modx? You may have to write a plugin to extract that data at the same time as the resource.