This forum is for assistance with theme development.

Drupal 10 - How to insert Views Block to node (auto)

Hi! Can you help me? How to insert Views Block to node (auto) without modules.

I have Content Type - Articles  I create tempalte page--article.html.twig and paste code from page.html.twig

My Views Machine name random_article block_1

What should i do next?

Extra Menu Elements like Images (drupal 10)

Using Menu Item Extras module, it is possible to add new fields to the menu items.

But when dealing with the Olivero theme, newly added fields are not shown.

The invocation method of the olivero.theme:

Suggestions for an Aggregation Theme?

I'm building a service that aggregates and/or syndicates news. I'm open to theme recommendations. The features needed: compatibility with the Feeds module, the ability to search by location and/or topic, easy creation of either a full news story or a short brief. The theme would need to be clean and easily navigated by users.

I've done some checking and there a several directory themes that partially meet those requirements, but they are largely based on providing business overviews.

Arrangement of fields

In a form created by the cli, fields are displayed with the label above and the input below.
I need to display, in this manner, multiple fields horizontally
I have done various tests with flex

...['#prefix'] = '<div class="flex-container-row">' ;

but I did not succeed
The CSS is this
 

.flex-container-row {
  display: flex;
  flex-direction: row;
  margin-top:20px;
 }

Accessing the fields of another internal page from within preprocess_field

I'm working on a theme that has a field color_theme which is set by authors on pages. This allows them to group similar pages together within a certain color style - eg. background colors, pullquotes etc.

Within other pages I am using the fantastic paragraphs module to create a page builder of sorts, and one of the fields which is used a lot is a 'button' field, effectively a link.

Within preprocess_field I'd like to set a variable for the twig template based on the logic below:

Help me with editing css

I'm so frustrated with customizing the look of a Drupal theme I'm thinking of switching to another platform. The problem is seemingly simple: I want to change the styling of a starter theme. The problem is after entering the css to make the type size of an article body larger, no change is seen.  I've tried Stark, which I thought would be an extremely simple way to change the css, but that was not so. Any suggestions on how to find a theme with styling that can easily be changed?

Pages

Subscribe with RSS Subscribe to RSS - Theme development