Instead of using the ‘standard’ custom fields in exp_weblog_data, I would want to use a custom field in exp_weblog_titles. The reason for this is performance.
I have multiple weblogs (with different custom field groups) that all should have one and the same additional custom field on which I can filter.
If I add a field to the table exp_weblog_data and make it indexed (or use the existing pentry_id field), then I can filter all entries very fast on that field.
So reading is easy but how do I write to this field?
I will never use the CP but only the SAEF to write new entries. Simply adding the field in the entry form does not work.
I first looked into mod.weblog_standalone.php but do not see the DB insert happening there.
I’m now looking into cp.publish.php where I see a DB insert. I guess I’ll have to hack this one but I’m not sure this is the right place or how the data moves from the SAEF form to here.
Anyone knows what would need to be done where?
Thanks