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

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:

In page anchor links cut off top of page

Just a shot in the dark here but I've been fighting with an issue trying to set up an anchor link from a link field that brings you down to a section of the page. The problem is it cuts off everything above it and you can't scroll up anymore. This is probably more of a CSS/markup issue rather than Drupal but I wanted to ask in case someone knows of an issue doing this in Drupal. Thx

Symfony\Component\Routing\Exception\RouteNotFoundException Error

Hi All,

I am new in D8, I just installed drupal and created on custom module, worked fine till now!

than I added first_module.links.menu.yml file in my module(seeing code from net), following is code:

first_module.my_page:
title: 'My First menu D8'
description: 'Example how to make admin setting page menu link, I am writting this i module_name.links.menu.yml file'
parent: system.admin_config_development
route: first_module.my_page
weight: 100

Than it started showing following error:

Pages

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