June 20, 2013, 06:06:26 AM

Login with username, password and session length

FORUM POSTING GUIDELINES - Please read and follow them.

Pages: [1]
  Print  
Author Topic: Creating SEF URLs for Hundreds (Thousands?) of Listing Categories  (Read 477 times)
Rik Brown
Sr. Member
****
Offline Offline

Posts: 229



« on: January 23, 2012, 08:14:16 PM »

I'm quite happy with the way JReviews creates the SEF URLs for our listings such as:

[ourdomain]/restaurants/116691-zutto-japanese-restaurant

For each of hundreds of cities, we would like to be able to have pre-defined urls that users can access (outside of the Advanced Search Module) for lists of Restaurants, Bars & Pubs, Hotels, and so forth specific to each city. Currently, using the Advanced Search Module, it creates urls like:

[ourdomain]/advanced-search/search-results/order:alpha/cat:102/query:all/jr_city:New+York/

If I want these to be like [ourdomain]/restaurants/new-york/

... can this be done within JReviews or is SH404SEF or similar required?

PS: We currently have about 25 different categories (and growing) listed in our Advanced Search Module. So that represents (25 x the_number_of_cities) potential category urls that need rewriting. We probably will limit that to about 200 major cities.
« Last Edit: January 23, 2012, 08:15:57 PM by Rik Brown » Logged

jReviews:  2.4.8.3 / Joomla 2.5.11
Kristian
Global Moderator
Hero Member
*
Online Online

Posts: 9676



WWW
« Reply #1 on: January 24, 2012, 04:40:00 AM »

Instead of using advanced search results pages for urls, create JReviews "Custom List" menu items, one for each city and use the Custom Where option:
http://docs.reviewsforjoomla.com/Using_Custom_WHERE_and_Custom_ORDER_BY_parameters

With menu items you can create any url structure you want:
http://docs.reviewsforjoomla.com/Customizing_The_Menu_Structure_For_Nicer_SEF_URLs
« Last Edit: January 24, 2012, 04:42:10 AM by Kristian » Logged

Rik Brown
Sr. Member
****
Offline Offline

Posts: 229



« Reply #2 on: June 27, 2012, 05:16:56 PM »

We're now starting to create jReview menu items as suggested above. I understand how to control the url alias except the part of the url where pagination is involved. On my site, the 2nd page of a "custom where" menu item likes like:

http://[our domain]/saint-louis-missouri-sushi/menu/page:2/

On the current beta demo site, 2nd pages look like:

http://demo.reviewsforjoomla.com/city-guide/hotels-and-travel?page=2

How does one control how the url shows pagination after the alias portion such as "/menu/page:2/" or "?page=2"?

Preferably, I'd just like the url to end like /alias/2 or /alias/page2 so it looks like it is not dynamically generated and also doesn't have embedded non-alphanumeric characters. Is that possible? (Either way, I want to get rid of the "/menu/" part of the url).

Thanks. -- Rik
Logged

jReviews:  2.4.8.3 / Joomla 2.5.11
Alejandro
Global Moderator
Administrator
Hero Member
*
Offline Offline

Posts: 28637


« Reply #3 on: June 27, 2012, 05:37:34 PM »

You can't customize the urls to that extent. You can enable Joomla style url parameters in JReviews configuration, general tab and that will remove the /menu/ part of the url on pages higher than page 1.
Logged

http://www.reviewsforjoomla.com/testimonials Leave a testimonial for JReviews
Rik Brown
Sr. Member
****
Offline Offline

Posts: 229



« Reply #4 on: June 27, 2012, 06:14:25 PM »

Alejandro:

OK, I see the option there: "Uses the &param=val style for url parameters rather than /param:val."

Will change it there to the way that you do it on the demo site (&param=val) to get rid of the /menu/ portion of the url, etc.

Thanks. -- Rik
Logged

jReviews:  2.4.8.3 / Joomla 2.5.11
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!