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

JSON:API Display Mode?

Is there anyway to see a content types display modes through jsonapi? This would allow be to configure teaser etc. for display on decoupled Drupal. 

Warning: Give to trusted roles only; this permission has security implications.

Views UI: Administer views

I need to add anonymous access for this so that views show up on the JSON:API. 

Is this the best method to see my views on /jsonapi?

What are the security concerns that the message is hinting at?

Hyperlinks clicked in Microsoft Word return access denied Drupal Page with SSO

We use Connect OpenID and Microsoft for Single Sign on. My problem occurs when a user clicks on a hyperlink in Microsoft Word. The user will sign on but the page returns access denied. The users permissions should allow them to access the page. They are able to access when the url is pasted into the browser. The problem is similar to the one described in this link: https://docs.microsoft.com/en-us/office/troubleshoot/office/click-hyperlink-to-sso-website.

Insert values to a database

Hello to everyone

I want to insert values from a field that i have created when i push the button. I have created my database and a table for 2 values.(table name is Formlrs, value 1 is address and value 2 is port). But when i push save button it doesnt work( no reaction)

My code in php is

function buildForm(array $form = NULL , FormStateInterface $form_state = NULL) {
 
 $form['address'] = array(
    '#title' => t('Lrs Address'),
    '#type' => 'textfield',
    '#required' => TRUE,
  );

Replacement pattern

Hello,

I just created a new custom field in View but I would like to use replacement pattern in my created field. Is it possible to do this?

In my example, How can I use replacement pattern in the field "$form['text']"

Thanks in advance for your help

Use hook_views_pre_render() to change field to url link

I want to use hook_views_pre_render() to read in a view and change a field output to a clickable link.

Here is code:

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions