🇮🇳India @rohitsharma401

Account created on 16 November 2021, about 3 years ago
#

Recent comments

🇮🇳India rohitsharma401

{# Check if the field has content #}
{% if content.field_long_text %}
{# Display the trimmed version of the text #}
{% set trimmed_text = content.field_long_text['#text']|slice(0, 200) %}

{{ trimmed_text }}
{% if content.field_long_text['#text']|length > 200 %}
Read more
{% endif %}

{% endif %}

i think you are trying to do like this , but by this you will be redirecting to the page or node url only where you can get the full content of the page .

You need to work with JS for showing the whole content in the same page by clicking on the "Read More" button .

🇮🇳India rohitsharma401

i have done this directly in the Twig template where in the title field at the time of rendering .

🇮🇳India rohitsharma401

we can use
|replace({'

': '', '

': ''})
directly in the twig file where we are rendering.

The replace filter is used to remove specific HTML tags.{'

': '', '

': ''} specifies that any

tags and their corresponding closing

tags should be replaced with an empty string, effectively removing them.

I will add a patch file for this.

🇮🇳India rohitsharma401

Removed Unused shopify_get_api_client() from ShopifyCollectionBatch class

🇮🇳India rohitsharma401

I have used path_alias.repository in my current project also it is working fine for me.

🇮🇳India rohitsharma401

Here is the patch with with sass compiled code and also applied successfully .

🇮🇳India rohitsharma401

Above patch (3349307.patch) is not applying directly as it has changes in css file only , have to compile through sass first.

🇮🇳India rohitsharma401

Here is the readme file patch for Sentence-case with Drupal Guidelines.

🇮🇳India rohitsharma401

Here is the patch with Proper markdown and Sentence-case with Drupal Guidelines .

🇮🇳India rohitsharma401

Patch for Changing README.txt to README.md as per markdown syntax.

Production build 0.71.5 2024