How use another php file in contact form

  • aeeeaom
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
11 years 3 months ago #24540 by aeeeaom
Hello.
I've edited the contact layout file (com_contact\contact\default.php) to insert a map html in the contact form.
Is it possible to create another contact form that uses a different php file (in order to not display the map inserted in the default.php)?

Thank you very much.

Please Log in to join the conversation.

More
11 years 3 months ago #24550 by ivan.milic
You are not comfortable with changing joomla file? Create override in template html folder

Please Log in to join the conversation.

  • aeeeaom
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
11 years 3 months ago #24551 by aeeeaom
No, I'm confortable with changing joomla file..
I want two types of contact form, one of them with a map html (I've copied and modified the file templates \ hot_furniturestore \ html \ com_contact \ contact \ default.php) and another one without map., so I want to use another php file.

Please Log in to join the conversation.

More
11 years 3 months ago #24555 by ivan.milic
You can make Alternative Layout for contact, and you can select it in Display Options in contact settings. beez5 has alternative layout templates\beez5\html\com_contact\contact\encyclopedia.php.

Please Log in to join the conversation.

  • aeeeaom
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
11 years 3 months ago #24571 by aeeeaom
Hello.

I've modified contact display option in settings but the map, that I introduced in the default.php file, continues to appear on the web.

I send the image with the paramater that I've modified, is it wrong?

thanks
Attachments:

Please Log in to join the conversation.

More
11 years 3 months ago #24583 by ivan.milic
So you created alternative layout:

templates\hot_furniturestore\html\com_contact\<some name>.php ?

and selected it under contact display options

and all still works same?

Please Log in to join the conversation.

Time to create page: 0.329 seconds
Powered by Kunena Forum