Custom URL for Component Search Results Topic is solved

This forum is for general questions about extensions for Joomla! 3.x.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
User avatar
syhussaini
Joomla! Explorer
Joomla! Explorer
Posts: 419
Joined: Sat Jan 03, 2009 2:20 pm
Location: Hyderabad-India
Contact:

Custom URL for Component Search Results

Post by syhussaini » Wed Nov 20, 2019 4:29 pm

Hello Team,

I am writing to seek help to display custom results in a SEF url.

Example:
This is a page with customized search, https://jobwalkins.in/search.html?searc ... Itemid=147

I would like to display this link as https://jobwalkins.in/today-walkins-in-hyderabad.html

I am using https://extensions.joomla.org/extension ... assifieds/ as the extensions.

Any helpful inputs will be greatly appreciated.
I am looking forward to hearing from you soon.
Last edited by toivo on Thu Nov 21, 2019 2:21 am, edited 1 time in total.
Reason: mod note: moved from 3.x General Questions
Best Regards | Syed H
https://jobwalkins.in - My Job Portal Built on Joomla
https://myknowledgeportal.com - My Knowledge Blog

smpleader
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 100
Joined: Thu Jun 21, 2012 7:17 am

Re: Custom URL for Component Search Results

Post by smpleader » Fri Nov 22, 2019 2:44 pm

Hi bro,
Does the component support SEF links ?
If there aren't many links, consider .htaccess is a way.
There is core Joomla component Redirect, that could help, too.

User avatar
syhussaini
Joomla! Explorer
Joomla! Explorer
Posts: 419
Joined: Sat Jan 03, 2009 2:20 pm
Location: Hyderabad-India
Contact:

Re: Custom URL for Component Search Results

Post by syhussaini » Sun Nov 24, 2019 7:24 am

Thank you for your response. Can you probably add some more insight please
Best Regards | Syed H
https://jobwalkins.in - My Job Portal Built on Joomla
https://myknowledgeportal.com - My Knowledge Blog

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 26197
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Custom URL for Component Search Results

Post by Per Yngve Berg » Sun Nov 24, 2019 10:38 am

"search.html" is your SEF URL.

What is the URL when SEF is turned off?

User avatar
syhussaini
Joomla! Explorer
Joomla! Explorer
Posts: 419
Joined: Sat Jan 03, 2009 2:20 pm
Location: Hyderabad-India
Contact:

Re: Custom URL for Component Search Results

Post by syhussaini » Sun Nov 24, 2019 12:46 pm

Per,

Thank you for your inputs. WhenSEF is turned off, here is what it looks like

Code: Select all

index.php?search=IT&exf_5=1&exf_4=-1&option=com_jomclassifieds&view=search&Itemid=147
Kindly advise.

Best Regards,
Syed H
Best Regards | Syed H
https://jobwalkins.in - My Job Portal Built on Joomla
https://myknowledgeportal.com - My Knowledge Blog

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 26197
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Custom URL for Component Search Results

Post by Per Yngve Berg » Sun Nov 24, 2019 2:33 pm

The normal order of the parameters is:

Code: Select all

index.php?option=com_jomclassifieds&view=search&search=IT&exf_5=1&exf_4=-1&Itemid=147
The SEF URL should be:

Code: Select all

<Alias of Itemid 147>?search=IT&exf_5=1&exf_4=-1
Assume Itemid 147 is of type Joomclassifieds search.

The URLs is handled by route.php in the component in collaboration with route.php in the core.

User avatar
syhussaini
Joomla! Explorer
Joomla! Explorer
Posts: 419
Joined: Sat Jan 03, 2009 2:20 pm
Location: Hyderabad-India
Contact:

Re: Custom URL for Component Search Results

Post by syhussaini » Sun Nov 24, 2019 5:31 pm

Dear Per,

Is there a way I can try to display it as

https://jobwalkins.in/today-walkins-in-hyderabad.htm

This will certainly help us in a great way.

Please advise.
Best Regards | Syed H
https://jobwalkins.in - My Job Portal Built on Joomla
https://myknowledgeportal.com - My Knowledge Blog

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 26197
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Custom URL for Component Search Results

Post by Per Yngve Berg » Sun Nov 24, 2019 5:46 pm

Have you made a Menu Item with alias today-walkins-in-hyderabad?
Can you set the search term in the Menu Item?

