Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: helps to show location announced in the main list

helps to show location announced in the main list 3 years 2 months ago #861

  • inma
  • inma's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 11
  • Karma: 0
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
The administrator has disabled public write access.

helps to show location announced in the main list 3 years 2 months ago #867

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2765
  • Thank you received: 292
  • Karma: 40
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
The administrator has disabled public write access.

helps to show location announced in the main list 3 years 1 month ago #987

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

Many thanks
The administrator has disabled public write access.

helps to show location announced in the main list 3 years 1 month ago #989

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2765
  • Thank you received: 292
  • Karma: 40
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 administrator has disabled public write access.
The following user(s) said Thank You: Jeff Pulley

helps to show location announced in the main list 3 years 1 month ago #990

Is it also possible to call the "Country" value?
The administrator has disabled public write access.

helps to show location announced in the main list 3 years 1 month ago #991

  • Super User
  • Super User's Avatar
  • Offline
  • Administrator
  • Posts: 2765
  • Thank you received: 292
  • Karma: 40
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
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.205 seconds