How to get form field (entity_autocomplete) saved value in theme settings form alter?

Hi,

I have a hook function in mytheme.theme 'mytheme_form_system_theme_settings_alter' which alters default form for theme settings.

I can add my custom var and get saved (#type = textfield) value like this:

$form[$group][$setting_code]['#default_value'] = theme_get_setting($setting_code);

But how can I get node id for #type = entity_autocomplete?

I am adding new entity_autocomplete field like this:

Inventory system with order assigned to users

So I'm thinking of the best approach to this.

Drupal 8 comments permalink url

Hi guys 

i want a module like this exactly for drupal 8, or any other way to do the same !!

Comment Fragment

thank you in advance guys

Views, how to have fields of same node appear below each other

Hi, having a blonde moment (day) here :).

I want to create a view table that is a budget with several fields from the same node, ie

====

Producer Fee: 1000

Director: 2000

Total: 3000

====

Want to then (with views aggregator plus) add up the numbers.

Please how do I get the fields to appear below each other, and not columns

[Solved] Remove unwanted menu translation

Hi,

I've installed Drupal in english, and added french language later.

According to the settings in admin/config/regional/language, French is now the default language of the website.

The admin menu is translated in french, which is nice, but the labels of the main navigation menus are translated too, which is a problem.

For example, if the label is "Switch" (as in "Nintendo Switch"), in the menu it appears as "Changer" (a french translation for "to switch).

rewrite reference fields to redirect on original content(node detail page)

i have a paragraph and taxonomy field which is referenced to content type. i am able to index these fields(all content filed, paragraph and taxonomy field using add fields in search api config)

my question is how can i show search result to the user if they search with some paragraph filed or taxonomy field and redirect the user to original content(node detail page) from the search result view page.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x