This forum is for assistance with theme development.

Get rid of 2nd menu level using bootstrap base theme

Hi,

so all this is very confusing to me. It seems I just don't get the way drupal does things. So, when creating a main menu like:

Foo
-bar1
-bar2

it generates by default an ul list containt another ul list. Since it inteprets it as a dropdown. Now, I want this:

Foo
bar1
bar2

Although I created bar1 and bar2 as a submenu. I just want to have one li list with proepr classes etc.

Retrieve the URI of an image field, D8

I feel suddenly dumb... I've not gone through with this today: get the URI of an image field of a custom block.

The documentation and the stackoverflow issues talk about content.field_id.entity.uri to get the URI of an image field.

Sounds stupid, right? But how do you do to get the URI for an image field ? Because in my case, D 8.2, there is not any URI (I use kint, plus Devel). I'd like to use file_url() to render the field as a background.

Regards.

Field group horizontal tabs bootstrap issue

Hi everyone,
I'm writing because i need help about field group module on bootstrap theme.

I'm using:
drupal 8.2.4
bootstrap 8.x-3.1
field group 8.x-1.0-rc6

I have created some tabs (Direction: horizontal) with Field group module but it turns out looking like the accordion.
If I switch back to the default theme Bartik, the tabs works correctly.

How could i resolve this bug/issue?

Thank you very much in advance

André

taxonomy tag link position change

Drupal 8, Picture Reloaded theme (based on Adaptive Theme), test site . I would like to move the taxonomy tag link, which currently is under the page title, to just above the footer.
The taxonomy tag is not rendered via any block, neither can it's position be set through any admin settings. Will I have to delve into advanced theming procedures in order to implement this?

html.twig: using JavaScript/jQuery

I like to use jQuery in twig templates.
What im trying is to retrieve values from textfields like {{ content.body }}

My first idea was to write script tags in the template "node--yamlform.html.twig"
and assign the values to variables like

<script>
var temp = "{{ content.body }}";
console.log(temp);
</script>

But that doesn't work.
I can't go out of the script tags to change something.
Is there a way to do that in the template file?

Thanks for your help!
Stefan

breadcrumbs not working correctly in Drupal 8, w Adaptive Theme & Picture Reloaded

I have a problem with the breadcrumbs not displaying correctly in a Drupal 8 test site, with Picture Reloaded theme 8.x-1.0-rc1.

Pages

Subscribe with RSS Subscribe to RSS - Theme development