This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Disallow edit field

I want to prohibit editing the field link to the taxonomy term if it is not empty. I try this, but I do not understand why the module is not working. Please tell me where I made a mistake

function field_acces_if_form_user_profile_form_alter(&$form, &$form_state, $form_id) {

Node menu link is inconsistent with active trail when multiple items point to the same node.

Node menu link is inconsistent with active trail when multiple items point to the same node.

When same node is applied to multiple menu items then inActiveTrail is coming true for the first one instead of the current menu clicked one.

Git & private modules

I may be confusing myself here. I've read countless articles on putting the Drupal 8 site configuration into Git and using this to feed changes form development through test to live and this is my plan, however, I'm trying to go a little further but can't seem to find any useful documentation.

Redirects to external URLs are not allowed by default, use \Drupal\Core\Routing\TrustedRedirectResponse for it.

Hi.

After I used mod_rewrite 
RewriteCond %{HTTP_HOST} ^domain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.domain\.com$
RewriteRule "^(.*)$" "/hk/$1"

to redirect all the request of my Drupal sites to the folder.

The error:

Redirects to external URLs are not allowed by default, use \Drupal\Core\Routing\TrustedRedirectResponse for it.

Ckeditor plugin : unable to retrive variable value

Hi everyone!

I'm creating a new CKEDITOR plugin and currently working on dialog features. I want to get the value of the selected item in the dropdown menu (ID choseLang) and retrive it in a variable 'selectLang' that can be used in commit function of the textfield (ID spanTitle).

But my piece of code to do so is not working. Any idea about how to solve it?

How to add an element at the end of the url ?

How to add an element at the end of the url ?

The current path is :

> https://www.domaine.com/store/3

In the link below, I want to add at the end of the link `/cgv`

> https://www.domaine.com/store/3/cgv

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions