0
Welcome Guest! Login
0 items Join Now

Modifying Contact Form - Joomla 2.5?

    • Adrian Cooper's Avatar
    • Adrian Cooper
    • Elite Rocketeer
    • Posts: 531
    • Thanks: 0
    • Technologist, Published Author

    Modifying Contact Form - Joomla 2.5?

    Posted 13 years 3 months ago
    • OK - I know this is not strictly RT related, but it is Joomla related :)

      Does anyone know the file that contains the Contact Form display in Joomla 2.5?

      The Contact Form displays "Contact" and then "Contact Form" in large text, as well as the heading.

      Since this is obviously a "Contact Form" I want to modify it to remove the spurious "Contact" and "Contact Form" lines displayed.

      Can anyone point me in the direction of the php/html file that controls the Contact Form display?

      I have looked for it, but is seems to have moved from previous Joomla versions.

      Thanks very much.
    • www.ourultimatereality.com
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Modifying Contact Form - Joomla 2.5?

    Posted 13 years 3 months ago
    • you could also just delete the language string for that from the language files.

      Personally I think ...

      The joomla devs messed up the contact component. To be honest I think it is a bloated piece of crap.
      I'm not using it anymore. i moved to RS forms pro.
    • Adrian Cooper's Avatar
    • Adrian Cooper
    • Elite Rocketeer
    • Posts: 531
    • Thanks: 0
    • Technologist, Published Author

    Re: Modifying Contact Form - Joomla 2.5?

    Posted 13 years 3 months ago
    • Henning wrote:

      Personally I think ...

      The joomla devs messed up the contact component. To be honest I think it is a bloated piece of crap.
      I'm not using it anymore. i moved to RS forms pro.

      Well I definitely agree with you there :)

      The Joomla Contact component is the same as it was in Joomla 1.0 - and primitive at that.

      Same for the Joomla Registration form.

      So how will RS Forms help in the Contact Form and better still Registration Form?
    • www.ourultimatereality.com
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Modifying Contact Form - Joomla 2.5?

    Posted 13 years 3 months ago
    • well I think both Contact Form and Registration Form have changed a lot Joomla 1.6 compared to 1.5. The Contact form can have 3 different layouts: standard, tabbed and sliding (accordeon like). Also you can display different fields. But it's a pain to setup and I don't get what the 3 layouts are really good for.

      In the registration-form you can have a bunch of new fields for the profile including "your favourite book" (strange isnt it?). There is a plugin to enable that.

      Most of the time just want a form with my own fields.
      And the easiest way for me is RS forms pro.

      But I really suggest to check the Joomla docs for more information about.
      For more information and a feature list of RS foms just check the RS-site.

      We don't override these 3 layouts. They are coming from the joomla-core.
      We only override the form itself but not the layouts around it. Thats is why you dont find the hooks for "Contact" and then "Contact Form" in html-folder of the template. You could of course create your own overrides for that.
      But you should really consult the docs on joomla.org for that.
    • Adrian Cooper's Avatar
    • Adrian Cooper
    • Elite Rocketeer
    • Posts: 531
    • Thanks: 0
    • Technologist, Published Author

    Re: Modifying Contact Form - Joomla 2.5?

    Posted 13 years 3 months ago
    • Henning wrote:
      well I think both Contact Form and Registration Form have changed a lot Joomla 1.6 compared to 1.5. The Contact form can have 3 different layouts: standard, tabbed and sliding (accordeon like). Also you can display different fields. But it's a pain to setup and I don't get what the 3 layouts are really good for.

      In the registration-form you can have a bunch of new fields for the profile including "your favourite book" (strange isnt it?). There is a plugin to enable that.

      Most of the time just want a form with my own fields.
      And the easiest way for me is RS forms pro.

      But I really suggest to check the Joomla docs for more information about.
      For more information and a feature list of RS foms just check the RS-site.

      We don't override these 3 layouts. They are coming from the joomla-core.
      We only override the form itself but not the layouts around it. Thats is why you dont find the hooks for "Contact" and then "Contact Form" in html-folder of the template. You could of course create your own overrides for that.
      But you should really consult the docs on joomla.org for that.

      Thanks Henning - appreciate the info.

      RS Forms does sound good - will check it out.

      One final question on RS Forms - can it be linked from the menu as a component, or is it implemented as a module?

      I want to continue to link as a component to retain the overall component display format to go with Search etc.

      In the meantime - would you know which php file contains the display code for the Joomla standard contact form? I would prefer to just go in there and comment out the appropriate text for now.
    • www.ourultimatereality.com
    • 1221's Avatar
    • 1221
    • Sr. Rocketeer
    • Posts: 181
    • Thanks: 0

    Re: Modifying Contact Form - Joomla 2.5?

    Posted 13 years 1 month ago
    • I found this on a Joomla.org forum post. It worked as a quick fix for me.
      Method:
      Edit the menu item you have assigned to your contact form and go to "Page Display Options".
      Now, in the "Page Heading" field type "Contact" (or alternative text of your choice). Now select "Yes" for "Show Page Heading".

      You will now see the text you typed into the "Page Heading" field displayed as a h1 header element above the usual contact form page text.

      Now add the following CSS to your template's custom.css file:
      Code:
      /* Start CSS fix for contact form bug */
      .component-content .contact h1 {font-size: 1.25em;}
      .component-content .contact h3 {display: none}
      /* End CSS fix for contact form bug */
      (Note that the h1 font size rule is optional).

      This works nicely on the "Single Contact" form for the site I am currently working with.
      The CSS can obviously be removed (as can the page heading text) when this bug has been fixed.
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Modifying Contact Form - Joomla 2.5?

    Posted 13 years 1 month ago
    • It should work ... but its also no cool solution :-)
      The contact component in J 2.5 sucks.
    • Adrian Cooper's Avatar
    • Adrian Cooper
    • Elite Rocketeer
    • Posts: 531
    • Thanks: 0
    • Technologist, Published Author

    Re: Modifying Contact Form - Joomla 2.5?

    Posted 13 years 1 month ago
    • Henning wrote:
      It should work ... but its also no cool solution :-)
      The contact component in J 2.5 sucks.

      Has it actually changed since Joomla 1.0?

      Bring on RokContact :cheesy:
    • www.ourultimatereality.com
  • Re: Modifying Contact Form - Joomla 2.5?

    Posted 12 years 7 months ago
    • Hi, i used on my template.css the following lines which seem to make the trick ;-)


      .contact h3 {
      display:none;
      }
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Modifying Contact Form - Joomla 2.5?

    Posted 12 years 7 months ago
    • that works ... but it leaves unused html markup ... not very satisfying imho :-)

Time to create page: 0.191 seconds