Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • dsinor Friend
    #203920

    I’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 Moderator
    #560128

    Hi

    It belongs to the core file of contact form so you can apply that solution.

    And remember to backup this change when you upgrade Joomla version.

    dsinor Friend
    #560183

    Thanks 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 Friend
    #560300

    Bump.

    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 Friend
    #560424

    I 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 Moderator
    #560452

    Hi 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 override

    dsinor Friend
    #560474

    Ah!

    Another step up the ladder. Thank you Saguaros!!

    Based on your reply, I searched and found this:
    https://docs.joomla.org/Understanding_Output_Overrides

    So I’m continuing to learn, and I succeeded in making the desired changes to the contact form.

    Many thanks!

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 2 voices, and was last updated by  dsinor 9 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum