Form redirect using setRedirect

Hi,

I have 2 content types: ContentType1 and ContentType2. After filling out the fields for ContentType2 and clicking the save button, I have been asked to redirect to ContentType1 page using setRedirect in the hook_form_alter().

So I have used something like this, but the redirect does not work:

function mymodule_form_alter(&$form, FormStateInterface $form_state, $form_id) {

if($form_id == 'node_text_form') {

Mark color & size attributes selected

Hi everyone! Please help!

In my drupal 8 commerce site I need that color and size attributes show marked when users select them. I´ve tried unsuccesfully this jquery script:

jQuery("document").ready(function()
{	
	    jQuery(".color_field__swatch--circle").click(function(){
		jQuery("this").show(\sites\default\files\imagencolores\S.jpg});
      });
		      
 });

Any help is very highly appreciate!

Many thanks for your time! :)

How to create a CSS framework theme (non-bootstrap)

Hello,

may be you would have some suggestions examples - how to implement CSS Framework for a Drupal 8 theme...

I have never yet created a new Drupal themes, just been customizing some from Drupal ready submitted themes....

Warning persists after removing write permissions

Hi

I installed Varbase 8.7.0 distribution. After the installation, I receive the following warning:

"All necessary changes to sites/default and sites/default/settings.php have been made, so you should remove write permissions to them now in order to avoid security risks. "

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x