helps to show location announced in the main list

helps to show location announced in the main list was created by inma

Hi...I need that to add the Location in the List view and grid view. Could you tell me how can I do it?
Thnaks a lot.
inma
7 years 11 months ago#861

Please Log in or Create an account to join the conversation.

Replied by Super User on topic helps to show location announced in the main list

Kindly send the below details to This email address is being protected from spambots. You need JavaScript enabled to view it., So that we can do it for you.

1. Your site URL
2. Your site FTP details
3. Joomla admin username and password.

Thanks
7 years 11 months ago#867

Please Log in or Create an account to join the conversation.

Replied by rsweb on topic helps to show location announced in the main list

Is it possible you can post the solution here, as I can give access to ftp etc.

Many thanks
7 years 11 months ago#987

Please Log in or Create an account to join the conversation.

Replied by Super User on topic helps to show location announced in the main list

Hi,

Open the default_grid.php and default_list.php files from the below path.

Root-->Components-->com_jomclassifieds-->views->default-->tmpl

Now in the default_grid.php file search the below code
<span class="views"><?php echo $item->views; ?>&nbsp;<?php echo JText::_('VIEWS'); ?></span>
<?php endif; ?>

And add the following code below it
<?php if($item->address != '') : ?><div class="dateblock"><span class="key"><?php echo JText::_('LOCATION'); ?></span><span class="value"><?php echo $item->address; ?><?php echo $item->postalcode; ?></span></div><?php endif; ?>

And then in the default_list.php file serch the below code
<div class="views"><?php echo $item->views; ?>&nbsp;<?php echo JText::_('VIEWS'); ?></div><?php endif; ?>

And add the following code below it
<div style="clear:both"></div><?php if($item->address != '') : ?><div class="category"><span class="key"><?php echo JText::_('LOCATION'); ?></span>&nbsp;:&nbsp;<span class="value"><?php echo $item->address; ?><?php echo $item->postalcode; ?></span></div><?php endif; ?>

Now Save the files and check your front-end.

Please take a backup copy of the old file before modification.

Thanks
The following user(s) said Thank You: rsweb
7 years 11 months ago#989

Please Log in or Create an account to join the conversation.

Replied by rsweb on topic helps to show location announced in the main list

Is it also possible to call the "Country" value?
7 years 11 months ago#990

Please Log in or Create an account to join the conversation.

Replied by Super User on topic helps to show location announced in the main list

Hi,

It is not easy to explain the steps here. So kindly send your FTP details to This email address is being protected from spambots. You need JavaScript enabled to view it.. So that we can do it for you.

Thanks
7 years 11 months ago#991

Please Log in or Create an account to join the conversation.

Time to create page: 0.150 seconds

Contact us

  No.2/A, Venkateshwara Nagar,
1st Main Road, 100 Feet Road, SBM Towers, Velachery,Chennai - 600 042,India.
 admin@jomclassifieds.com
 skype.jomclassifieds
Copyright © 2013-2021 Jomclassifieds.com. All rights reserved. The Joomla! name, and logo are used under a limited license granted in the United States and other countries.