I found a snippet somebody posted online, that I'm trying to use to solve a quick problem, but it didn't seem to do anything.
Essentially I have pages that are different translations of the same page. I'd like to have all of them use the same template, currently node--12345.tpl.php , for example.
I have made a view block and the machine name of the view is promoted_slideshow. I want to extend the style of the view block rows so I created a new template file, named block--views-block--promoted-slideshow-block-1.html.twig
I want to override views-view-table.html.twig by add "data-header" as attributes.
Currently my code with td tag is <td{{ column.attributes.addClass(column_classes).setAttribute('data-header', 'column.header') }}>
How to get column.header for each row in that code ?
if i have 5 column as illustrated, i want to print
- NO as 1st column.header
- FIRST NAME as 2nd column.header
- MGR as 3th column.header
- HIRE Date as 4th column.header
- Deptno as 5th column.header
Hi to all, I've a lot of subtheme each one with a custom menù.
the primary links menù structure was made by ul class="menu nav navbar-nav" (bootstrap dropdown menu).
Any new menu has this structure: