This forum is for assistance with theme development.

Blocks, CKEditor adds <p> tag in Druapl8

In Druapl8
I am trying to create a custom block (html code in FULL Text text mode).

CKEditor adds

automatically which is not desirable - extra spacing and end junk

tags.

How can I turn off such auto adding?
Probably it's good to have it disabled for admins and have it enabled for users.

Any piece of advise?

Thank you

Theme D8 contact form email

How should I go about theming the contact form email sent?

I have looked into the Mailsystem and Mime Mail but fail to understand how either of those will help me style the email.

The default e-mail looks like this:
Link to Image

DRUPAL 8 REST API - 403 on creating node via ajax form

Hi,

I'm trying to create nodes of a specific content type using Drupal REST API. I'm using jQuery FullCalendar and a custom form, and sending my informations via jQuery Ajax method.
I have enabled the correct permissions via REST UI module and users permissions to allow anonymous users to POST on this content type. No matter what the method ($.ajax, $.post, vanilla xmlHTTPRequest...) I always get a 403 (forbidden) error.

customize menu local task link

Hello,

I am looking for a way to customize 'edit', 'view', 'delete' links.

I use bootstrap theme, but i use bootstrap v4 styles for it. I want to add 'nav-link' class to each link.

And find a way to display somewhere, not just below post title.

I couldnt find a tutorial about it. Where should i look for this? template parts (twig) or themename.theme file?

Javascript won't load

I've been following along with a couple of the online resources for theming in Drupal 8, and I've gotten as far as making a .info.yml and a .libraries.yml file. I've got the CSS working just fine on the test page I'm working with, but for some reason, none of the Javascript is getting onto the page. As far as I can tell, I've done everything I'm supposed to for it, and I haven't been able to find any online resources that help. Any ideas where I might have gone wrong?

Thanks!

Theme Node Add [Endpoint]

Hi everyone,

I am trying to adapt the design of an adding content page (node ​​/ add / endpoint ) .

So I created a page that notes page - node - add - endpoint.tpl.php in my theme templates folder.

But how do you get the content add form to my template file ?

When i do a "var_dump($form)", it's answer "null", so i don't understand what happened and i don't find any solution to transmit my form value to the view....

Thank for your help !

Pages

Subscribe with RSS Subscribe to RSS - Theme development