menu - alter the validation of field link

Hello,

I have to use tokens in url field in menu UI.

I can override the validation of element with

function my_module_form_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id) {
    switch ($form_id) {
        case 'menu_link_content_menu_link_content_form' :
            $form['link']['#element_validate'] = array( '_my_module_menu_link_uri_validate',  );
        break;
    }
}

but there is still the constraints

Field - display management - view

since german its a complex language i have a problem in USER'S

when I name a field : short description of the person

i would need different naming on (1) manage form display and the view display level.

i.e. for
(1) give a short summary on your person
(2) summary on user/person

but as far as i have understood only the fieldname is used for this two default displays in users.
would i have to make new view displays
can i make one for the manage form display ?

is there a possibility to manage that

Thanks Lothar

Custom Login page

I am new in Drupal 8. I want to create a new theme to according to my HTML. What is the best practice to integrating a custom build theme to drupal engine.

I have covered all sections in drupal 8 theming tutorial (https://www.drupal.org/theme-guide/8). Now I need to integrate custom login page.

I have added the following hook inside mytheme.theme file

What is a good Localhost server for Windows 8

I am trying to create a website with Appointment system.

Do you know of a good localhost server for Drupal 8 using Windows 8?

Please advise. Thanks

Dynamic Route vs. Caching

Hi all,

I'm currently developing a module that adds a link in the system.admin menu. When a user clicks on that link, he gets redirected to a page that shows the URI of the page of where he clicked on the link.

for example: when the user is on page: /node/13 en clicks on the button, he gets redirected to /mycustompage and that shows the message 'URL: /node/13'.

Drupal 8 Change base URL

Hi,

I've installed Drupal 8 on my NAS running at home using a dynamic DNS URL. My domain registrar allows me to redirect a purchased URL to the dynamic DNS URL. I want to change the base installation URL of my Drupal 8 installation to the purchased URL so that links in Drupal 8 reflect the purchased URL.

How do I go about doing this without re-installing Drupal 8?

Thanks!
DenW

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x