Currently when I link something with line breaks, like poetry, the text in the link preview appears all on one line in applications like Discord. Is there a way to make sure link previews show line breaks?
Can you clarify how you are doing this. What do you mean "when I link something with line breaks". Do you mean enter text with line breaks in the Body of a page? If so, are you using Filtered Text and CKEditor (which are the default for Body)? I'm trying to enter text with line breaks in the Body using "Filtered Text" and CKEditor. When I click Preview it shows correctly.
Sorry, I really don't know how you are making Backdrop show a link preview like the one you posted - never done that before. Is this in a textarea field? Or what kind of field?
Hi @Gnome and welcome to Backdrop
When I create custom layout templates I put them in /layouts/custom/my_layout
Note: you can split modules and layouts between contrib and custom...
Posted3 hours 50 min ago by Martin Price | System Horizons Ltd (yorkshirepudding) on:
This post explains how to do this in Drupal 7. In Backdrop, File Entity is already part of core. You will need to download and install module Views Field View.
https://drupal.stackexchange...
Posted1 day 11 hours ago by Alejandro Cremaschi (argiepiano) on:
After alot of trials, i have done the obvious and translated the whole block for different languages with each property condition as follows:
->propertyCondition('langcode', 'en...
Thanks so much! It's working now:
I was able to transfer the docroot files to the containing directory without the need for a second database or any manual configuration export/import/sync...
Ah, I see. Sorry, I hadn't clicked the link and assumed it was the instructions for upgrading from Drupal 7.
If you are simply copying a site from one location on a server to another, the...
Comments
Hi CurrentBias,
Can you clarify how you are doing this. What do you mean "when I link something with line breaks". Do you mean enter text with line breaks in the Body of a page? If so, are you using Filtered Text and CKEditor (which are the default for Body)? I'm trying to enter text with line breaks in the Body using "Filtered Text" and CKEditor. When I click Preview it shows correctly.
Thanks for the reply! To clarify, I mean the opengraph link preview that appears when a link is posted somewhere like Discord -- here's an example:
The post itself has line breaks, but the preview does not -- I'm wondering how to make the preview display the line breaks as well
Sorry, I really don't know how you are making Backdrop show a link preview like the one you posted - never done that before. Is this in a textarea field? Or what kind of field?
Does it display the same as a link preview in other platforms?
Perhaps it is just discord discarding the markup?