I'm trying to code a block plugin that will send variable values to the template based on the current URL. I have the block working and displaying for the most part but I'm having trouble getting the path I need to compare to. I've tried looking through the docs and googling but so much of the info is outdated for a Drupal 10 project. My problem is I don't seem to be able to get the services I want via dependency injection in a block and the services I managed to use don't actually give me the path alias that I'm looking for. I'm currently accessing the path info like so:
I'm in Drupal 10 and have an ajax callback where I need it to return two fields. I've gotten this to partially work, but am running into an inconsistency depending on if the field is at the top level or under a tab via form display. In the below example, field_people in form display is a top level field, and field_featured is nested under a tab via form display.
I have a Drupal 10 site in which most nodes are locked to authenticated users. If an anonymous user lands on a locked page, they are prompted with 403 page with login block containing an SimpleSAML Federated login link (SSO), and a username and password field (for Drupal-created users). I'd like either sign-in method to reroute the user back to the node they were on upon successful login. Currently, it routes to /user/[username].
I’m facing an issue when selecting images while creating content. Two options are available—"Upload Images" and "File Listing." The "File Listing" option is not working as expected. However, the entity browser view is showing the correct preview, and the widget settings for both options (DropzoneJS for upload and a view for file listing) are properly configured. I’m using the View display as "File Entity Browser: Entity Browser."
I have a pretty large webform which is submitting fine. Owners of the site now want to levy a charge for submitting the form by adding an Add To Cart button.
I don't want to create a whole product to include all the webform fields but will need the new product to include a couple of the existing webform field values.
I'm not sure how to go about doing this. All help appreciated.