Break Tags in Menu Items

Hi , I want to add break tags in menu item titles.

I added one menu item with title as "test <br/> cases". But it is not considering html tags in title. It is displaying as normal text.

my menu-main.html.twig file is like this.

Create New Entity

Hi Folks,

I have created a custom content type, "Album". Within Album I have title, description, date, and a reference to another custom content type, "Item".

When adding Items to an Album, I would like the user to be able to create the Items on the fly opposed to creating them all prior to creating the Album. I have the "Create referenced entities if they don't already exist" checkbox, checked. However when creating the Items within the Album, I am not provided the opportunity to enter any information about the Items other than the Title.

Installing drush on Mac: should I install composer via homebrew, or "by hand"

I'm in the process of setting up my local dev environment from scratch, and am following Karen Stevenson's tutorial on how to install multiple versions of drush: https://www.lullabot.com/articles/switching-drush-versions

Fields integer statement in twig template

Hello, I wanted to make a condition on an integer field. but the conditions do not work.
{% for item in items %}
    <div{{ attributes }}>{{ item.content }}
        {% if item.content   > 1 %}
            bedrooms
        {% else %}
            bedroom
        {% endif %}
    </div>
{% endfor %}
Do you have a solution please?

Thank you

Sorting image.

I'm a bit tired of image sorting.
An album I have uploaded contains 123 photos that, after upload, are not in order.
Is there option in content type to add a field or ... that can help move the images in order.
That's the overview I'm missing when I use the standard content type.
At the workstation I use CaptureOne and in Drupal Juicebox.

Inline conditional display / Dynamic content

I think I'm missing something.

I'd like to show a different message (in the middle of some content) to authenticated and unauthenticated users, or users with different roles.

Does Drupal expect me to create a block for each role and set appropriate permissions so that the correct one displays?

Or can I incorporate simple logic in my content somehow?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x