Search just one category or section
Moderator: 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.
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.
-
- Joomla! Apprentice
- Posts: 38
- Joined: Tue Nov 10, 2009 4:09 pm
Re: Search just one category or section
Thanks alot for the quick reply. I will be waiting for it.
-
- Joomla! Fledgling
- Posts: 3
- Joined: Thu Jun 17, 2010 11:01 am
Re: Search just one category or section
hello freerider
you posted some attachments on wed Thu Oct 15, 2009 8:35 am. i have changed the files as instructed. but nothing changed to search function kindly guide me so that i could complete this task
you posted some attachments on wed Thu Oct 15, 2009 8:35 am. i have changed the files as instructed. but nothing changed to search function kindly guide me so that i could complete this task
- syhussaini
- Joomla! Explorer
- Posts: 455
- Joined: Sat Jan 03, 2009 2:20 pm
- Location: Karimnagar-TS-India
- Contact:
Re: Search just one category or section
Please help...
Even I am looking for something similar for the new versions of Joomla.
Currently working with Joomla 1.5.20
Even I am looking for something similar for the new versions of Joomla.
Currently working with Joomla 1.5.20
Best Regards | Syed H
https://jobwalkins.in - My Job Portal Built on Joomla
https://myknowledgeportal.com - My Knowledge Blog
https://jobwalkins.in - My Job Portal Built on Joomla
https://myknowledgeportal.com - My Knowledge Blog
-
- Joomla! Apprentice
- Posts: 9
- Joined: Thu Apr 10, 2008 7:30 pm
Re: Search just one category or section
Any way of getting this module for Joomla 1.5 without activating the Legacy mode?
Greetings.
Greetings.
-
- Joomla! Apprentice
- Posts: 27
- Joined: Tue Jan 13, 2009 4:32 pm
- Location: Sacramento, California
Re: Search just one category or section
So I decided not to invest the effort to make this plugable as I am no longer interested in supporting Joomla projects, but I did validate the hack for Joomla 1.5.23 and updated the component model and content search plugin to exclude other search plugins that might get called and appended to your section search.
Just extract the archive to your site root and you should be good to go.
Just extract the archive to your site root and you should be good to go.
You do not have the required permissions to view the files attached to this post.
-
- Joomla! Apprentice
- Posts: 13
- Joined: Sun Apr 17, 2011 7:03 am
Re: Search just one category or section
hi
thanks for education
but Error occurred search result
this error:
Warning: Invalid argument supplied for foreach() in F:\xammp4\xampplite\htdocs\joomla10\plugins\search\content.php on line 189
please check again...
thanks for education
but Error occurred search result
this error:
Warning: Invalid argument supplied for foreach() in F:\xammp4\xampplite\htdocs\joomla10\plugins\search\content.php on line 189
please check again...
-
- Joomla! Apprentice
- Posts: 27
- Joined: Tue Jan 13, 2009 4:32 pm
- Location: Sacramento, California
Re: Search just one category or section
What version of Joomla are you using? Did you set a section search ID in the module?
Could you add print_r($row); on line 188 and tell me what you get?
Could you add print_r($row); on line 188 and tell me what you get?
-
- Joomla! Apprentice
- Posts: 13
- Joined: Sun Apr 17, 2011 7:03 am
Re: Search just one category or section
my joomla version is 1.5.24
I set section search id 1
add $print_r($row); but Does not work...
I set section search id 1
add $print_r($row); but Does not work...
-
- Joomla! Apprentice
- Posts: 27
- Joined: Tue Jan 13, 2009 4:32 pm
- Location: Sacramento, California
Re: Search just one category or section
It's not . You should see the output in your browser when you search using your section search module. It should be some sort of Joomla content/article object.
I've only tested this for Joomla 1.5.23 - but I doubt a minor version change would make a difference. Do you have articles related to section 1?
If doesn't give you any output then just add
Code: Select all
print_r($row);
Code: Select all
$print_r($row);
I've only tested this for Joomla 1.5.23 - but I doubt a minor version change would make a difference. Do you have articles related to section 1?
If
Code: Select all
print_r($row);
on the next line. That should give you a blank page when you search. Then at least we know the code is being called.exit;
-
- Joomla! Apprentice
- Posts: 13
- Joined: Sun Apr 17, 2011 7:03 am
Re: Search just one category or section
I'm sorry
I Write a mistake
Is correct:
print_r($row);
add this code,but does not work!
when add this code: exit;
displaye blank page
I have in this section many article...
please check again
I Write a mistake
Is correct:
print_r($row);
add this code,but does not work!
when add this code: exit;
displaye blank page
I have in this section many article...
please check again
-
- Joomla! Apprentice
- Posts: 27
- Joined: Tue Jan 13, 2009 4:32 pm
- Location: Sacramento, California
Re: Search just one category or section
That doesn't sound right. Could you post your plugins/search/content.php file?
-
- Joomla! Apprentice
- Posts: 13
- Joined: Sun Apr 17, 2011 7:03 am
Re: Search just one category or section
I replace all attached file, but not work
this my content.php file:
this my content.php file:
You do not have the required permissions to view the files attached to this post.
-
- Joomla! Apprentice
- Posts: 27
- Joined: Tue Jan 13, 2009 4:32 pm
- Location: Sacramento, California
Re: Search just one category or section
Hm, the file looks right. I'll have to do a fresh install of 1.5.24 to try to duplicate the problem you are having. Probably wont get to it till the end of the week, though.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Wed Feb 01, 2012 3:37 pm
- Location: Chile
- Contact:
Re: Search just one category or section
Hi.freerider wrote:Thank you!!! a milion!!!
...
I allso tried to implement to limit search by category. And it all went without problem.
Now I have option of limiting search by categories or sections... Yeeaj!!!
If you need solution, see my attached file (it is tested on Joomla 1.5.10!!!!!)
Yekibud thanks again!!!
It works fine, but when you do a second search with the searchbox on the resultpage (not the module), he searches the complete site again. The parameter section_id is shown in the url, but the value remains empty.
How can be fixed?
Regards,
-
- Joomla! Apprentice
- Posts: 27
- Joined: Tue Jan 13, 2009 4:32 pm
- Location: Sacramento, California
Re: Search just one category or section
@macastillo:
Glad to hear it's working for you (at least on the first search). That's how it works for me, too. It's probably just not a popular feature on my site, since nobody has complained for two years. But, it's still a bug, so I should probably fix it. I'll see if I can at least take a peak at it in the next couple days.
What version of Joomla are you using, btw?
Glad to hear it's working for you (at least on the first search). That's how it works for me, too. It's probably just not a popular feature on my site, since nobody has complained for two years. But, it's still a bug, so I should probably fix it. I'll see if I can at least take a peak at it in the next couple days.
What version of Joomla are you using, btw?
-
- Joomla! Fledgling
- Posts: 2
- Joined: Wed Feb 01, 2012 3:37 pm
- Location: Chile
- Contact:
Re: Search just one category or section
Hi @yekibud:
Thanks for your answer!
I also tried with hidding searchForm, but it only shows the results, not how many results do you have (if you have 0 results, it only shows an empty page).
Regards.
Thanks for your answer!
People usually don't complain, just says at their mind "this doesn't work..." ;-)yekibud wrote:@macastillo:
Glad to hear it's working for you (at least on the first search). That's how it works for me, too. It's probably just not a popular feature on my site, since nobody has complained for two years.
I'm using Joomla v1.5.17. I don't know about PHP... I was a programmer 15 years ago, so I can read code but I can't fix it :-(yekibud wrote: But, it's still a bug, so I should probably fix it. I'll see if I can at least take a peak at it in the next couple days.
What version of Joomla are you using, btw?
I also tried with hidding searchForm, but it only shows the results, not how many results do you have (if you have 0 results, it only shows an empty page).
Regards.
-
- Joomla! Apprentice
- Posts: 13
- Joined: Sun Apr 17, 2011 7:03 am
Re: Search just one category or section
hi yekibudyekibud wrote:Hm, the file looks right. I'll have to do a fresh install of 1.5.24 to try to duplicate the problem you are having. Probably wont get to it till the end of the week, though.
I'm wait, but still not answer for problem
please check it...
I need a solution...
-
- Joomla! Apprentice
- Posts: 8
- Joined: Sat Feb 01, 2014 2:10 pm
Re: Search just one category or section
@Yekibud
Thank you!!! I really appreciate your post in this forum !!!
I apply your coding to limit my category search for my joomla 3.x.
And it is still work
Thank you!!! I really appreciate your post in this forum !!!
I apply your coding to limit my category search for my joomla 3.x.
And it is still work