Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • martinoz1 Friend
    #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 ?


    1. cntct
    TomC Moderator
    #428764

    What other elements are usually available to you in other templates?

    martinoz1 Friend
    #428904

    Name and surname, Phone numbers and e-mail adress.

    TomC Moderator
    #429176

    If 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 Moderator
    #429177

    As an added bit of reference, I found this discussion within the Joomla Community Forum . . . .

    How To Change Standard Contact Form

    Perhaps this may assist you further.

    😎

    martinoz1 Friend
    #429283

    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.


    1. scrnsht
    TomC Moderator
    #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.

    martinoz1 Friend
    #429711

    How should I do this ? Which template files I have to copy and paste ?

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

This topic contains 8 replies, has 2 voices, and was last updated by  martinoz1 12 years, 10 months ago.

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