-
AuthorPosts
-
sfpkent Friend
sfpkent
- Join date:
- October 2008
- Posts:
- 829
- Downloads:
- 0
- Uploads:
- 100
- Thanks:
- 310
- Thanked:
- 75 times in 1 posts
March 9, 2009 at 5:00 am #138911Hi,
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=78Attached with what I want.
jsliao Friendjsliao
- Join date:
- April 2008
- Posts:
- 817
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 25
- Thanked:
- 236 times in 210 posts
March 9, 2009 at 6:04 am #294926i assume your location map is just an image?
then i think you can try
componentscom_contactviewscontacttmpldefault.phpand adding the image to where it is required
sfpkent Friendsfpkent
- Join date:
- October 2008
- Posts:
- 829
- Downloads:
- 0
- Uploads:
- 100
- Thanks:
- 310
- Thanked:
- 75 times in 1 posts
March 9, 2009 at 7:34 am #294938Hi,
I found the file but what code should I put it, sorry, I am not familiar with PHP.
Thanks first!
sfpkent Friendsfpkent
- Join date:
- October 2008
- Posts:
- 829
- Downloads:
- 0
- Uploads:
- 100
- Thanks:
- 310
- Thanked:
- 75 times in 1 posts
March 9, 2009 at 7:47 am #294942Hi,
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.
jsliao Friendjsliao
- Join date:
- April 2008
- Posts:
- 817
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 25
- Thanked:
- 236 times in 210 posts
March 9, 2009 at 8:05 am #294945hmmm 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 Friendsfpkent
- Join date:
- October 2008
- Posts:
- 829
- Downloads:
- 0
- Uploads:
- 100
- Thanks:
- 310
- Thanked:
- 75 times in 1 posts
March 9, 2009 at 8:24 am #294949Hi,
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=78jsliao Friendjsliao
- Join date:
- April 2008
- Posts:
- 817
- Downloads:
- 0
- Uploads:
- 12
- Thanks:
- 25
- Thanked:
- 236 times in 210 posts
March 9, 2009 at 8:32 am #294951heh so you’re using the contact picture for location image eh? good idea. 🙂
sfpkent Friendsfpkent
- Join date:
- October 2008
- Posts:
- 829
- Downloads:
- 0
- Uploads:
- 100
- Thanks:
- 310
- Thanked:
- 75 times in 1 posts
March 9, 2009 at 9:04 am #294960Hi,
Yes, faster and easier, just need to change the alignment. 🙂 Learnt new thing again.
AuthorPostsViewing 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
Jump to forum