-
AuthorPosts
-
December 8, 2011 at 11:15 am #171600
In opposite to other templates like JATeline IV, after searching for contacts on my site I can only write an e-mail.
There is absolutely no other content – how may I solve it, except changing the template ?
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
December 8, 2011 at 6:31 pm #428764What other elements are usually available to you in other templates?
December 9, 2011 at 8:17 am #428904Name and surname, Phone numbers and e-mail adress.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
December 11, 2011 at 4:48 am #429176If you look in components > com_contact > controller.php there is a function called submit( ).
In controller.php you see a function called submit(). In that function, the variables for sending are collected:
$contactId = JRequest::getInt( ‘id’, 0, ‘post’ );
$name = JRequest::getVar( ‘name’, ”, ‘post’ );
$email = JRequest::getVar( ’email’, ”, ‘post’ );
$telephone = JRequest::getVar( ‘telephone’, ”, ‘post’ );For the example above, I added $telephone (not default).
After that, I scrolled down to the comment // Prepare email body.
Here the collected variables are put together in an email.I changed . . . .
$body = $prefix.”n”.$name.’ <‘.$email.’> ‘.”rnrn”.stripslashes($body);
to
$body = $prefix.”n”.$name.’ (‘.$email.’, ‘.$telephone.’) ‘.”rnrn”.stripslashes($body);You see that I added the variable $telephone in that line.
From now on, emails contain the telephone-number from the sender.Hope that helps.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
December 11, 2011 at 4:53 am #429177As an added bit of reference, I found this discussion within the Joomla Community Forum . . . .
How To Change Standard Contact FormPerhaps this may assist you further.
😎
December 12, 2011 at 9:06 am #429283You misunderstood me, I don’t only want to write an e-mail in contact page. I want to have also detailed informations in contact page like in JA Teline IV in this screenshot.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
December 12, 2011 at 6:12 pm #429366<em>@martinoz1 288669 wrote:</em><blockquote>You misunderstood me, I don’t only want to write an e-mail in contact page. I want to have also detailed informations in contact page like in JA Teline IV in this screenshot.
</blockquote>
Well, you can certainly try to transpose (or cut-and-paste) the relevant “contact” files, code and images from Teline IV to your JA Travel based site.December 15, 2011 at 9:02 am #429711How should I do this ? Which template files I have to copy and paste ?
AuthorPostsViewing 8 posts - 1 through 8 (of 8 total)This topic contains 8 replies, has 2 voices, and was last updated by martinoz1 12 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum