Drupal 7 webform - drupal-7

Good Morning.
I'm working on a website built with drupal 7 made by another person.
I'm trying to change the url of a page where there is a webform. If i do it, the page is still there with the new url, but the webform disappears. How can I avoid that?
Thanks

That webform probably was set as block to be displayed on certain page URLs only.
You can check in the block section (admin/structure/block), if that webform exist, click configure and see the "Visibility settings" at the bottom. You can change the restricted URL in that settings to "node/[nid]" format instead of the friendly URL so it will still work if you change the URL again in the future.

Related

Drupal 9 - Two different URL's work for same page

I have a Drupal 9.x version site, as an example whose page URL is like : http://www.example.com/general
but we need that URL to be work as http://www.example.com/something/general also.
It means, my every page of my site to be work (both URL's) with or without PRE-FIX word before of every page name.
Reason: I am looking this feature is, my website page has to load into other website pages. Which means with an iframe I am planning to display the drupal 9.x content into other website. With this PREFIX word if we are calling the URL the header, footer, sidebar of the present page site will be hidden.
If with out the PREFIX word if i am looking the website, the header, footer, sidebar will be displayed normally.
Both URLs should work:
I have about 550+ content pages, and many of our content pages are coming from custom modules, views.
I tried with URL alias, If i have go with this then I have to add these all 550+ content pages URL in our URL alias, that will not work for me.
Is there any other way around that i can achieve the same with minimum effort.
Please suggest me the solution, It will be very helpful for me.

How do I fix a 1/2 broken DNN path?

Somehow my DNN has a broken path a particular url serves pages, but doesn't work for delete or advanced options (delivers a 404 error)
The taburls table has no entries for this tab.
If I change the url through the tabs table then I'm able to delete the page without issue.
I tried accessing the page options via tabid, but the tabid gets converted to the friendly name and then 404s.
I tried turning off friendly urls in my web.config but I may have done it wrong since the entire site would not load (yellowscreen of death)
I'm wondering where DNN is storing this path that is breaking the advanced options of whatever page is at the path.
How do I fix this url so it displays page options and lets me delete pages?
First thing I would try is going to the Admin/Page Management screen, can you make the changes you need to via that interface? If so, after making the changes, are you able to access the page and all the features/options correctly?
If that doesn't work, check the TabPath column in the TABS table to see if there are any bad paths in there for specific pages that you are having problems with.

Webform: how to set confirmation message

I'm trying to set a confirmation message on my webform.
I'm using the standard redirect to confirmation page option when a form is submitted.
I clicked every single link in my webform backend and can't find it anywhere. All search results regarding this issue lead to programming a custom module to display a confirmation message in a popup or redirect to a different confirmation page. I don't want to do any of that, just a simple edit of the standard confirmation message.
I've looked through the webform-confirmation.tpl.php file in the module and see that it just prints a $confirmation_message variable. I don't want to edit it there as I want to be able to translate the string in the drupal admin section.
Surely this must be available somewhere?
When you edit the webform there are four tabs at top right side: Display, Edit, Webform and Results (look at screenshot: https://dl.dropboxusercontent.com/u/207644/screenshot-webform.jpg). Click on Webform tab. If you don't see this tab you have problem with user rights maybe.
On Webform tab are 3 subtabs: Form components, E-mails and Form settings. You must click on third - Form settings. Finally there is section "Submission settings" where you can setup confirmation message.

Edit content at URL in Drupal 7

I'm a complete COMPLETE noob at Drupal.
I've been handed a large very customized Drupal 7 site after our admin quit. I have tons of WP experience, but zilch in Drupal.
I've been asked to edit a page that exists at:
http://my.drupalsite.com/[page]
The page functions only to redirect to:
http://my.othersite.com/
But, I need to change part of the way it redirects. Normally (as in, the one other time I did it) to edit a Drupal page, I just go to the page logged in as an admin and click "edit". Since this is a redirect page, I can't really do this. The /admin/content section has 83 pages of 25 items each with no way for me to search on anything and no way to tell from what the guy called the page as to what page actually does this redirect. I'll be a monkey's uncle if I'm going to click on every darn one of them and then click the "URL path settings" tab at the bottom to see which one of these suckers is the page I'm after.
Surely this is simple for even a typical Drupal novice... like I said though, complete noob.
Any ideas? Thanks!
There are a few modules that can handle redirection or even simple editing of a path.
You can look at pathauto
https://drupal.org/project/pathauto
On that page you should find other recommendations such as the Global Redirect & Redirect modules. I'm pretty sure some of these modules will simplify your task. You should be able to take an existing path and redirect it to wherever you wish, without having to dig in each URL alias on the node edit page.
It's always difficult to give specific advice without knowing more, but , for instance, Pathauto can help you change the path of a specific content type to a specific pattern. That can come very handy if you need to change a bunch of pages with a similar structure.

adding two webform to web site

I have used a webform to my drupal 7 website.And now I want to put a webform to another page(two webforms in different web pages).How can i configure webform for it?
Have you used, webform as node, or block? If u have used, webform as block, then u goto admin/block and then configure.
From that page, you can configure, where u want the page to dispaly web form
Create another webform just as u created the previous one.
Log in to your website with admin privileges and click on the Add Content > Webform from the admin menu.
Create a new webform here. After this is saved, you can add the needed form elements.
This new webform is a node and will be listed in the content list page. If you want to render this webform as a block, Go to particular webform, > Edit > Form settings and in the Advanced settings tab, Check the "Available as block" checkbox.
Hope this helps..

Resources