This forum is for module development and code related questions, not general module support. For general support, use the post installation forum.

Custom Access Check

I have created a custom access check as described in this link (https://www.drupal.org/docs/8/api/routing-system/access-checking-on-routes/advanced-route-access-checking). I also create custom menu link linked to a route which uses the access check, so therefore if they do not have access, it will not appear.

However, I have noticed that when I am logged in as an admin, this access check is being skipped, showing the link.

Access keys of a Json object in a twig file

Hi,

I have a REST response that looks like this:

Array
(
    [0] => Array
        (
            [nid] => 24503
            [title] => 13.10
            [field_gita_10589_text] => Array
                (
                    [content] => some value

                          )

)

the key [field_gita_10589_text] is not fixed, and will change depending on checkboxes selected on a form. 

I have a twig file in which I am accessing the field_gita_10589_text.content like this:

Storybook for Drupal

So, I've been working on using Drupal as a story archive (Fanfiction) since I found the project several years ago. ANd now I'm trying to create a module that takes all the configuration I would do for a page to present story related content and offer it up.

I of course want to keep the dependencies down, or keep the number of non-core dependecies to a minimum. Right now it's looking like I will absolutly have to have paragraphs, as I want to ensure a person can create a story with a full layout, or add illustrations to a page. Even have a few entries that are just comics. 

Attach an array to the url and GET each parameter

Hi,

I have an array that looks like this:

sourceid = [[0] => 10586, [1] => 10589, [2] => 10605]

I want to attach this array as url parameters such that my url looks like:

/page/text?sourceid = 10586 & sourceid = 10589 & sourceid = 10605

Later I want to recover these sourceid using $_GET['sourceid] in a different function.

AWS Caching for Drupal 8.

I already setup Redis cache with node type 'cache.t2.medium' on AWS

Below configuration I have in Drupal settings.php

Calling api after clicking submit button on a form

Hi,

I have coded some rest apis that are included in the folder src/Plugin/rest/resource/ . I have made a custom form where after selecting some options and clicking the submit button, I want to call the respective apis , so that the content get displayed.

I have looked for examples online, but I have not found anything helpful. Could you please let me know how can I go about this?

Thanks,

Pages

Subscribe with RSS Subscribe to RSS - Module Development and Code Questions