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

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

Constant login details

When opening the site the last users details are visible in the login box. I heard 'login register path' would fix it so I tried to download but there doesn't seem to be a Drupal 7 version. Any advice would be very welcome.

PHP Code with Drupal 10

Hi. 

I wanted to know if it is possible to insert php code into pages under Drupal 10.

I create a text editor with None but it doesn't recognize the code and I don't know what else to try.
Thank you very much in advance

Pages

Subscribe with RSS Subscribe to RSS - General discussion