Language Switcher Block Translation Question

May be a simple question.

1 - I have a Language block that switches between English and Spanish

2 - The "English" site looks like this: Language | English | Español

3- I would like the Spanish translation site to look like this: Idioma | Inglés | Español

4 - I changed Language to Idioma in the Black translation.

How to check if current page is a contact form?

In page.html.twig, I want to have a different sized column (bootstrap theme).

For that, I wanted to know if current page is a contact page or not. And, for taxonomy too.

In twig, I tried: url('<current>'), which gives me current URL.

But, when I tried twig string functions like:

{% if url('<current>') ends with 'contact' %}

I tried "in" too. But, every function returns false.

Is there any better way to know if current page is contact/taxonomy page?

Search API module help - calculated fields not searchable/indexed?

Hi, I have installed and set up the Search API module and it is mostly working.

I only want to be indexing and searching specific fields, so in my index field management I have removed 'Rendered HTML output (rendered_item) ' and instead added all the fields I do want searchable, including 'title' and 'field_specification_text', all set to type 'fulltext'
 

I've run my index and can successfully retrieve content that has a partial match with the title.

sign up referral module

Hi,

I need a simple sign up referral module.

1) User A (each user) signs up and is given a unique referral link

2) User B sees it and signs up with the given referral link.

3) User A earns point (example 1 point) per referral.

4) User A can see his/her total points available, while admin has the right to add or deduct the point.

Error Message not displaying

Hi, I am using drupal 8 and having the following code for my custom theme's template file, " page.twig.html "

<section{{ content_attributes.addClass(content_classes) }}>

        {# Highlighted #}
        {% if page.highlighted %}
          {% block highlighted %}
            <div class="highlighted">{{ page.highlighted }}  </div>
          {% endblock %}
        {% endif %}

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x