This is a paid extension, so I cannot test it.

User avatar
syhussaini
Joomla! Explorer
Joomla! Explorer
Posts: 419
Joined: Sat Jan 03, 2009 2:20 pm
Location: Hyderabad-India
Contact:

Re: Custom URL for Component Search Results

Post by syhussaini » Thu Nov 28, 2019 5:46 am

Dear Per,

Thank you for your inputs. I have set the alias today-walkins-in-hyderabad.html on the Menu Jobs in India >> Walkins by Location >> Hyderabad Job Walkins on the search URL search.html?search=IT&exf_5=1&exf_4=-1&option=com_jomclassifieds&view=search&Itemid=147.

Please help.
Best Regards | Syed H
https://jobwalkins.in - My Job Portal Built on Joomla
https://myknowledgeportal.com - My Knowledge Blog

User avatar
syhussaini
Joomla! Explorer
Joomla! Explorer
Posts: 419
Joined: Sat Jan 03, 2009 2:20 pm
Location: Hyderabad-India
Contact:

Re: Custom URL for Component Search Results

Post by syhussaini » Wed Dec 04, 2019 6:43 am

Dear Team,

I was able to get the desired output using https://extensions.joomla.org/extension/sh404sef/. The website in question https://jobwalkins.in/ now shows the predefined search results in custom URLs.

Here are a few of them which I was able to achieve:

https://jobwalkins.in/jobs-in-bangalore.html where the actual link was https://jobwalkins.in/search.html?searc ... Itemid=147
https://jobwalkins.in/today-walkins-in-hyderabad.html where the actual link was https://jobwalkins.in/search.html?searc ... Itemid=147

It works even for the links where the keywords are searched ex:

I searched for a keyword "fresher" and have set the page to render on custom URL https://jobwalkins.in/fresher-jobs.html where the actual link was https://jobwalkins.in/search.html?searc ... Itemid=147

The sh404SEF https://extensions.joomla.org/extension/sh404sef/ worked great and helped me address my concern very well.

Hope this post is useful for someone who may have a similar issue.
Best Regards | Syed H
https://jobwalkins.in - My Job Portal Built on Joomla
https://myknowledgeportal.com - My Knowledge Blog

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 26197
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Custom URL for Component Search Results

Post by Per Yngve Berg » Wed Dec 04, 2019 6:39 pm

I don't understand why you have a menu item defined twice.

search.html is a menu item and so is Itemid=147. Are they the same menu item?

User avatar
syhussaini
Joomla! Explorer
Joomla! Explorer
Posts: 419
Joined: Sat Jan 03, 2009 2:20 pm
Location: Hyderabad-India
Contact:

Re: Custom URL for Component Search Results

Post by syhussaini » Sat Dec 07, 2019 1:19 pm

Well, that is to capture a particular location off the JomClass component and show the results based on that.

I am now facing an additional challenge. I have configured the following with

Code: Select all

index.php?search=&exf_5=1&exf_4=-1&option=com_jomclassifieds&view=search&Itemid=147
to display on SEF URL today-walkins-in-hyderabad.html so the full URL looks like https://jobwalkins.in/today-walkins-in-hyderabad.html which displays only the jobs of Hyderabad Location.

If I click on Next in the pagination, it displays a non-SEF link https://jobwalkins.in/search.html?exf_4 ... 5&start=25. So what I did is I captured the next Page link with index.php which came out as following:

Code: Select all

index.php?exf_5=1&exf_4=-1&option=com_jomclassifieds&view=search&Itemid=147&limitstart=25
and set the SEF URL as today-walkins-in-hyderabad-2.html.

Now I created a hidden menu entry (Not calling it on front-end) and clicked on Next to see if the SEF URL https://jobwalkins.in/today-walkins-in-hyderabad-2.html appears. However, when I click next, the same URL https://jobwalkins.in/search.html?exf_4 ... 5&start=25 loads. If I try the link https://jobwalkins.in/today-walkins-in-hyderabad-2.html manually, it opens the page 2 of the filtered set.

Not sure how I can have the SEF URL for Navigational buttons.

Please help.
Best Regards | Syed H
https://jobwalkins.in - My Job Portal Built on Joomla
https://myknowledgeportal.com - My Knowledge Blog


Post Reply

Return to “Extensions for Joomla! 3.x”