By techietonya on
I had someone set up a website using Drupal and it really isn't a good fit but we are trying to make it work. I have a few contact forms on my site that are just that...contact forms, but the heading says "Create Contact" and "Create Entry"....how do I change these so that create goes away??
the url is www.laughablenewsFL.com
Comments
Well you can use
Well you can use drual_set_title() to brutally over ride the title, but what I don't get is why use CCK to build a contact form?
Why not use Webform or extend the built in Contact module?
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
Wish I knew...
I thought this was a strange way of doing it to but its how the guy did it for me....how would using the contact module differ?
The quick and dirty way is
The quick and dirty way is to edit the file modules/node/node.pages.inc line 57 and change
Create @nameto just@name, or even better something likeNew @nameorSubmit @namebecause this change will affect all the content creation forms throughout your site and a name alone may be confusing.The catch is that whenever you need to update Drupal for bug fixes, security, or new feature, you will need to remember to do this again.
One clean way is to enable the locale module, go to the /admin/build/translate page, add a language, say "Custom English", make it the default language, click the "Search" tab, search for
Create @name(watch out, this is a case-sensitive search), and "translate" it to@nameorNew @nameor whatever.Thanks
Thank you!
Good thinking cog.rusty,
To use the contact form module just go to the modules page and enable it, then set some categories (which appear in a drop down like your current form).
Big difference is the contact form submissions won't be saved in the database as a node.
If you want your contact form submissions saved in the database you can use the Webform module, a little trickier to set up (not that hard) which saves the submissions in the database, allows you to download them in a CSV file and it emails you & anyone else you want as per normal. Webform would be the bog standard approach to advanced contact forms and for those that want to save the form data.
@cog.rusty, I've been using the String overrides module as well, that should do the job, found its much less resource intensive than the Locale module.
Normally I would just use drupal_set_title(), ala...
Pimp your Drupal 8 Toolbar - make it badass.
Adaptivetheme - theming system for people who don't code.
Yes, stringoverrides seems
Yes, stringoverrides seems good. It is just that I always use the core locale module anyway, because I need it for other reasons.
And using the arg() checking method in a theme template has the benefit that you can change the title only on the specific pages that you want.