This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

Darwazo

  • ***
  • 81 posts
[Solved] Permalinks : is it possible to add "REGION"
« on: December 18, 2017, 02:16:36 AM »
Dear All,

I need help and would appreciate as usual.

I want to put REGION in permalinks . I tried but that didn't work  i.e. I tried to put /(ITEM_REGION). I know (ITEM_CITY) is already working for me. Any thoughts?

Thank you in advance
« Last Edit: December 25, 2017, 02:30:45 AM by Darwazo »

*

MB Themes

Re: Permalinks : is it possible to add "REGION"
« Reply #1 on: December 18, 2017, 03:40:50 PM »
@Darwazo
Not sure, only what you can do is to modify permalinks settings in oc-admin.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Darwazo

  • ***
  • 81 posts
Re: Permalinks : is it possible to add "REGION"
« Reply #2 on: December 19, 2017, 12:57:11 AM »
Thank you reply !!....
I meant same....in Oc-admin , REGION option is not available.

Pls. see attached and kindly advise how to "REGION OPTION" as i am not interested in putting City option......




*

Anonymous

  • ****
  • 200 posts
Re: Permalinks : is it possible to add "REGION"
« Reply #3 on: December 19, 2017, 03:48:11 AM »
May be all in one seo will solve your issue,  ???
Go for it today.  :)
Innovation is change that unlocks new value  ;)

*

MB Themes

Re: Permalinks : is it possible to add "REGION"
« Reply #4 on: December 19, 2017, 11:37:08 AM »
All in One SEO Plugin does not change links
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Anonymous

  • ****
  • 200 posts
Re: Permalinks : is it possible to add "REGION"
« Reply #5 on: December 19, 2017, 06:29:05 PM »
What about breadcrumb.

Else,

You have to manually modified the files,

   
Code: [Select]
    $location = Rewrite::newInstance()->get_location();
    $section  = Rewrite::newInstance()->get_section();
    $text = '';

Or, change switch statement,   8)
Innovation is change that unlocks new value  ;)

*

gioacchino

  • *
  • 2 posts
Re: Permalinks : is it possible to add "REGION"
« Reply #6 on: December 19, 2017, 07:02:29 PM »
osc_country() - Gets current country

osc_region() - Gets current region

osc_city() - Gets current city

osc_city_area() - Gets current city area

osc_has_countries() - Iterator for countries, return null if there's no more countries

osc_has_regions($country = '%%%%') - Iterator for regions, return null if there's no more regions

osc_has_cities($region = '%%%%') - Iterator for cities, return null if there's no more cities

osc_has_city_areas($city = '%%%%') - Iterator for city areas, return null if there's no more city areas

osc_count_countries() - Gets number of countries

osc_count_regions($country = '%%%%') - Gets number of regions

osc_count_cities($region = '%%%%') - Gets number of cities

osc_count_city_areas($city = '%%%%') - Gets number of city areas

osc_country_name() - Gets country's name

osc_country_items() - Gets country's items

osc_region_name() - Gets region's name

osc_region_items() - Gets region's items

osc_city_name() - Gets city's name

osc_city_items() - Gets city's items

osc_city_area_name() - Gets city area's name

osc_city_area_items() - Gets city area's items

osc_country_url() - Gets country's url

osc_region_url() - Gets region's url

osc_city_url() - Gets city's url

osc_city_area_url() - Gets city area's url

*

Darwazo

  • ***
  • 81 posts
Re: Permalinks : is it possible to add "REGION"
« Reply #7 on: December 20, 2017, 12:47:32 AM »
@Anonymous  : Where to put this code? what do I need to put in permalinks?

Thank you very much  ....

*

Darwazo

  • ***
  • 81 posts
Re: Permalinks : is it possible to add "REGION"
« Reply #8 on: December 20, 2017, 12:49:05 AM »
@gioacchino: How to use :  osc_region_name()  in permalinks.....

Thank you in advance

*

Darwazo

  • ***
  • 81 posts
Re: Permalinks : is it possible to add "REGION"
« Reply #9 on: December 23, 2017, 01:36:49 AM »
anyone pls. help me ...?

Marked as best answer by Darwazo on December 25, 2017, 02:29:56 AM
*

Darwazo

  • ***
  • 81 posts
[Solved] Permalinks : is it possible to add "REGION"
« Reply #10 on: December 25, 2017, 02:29:40 AM »
Solution here on this link : https://forums.osclass.org/general-help/permalinks-is-it-possible-to-add-'region'/

Thank you everyone for input ....

*

Rick

  • ***
  • 47 posts
Re: [Solved] Permalinks : is it possible to add "REGION"
« Reply #11 on: January 13, 2024, 11:23:52 AM »
Solution here on this link : https://forums.osclass.org/general-help/permalinks-is-it-possible-to-add-'region'/

Thank you everyone for input ....

Want same solution but link dosent work?

*

MB Themes

Re: [Solved] Permalinks : is it possible to add "REGION"
« Reply #12 on: January 14, 2024, 08:05:40 AM »
In Osclass 8.2 there is much more options in permalinks, including region.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots