Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • sfpkent Friend
    #138911

    Hi,

    I want to insert a company location map to the contact us page, may I know how to do it? The contact us component joomla’s, not third part. Which file I should go to edit?

    Here is the link:
    http://mccurryrecipe.com/index.php?option=com_contact&view=contact&id=1&Itemid=78

    Attached with what I want.


    1. locationmapincontact
    jsliao Friend
    #294926

    i assume your location map is just an image?

    then i think you can try
    componentscom_contactviewscontacttmpldefault.php

    and adding the image to where it is required

    sfpkent Friend
    #294938

    Hi,

    I found the file but what code should I put it, sorry, I am not familiar with PHP.

    Thanks first!

    sfpkent Friend
    #294942

    Hi,

    Ok, now I have successfully added the location map but there is slightly problem.

    I want to move the location map to left and space in between the title and the location map, how to do that?

    Link: http://mccurryrecipe.com/index.php?option=com_contact&view=contact&id=1&Itemid=78

    Attached with what I want.


    1. locationmapincontact
    jsliao Friend
    #294945

    hmmm this will be difficult to debug without the php code. but from what i can see from your html file,

    <td align="right" valign="top" rowspan="2">
    <div style="float:right">
    <img align="middle" alt="Contact" src="/images/stories/mccurrymap.jpg"/>
    </div>
    </td>

    you need to make it

    <td align="center" valign="top" rowspan="2">
    <div style="">
    <img align="middle" alt="Contact" src="/images/stories/mccurrymap.jpg"/>
    </div>
    </td>

    sfpkent Friend
    #294949

    Hi,

    Found it. Go to componentscom_contactviewscontacttmpldefault. php

    change:

    <td></td>

    <div style=”float: right;”>
    <?php echo JHTML::_(‘image’, ‘images/stories’ . ‘/’.$this->contact->image, JText::_( ‘Contact’ ), array(‘align’ => ‘middle’)); ?>
    </div>

    To:

    <div style=”float: left;”>
    <?php echo JHTML::_(‘image’, ‘images/stories’ . ‘/’.$this->contact->image, JText::_( ‘Contact’ ), array(‘align’ => ‘middle’)); ?>
    </div>

    Thanks jsliao.

    Here is the result:
    http://mccurryrecipe.com/index.php?option=com_contact&view=contact&id=1&Itemid=78

    jsliao Friend
    #294951

    heh so you’re using the contact picture for location image eh? good idea. 🙂

    sfpkent Friend
    #294960

    Hi,

    Yes, faster and easier, just need to change the alignment. 🙂 Learnt new thing again.

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

This topic contains 8 replies, has 2 voices, and was last updated by  sfpkent 15 years, 8 months ago.

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