⚈ Kuopassa.net

Lisää kertomuksia netistä. 摆烂

Custom fields in Images for Textpattern

Oh goodness, this is a complex thing to explain. I had written some instructions how to do the thing suggested at this blog post’s title. It has four steps: 1) altering database scheme by adding new bits and parts to txp_image, 2) adding HTML fields to Images section using jQuery’s prepend, 3) fetching values to those HTML fields from database with Textpattern’s safe_row function, and finally: 4) saving values to database at the same time when currently opened image was saved (using safe_query). But then I saw a new interesting video in YouTube and decided to go watch that.

About the author