Advertisement:

Author Topic: Region links problem  (Read 1409 times)

jorgeantonio

  • Newbie
  • *
  • Posts: 5
Region links problem
« on: September 04, 2013, 08:01:08 pm »
I have just installed the theme in a clean installation but the urls for regions are not working as expected. Also is there a way to control the pages like "contact" or other will shown at left side? By default has "contact" but it does not looks good to have the contact link on the top.

Best regards,
Jorge

garciademarina

  • Administrator
  • Hero Member
  • *****
  • Posts: 974
Re: Region links problem
« Reply #1 on: October 03, 2013, 02:41:38 pm »
Hi @jorgeantonio

Yes, there is an issue here, if you want to fix it :

~ l. 39

Code: [Select]
<a href="<?php echo osc_search_url( array( 'sRegion' => osc_list_region_name() ) ) ; ?>"><?php echo osc_list_region_name() ; ?></a> (<?php echo osc_list_region_items() ; ?>)
Change to: osc_list_region_id

Code: [Select]
<a href="<?php echo osc_search_url( array( 'sRegion' => osc_list_region_id() ) ) ; ?>"><?php echo osc_list_region_name() ; ?></a> (<?php echo osc_list_region_items() ; ?>)

desai_amogh

  • Newbie
  • *
  • Posts: 3
Re: Region links problem
« Reply #2 on: January 29, 2014, 06:10:48 pm »
Where do I make these changes ?? which file should I edit ??

I have also listed cities on the home page which are showing these weird urls using this modification: http://forums.osclass.org/tips-and-tricks/(tuturial)show-all-regions-and-cities-in-sidebar/

Code: [Select]
<?php View::newInstance()->_exportVariableToView('list_cities'Search::newInstance()->listCities('%%%%''>=') ) ; ?>
                        <?php if(osc_count_list_cities() > 0) {?>
                        <div class="box location">
                            <h3><strong><?php _e("Location"'modern'); ?></strong></h3>
                            <ul>
                            <?php while(osc_has_list_cities()) { ?>
                                <li><a href="<?php echo osc_search_url(array('sCity' => osc_list_city_name()));?>"><?php echo osc_list_city_name();?></a> <em>(<?php echo osc_list_city_items();?>)</em></li>
                            <?php ?>
                            </ul>
                        </div>
                        <?php ?>



how do I make these links friendly urls ??