-
AuthorPosts
-
dsinor Friend
dsinor
- Join date:
- July 2014
- Posts:
- 36
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 2 times in 1 posts
February 18, 2015 at 7:29 pm #203920I’m working on a local dev site. xampp. t3_bs3_blank cloned.
I wanted to remove the Subject field from the Contact form.
I edited htdocsclonenamecomponentscom_contactmodelsformscontact.xml
to remove the field name contact_subject at line 23-33.It seems to have worked.
Is this a smart approach, or should I be doing something different?
Good luck recovering from your data loss. Things happens. Life goes on.
Thanks.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
dsinor Frienddsinor
- Join date:
- July 2014
- Posts:
- 36
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 2 times in 1 posts
February 21, 2015 at 8:37 am #560183Thanks Saguaros!
How do I edit the labels on the form?
Currently, it has:
“Contact Name
Contact
Contact Form
Send an email. All fields with an * are required.”How do I edit this text?
Thanks!
dsinor Frienddsinor
- Join date:
- July 2014
- Posts:
- 36
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 2 times in 1 posts
February 22, 2015 at 5:35 pm #560300Bump.
How do I edit the contents of the text displayed at the top of the Content Form?
I have looked in 1000 files. I cannot find this.
Thanks!
dsinor Frienddsinor
- Join date:
- July 2014
- Posts:
- 36
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 2 times in 1 posts
February 23, 2015 at 11:18 pm #560424I still need help with this.
I found the textual content of the elements at the top of the contact form. It’s in languageen-GBen-GB.com_contact.ini.
So i can edit this text if i want to.What i really want to do is:
1 – remove the COM_CONTACT_EMAIL_FORM label entirely.2 – remove the COM_CONTACT_FORM_LABEL label entirely.
I have tried this by deleting related lines of code from a couple of different php files in the components
com_contact folder. i also tried similar efforts in files located in librariesjoomla and also pluginscontentcontact.So I’m in dev purgatory. This happens when you spend 4 hours trying to make a tiny change to a form that is purely for aesthetic preference and not really necessary for site function. It’s hell.
Can someone tell me the basics on how to make simple changes to a form?
I discovered the public function removeField(string $name), but T3 is so big that i cannot figure out how or where to use this function.
i would be ever so grateful for any help.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
February 24, 2015 at 4:55 am #560452Hi dsinor,
If you want to change the title text like above, it often locates in language folder of associated language on your site.
For the core field of contact form, our template or T3 framework only override the style of the default Joomla contact form. Hence, to customize the Joomla Contact Form, you can post a thread in Joomla forum.
And you can see our override for contact component via directory:
templatesja_your_default_templatehtmlcom_contact <<< template override
pluginssystemt3base-bs3htmlcom_contact <<< T3 framework plugin override1 user says Thank You to Saguaros for this useful post
dsinor Frienddsinor
- Join date:
- July 2014
- Posts:
- 36
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 5
- Thanked:
- 2 times in 1 posts
February 24, 2015 at 7:29 am #560474Ah!
Another step up the ladder. Thank you Saguaros!!
Based on your reply, I searched and found this:
https://docs.joomla.org/Understanding_Output_OverridesSo I’m continuing to learn, and I succeeded in making the desired changes to the contact form.
Many thanks!
-
AuthorPosts
This topic contains 7 replies, has 2 voices, and was last updated by dsinor 9 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum