This forum is for assistance with theme development.

menu and menu-item classes in Drupal 8 rc2

Have been constructing a theme for Drupal 8 in beta 9 and are now trying to make it work in Drupal 8 rc2 I understand that a lot has changed.

One thing is that the classes for menues dont show up in my theme - that is "menu" and "menu-item" classes.

For some reason they do show up in Bartic. I cant find any preprossesing script that alters the menu, and my theme is mainly based on Bartic.

I there some kind of setting that enables the menu classes?

TrustedRedirectResponse

Hello everybody,
i am from Switzerland and i am new to Drupal .Firstly, sorry if my english is not very good.

I have a problem with drupal 8. I have installed drupa in local on my pc. I use Wamp.
Every time I clear the cache or install a new module, i have a white page with only : "Redirects to external URLs are not allowed by default, use \Drupal\Core\Routing\TrustedRedirectResponse for it. "

I dont know how to not have this message . Could someone help me step by step to do to not have this message ?

Remove all Classy CSS files at once

Hi there,

I'm currently developing a new theme for Drupal 8. I really like the markup of Classy, using classes like menu--main in the markup. Primarily, I'm just using Classy's markup and implementing my own CSS styles. So, often I need to remove Classy's stylesheets or overwrite styles. I know, that you can remove stylesheets one by one, by adding a line for each stylesheet in .info.yml file, like:

Calendar (monthly) and events in two different views: how to make it work?

Hi,
New to Drupal and this forum, and I am creating my first Drupal 7 theme. This question, or similar, may have been asked in the past, so my apologies if it turns out to be the case!

I have done the followings:

DRUPAL 8 AJAX Form in TWIG Template

I'm working on my first Drupal 8 site and I'm having trouble with the php ajax forms when I place them into twig templates.

For example, I'll access the form using the path and the ajax events will work.

When I access the form rendered on a twig template the ajax events won't fire.
To get the form in the TWIG template, I'm using a preproccess_html hook and loading the form with the drupal form builder.

My question is how do I get the AJAX events to fire when rendering my form in a twig template? Do I need to create a twig extension?

Listing Drupal taxanomy terms in template

I want to list a vocabulary terms as following format

<ul id="vid1">
<li>term1</li>
<li>term2
  <ul>
    <li>term2-child1</li>
    <li>term2-child2</li>
  </ul>
</li>
<li>term3
  <ul>
    <li>term3-child1</li>
    <li>term3-child2</li>
  </ul>
</li>
</ul>

How can I modify the following code to meet my requirement

Pages

Subscribe with RSS Subscribe to RSS - Theme development