Hi.
I have used SQL Query field, along with live value of processing->SQL query to fetch a specific value from a table. This value shows when creating a new content item, but not when I edit.
The storage of the SQL query field is set to none, as it is just to read a value from DB when creating/editing a content item.
I use this value to show/hide fields in the site form, so it's just perfect that it shows up when creating a new item - but I still need this value to show the right fields when editing a item.
What I'm trying to do is to set a site wide variable in another content type. This item is always stored in the db with the same ID. Therefor all I need is to fetch and use the same value each time:
SELECT value_to_fetch AS value FROM #__table_to_fetch_from WHERE id=1
This works on creating new, but not edit?