Pulling data from database
Permalink
Hi,
I've copied the image block as I want to mod it and add some extra stuff. I've done so now and I can see that the image id and the externalLink values are coming through somehow, but the new fields I've added to the database aren't.
Now, I know I cold just do "select * from tablename where bid = X" but, I wanted to know if I was missing something and it was somehow auto selecting the data in a way that I am too stupid to spot...
Thanks,
Mike
I've copied the image block as I want to mod it and add some extra stuff. I've done so now and I can see that the image id and the externalLink values are coming through somehow, but the new fields I've added to the database aren't.
Now, I know I cold just do "select * from tablename where bid = X" but, I wanted to know if I was missing something and it was somehow auto selecting the data in a way that I am too stupid to spot...
Thanks,
Mike
Did you update db.xml properly and reload the block? Concrete5 may not know about your new fields if you just manually added them with a database management program.
I added the new fields, then removed and reinstalled the block.
Might that be something to do with it?
Might that be something to do with it?
Then we can have a look and see what's going o n.