patch file with updated code
Patch file
{# 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) %}
{% 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 .
i have done this directly in the Twig template where in the title field at the time of rendering .
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.
rohitsharma401 → created an issue.
Removed Unused shopify_get_api_client() from ShopifyCollectionBatch class
removed min-height and tested working fiine.
I have used path_alias.repository in my current project also it is working fine for me.
.info.yml also added in patch
Here is the patch with with sass compiled code and also applied successfully .
Above patch (3349307.patch) is not applying directly as it has changes in css file only , have to compile through sass first.
New patch with exactly name change as module name.
Here is the readme file patch for Sentence-case with Drupal Guidelines.
Here is the patch with Proper markdown and Sentence-case with Drupal Guidelines .
Patch for Changing README.txt to README.md as per markdown syntax.