So I have built a custom page programatically and that's where my programming knowledge runs dry. I have a webform with ID "provide_a_quote" and want to embed it in to the page "configureoffer". See the code I already have below:
paymentform.routing.yaml
example.my_page:
path: '/configureoffer'
defaults:
_controller: '\Drupal\paymentform\Controller\ExampleController::myPage'
_title: 'My first page in D8'
requirements:
_permission: 'access content'
Hi, I'm new to drupal and I just installed a radix subtheme based on bootstrap 4. Everything was going fine but now the front page isn't displaying the titles of my articles. What can I do about that ?
I am trying to add a "Save & Send Email" button to both the Node Add and Node Edit forms of a Content Type to give the Current User the option of sending themselves an email after saving the content. I have put together code that works to add the button and to generate the email, but I cannot figure out how to have the button (#submit) trigger sending the email. Could someone please help me tie them together? I am also not sure how (if?) to implement both the hook_entity_insert and hook_entity_update in the same module. The code I have so far is:
Do you have a solution to customize the media that is displayed with the "Media Library" core module. In fact, by default, all media of the same type are presented.
I tried by creating a view which restricts this in order to use it for the reference type of the fields but it doesn't work and it even presents the media of other types in the form of tabs ... (even if the view restricts the types of media)
I'm trying to set up a PinPayments hosted fields payment form and I don't what I'm doing wrong but the button is not doing anything. Doesn't reload the page, doesn't do anything. The payment.php file is working correctly as when I manually enter that in to the URL it works fine. I've dropped the HTML in to the "full HTML" editor part and it's all rendering fine, it's just not working on submit.
The form is sat within a Drupal CMS. When I drop the exact same HTML and JS in to a simple .html file it the submit button then actually works. So I'm completely stumped.
How to exclude the current page from the results of a view?
I created a view based on content in a block with the contextual filters by default based on taxonomy.
Then I put my block in the region of my choice.
That works well,
but in the results I would like to exclude the current page (current node) content from the results.
But I don't know how to pick up the current nid in filter criterias (in the views configuration window, I'm not familiar with coding).