@yorkshirepudding, In the end I fixed it by deleting the config/active folder contents, copying the config/staging/ files into config/active, importing the database again and clearing the caches...
Posted3 days 15 hours ago by Francis Greaves (themetman) on:
Hi @yorkshirepudding!
Nothing in admin/reports/fields or admin/config/development/configuration/single/export
There is a field in the database though.
Should I just copy the item...
Posted3 days 21 hours ago by Francis Greaves (themetman) on:
That is not a core field so my guess is it must exist, though perhaps it is a field defined but without any instances.
A few places to check:
admin/reports/fields - is it...
Posted3 days 21 hours ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:
Comments
This issue may be related (and it looks like it has a PR that can be tested):
https://github.com/backdrop/backdrop-issues/issues/2134
That PR wont be in production any time soon. But you could make a quick access condition module, its quite simple. Use as a guide: https://github.com/backdrop/backdrop/blob/1.x/core/modules/layout/plugins/access/path_layout_access.inc or https://github.com/backdrop-contrib/block_scheduler
Your form function would probably be something like:
$form['nid'] = array( '#type' => 'textfield', '#title' => t('Node NID'), '#default_value' => isset($this->settings['nid']) ? $this->settings['nid'] : '', ); $form['term'] = array( '#type' => 'textfield', '#title' => t('Term'), '#default_value' => isset($this->settings['term']) ? $this->settings['term'] : '', );And your access function:
function checkAccess() { $entity = $this->contexts[$this->entity_type]->data; return isset($entity->{$this->settings['term']}); }Some adjustment may be necessary.
As an easy workaround without any coding Views could be your friend.
We'd need some more info about your use-case though. Could you describe a bit more, please?