This forum is for less technical discussions about the Drupal project, not for support questions.

Problem with CKEditor

Hello,

I would like to display formatted html inserted with CKeditor in a twig template but when I apply a raw twig filter to my variable it doesn't work...

<div class="description-plus">{{ packInfo.descriptionFull|raw|nl2br }}</div>

An other dev said me to use packInfo.descriptionFull.value but it's also not working

How to fix this to have strong paragraphs, a link correctly formatted... ?

Thanks.

Drupal 10's module designed for extracting text from PDFs | Emmanuel Katto

Hello everyone, Myself Emmanuel Katto, 

I am wondering if there is a module that can extract text from a PDF and import or create a standard article or node using the extracted text. 

I have searched through several modules, but it seems that most of them are outdated and not actively maintained.

Do you have any suggestions for modules that would work with Drupal 10?

Thank you!

Two modules that do the same thing - do you want them both?

Hi, 

I'm new to the dev side of Drupal, although my library (I'm a librarian at a university) has used it for many years.

I am working with two independent teams of computer science students who are both developing a Drupal 10 module that does essentially the same thing (building to the same list of functional requirements), although the two teams are going to end up with differently designed products.

Integrating an External Website/Game into Drupal 9 as page or block.

In simpler terms, can Drupal 9 handle having the website files (index, script, css, etc.) in a folder and loading this page onto a Drupal site so that it functions the same way? And can we input data into the database in such a way that we can retrieve it with Drupal (for the profile page, where we list the user's details alongside their course results)? I plan to implement the profile page with a module, but if that doesn't work, I'll resort to a solution similar to the games.

Aside from the course-based solution, I also need to include two other games, which I'd like to load onto the site similarly (also saving player statistics for those games).

Conditional redirection from a webform page to a submission

How to set such a thing in Drupal 10.2 for a following case?

If users have submissions, show them their submissions' pages for further editing, if not, show the webform page instead.

All authenticated users are given permission to edit their own submissions and view each other's.

That redirect is aimed to fulfill a directive "One submission per user", making those easier to read, export, search and edit for the authorized personnel. Some functions, or even a compatible module would suit well...

How to load the content of JSON local files into Twig

Hello, everyone

I have a difficult problem, How to load the content of JSON files into Twig.

json file: /sites/default/files/json/test.json

{
    "nid":"123",
    "title":"it is a title"
}

The following cannot be extracted normally:

{% set jsondata = "/sites/default/files/json/test.json" | json_decode %}
{% set jsondata = source("/sites/default/files/json/test.json") | json_decode %}
{% set jsondata = include("/sites/default/files/json/test.json") | json_decode %}

How it do?

Thanks

Pages

Subscribe with RSS Subscribe to RSS - General discussion