There is a Drupal 7 contrib module that "lets the administrator see all administration pages in her preferred language" and which could be ported to Backdrop: https://www.drupal.org/project/...
Posted5 days 20 hours ago by Olaf Grabienski (Olafski) on:
@stpaultim – You're right: my approach affects also the main menu. I guess, because menus are also considered as user interface (not as content).
@findlabnet – If I didn't miss anything,...
Posted5 days 20 hours ago by Olaf Grabienski (Olafski) on:
@olaf - Sorry, but I don't think that works. I tried it and you are correct, with this change, I can switch from the English version to the German version of a page, without changing the entire...
Use case is an English speaking support person working on a multilingual site and fixing bugs with the French translation of the content.
I found one solution for your use...
Posted6 days 8 hours ago by Olaf Grabienski (Olafski) 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?