joomla 2.5 smart search (finder) for a custom component? - joomla

I'm trying to suss out the Joomla 2.5 Smart Search. I followed some instructions here - http://magazine.joomla.org/issues/issue-feb-2012/item/671-Developing-a-Smart-Search-Plugin - I managed to get my plugin installed and items from my component were being indexed in the smart search component in the administrator section..
But when I go to the front end of my site and type in one of the names of the products, it says no results found. Yet as mentioned before the same product is displaying fine in the admin component smart search, it just won't show up on the front end when I search for it.
I'm not sure what I've done wrong, or if I'm missing something?
Here's my plugin file structure:
/plugins/finder/products/language/en-GB/en-GB.plg_finder_products.ini
/plugins/finder/products/language/en-GB/en-GB.plg_finder_products.sys.ini
/plugins/finder/products/products.php
/plugins/finder/products/products.xml
/plugins/finder/products/script.php
I also added the route.php in my site components helper folder.
Any ideas on what I've done wrong, or if anyone could tell me how to print out the search query itself on the results page, so I can see where things are going wrong? I don't know, any help would be appreciated really :)
Thanks guys

Without some code to look at I can't suggest more than turning on Joomla!'s debug mode and setting the error reporting to it highest level ie.'Development'.
Debug Mode: Site->Global Configuration->System->Debug System->Yes
Error Reporting: Site->Global Configuration->Server->Error Reporting->Development
That way you'll get all the SQL queries in the Joomla! Debug Console and that will help a little.

Does your component use access levels? I've just been looking into smart search plug-ins and found that the reason why nothing was appearing on the front end for my component despite being indexed was because it didn't know what the access levels of that component's articles were.
As my component didn't use access levels, I found that adding "$item->access=1;" to the index() function was a hack that fixed it by conning it into thinking the access levels were public (though just a hack, mind you, and should not be considered the correct solution.)
Anyway, I had the same problem and that was the cause.

Related

Custom URL for Component Search Results

I am writing to seek help to display custom results in a SEF URL on Joomla CMS.
Example: This is a page with a customized search, https://jobwalkins.in/search.html?search=IT&exf_5=1&exf_4=-1&option=com_jomclassifieds&view=search&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/jom-classifieds/ as the extensions.
Any helpful inputs will be greatly appreciated. I am looking forward to hearing from you soon.
Best Regards,
Syed H
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?search=&exf_5=2&exf_4=-1&option=com_jomclassifieds&view=search&Itemid=147
https://jobwalkins.in/today-walkins-in-hyderabad.html where the actual link was https://jobwalkins.in/search.html?search=&exf_5=1&exf_4=-1&option=com_jomclassifieds&view=search&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?search=fresher&exf_5=-1&exf_4=-1&option=com_jomclassifieds&view=search&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.

Yii2: Assign and remove items via ajax like in RBAC routes assignment

I need assistance. In Yii2 RBAC module, there is a part in the module when adding routes and removing them whereby it is done via selecting the routes and clicking on the button which moves them to the right, or remove button that moves them to the left via ajax. I have tried to search online but I guess I don't have the right description to help me get better results. I believe there must be an extension for achieving this. Below is the screenshot of what exactly I mean. I want to implement this in some part of my system but I don't know what to simply search on the internet so as to get the clue.
Any clue to what I should look for or an extension that will assist me achieve this is welcome.
You may try for this some of jquery plugins. Maybe this one http://loudev.com/ or https://github.com/crlcu/multiselect

Are we doing error codes wrong?

I have great luck using a combination of Google (and usually StackOverflow) to locate help with errors in software. But I'm wondering if there's a better way. How about tagging all errors with a unique ID?
This is just a suggestion, hopefully someone will take this in an even better direction. As a starting point I see errors registered the way we register web sites. Maybe they are web sites. Each error would have a URL. And that URL would have an associated abbreviated version for cases where we want to reference the error but want to save space.
The app developer would be under no obligation to provide anything at the error URL location. That would be optional but nice. Maybe the URLs would all be based on a global domain like wikipedia where anyone can contribute info. My main goal though is just to tag errors with something to make web searched more effective when I'm looking for help.

How do I generate a Sitemap.xml in Wicket?

I'm struggling to generate a dynamic sitemap for SEO purposes in a Wicket 1.5 application. I looked at this example but couldn't understand what they mean exactly.
I see I need to create an xml page and mount it but then it talks about generating the url list. How do I do this part? Is there functionality in Wicket to get a list of mounted pages? According to that link, it's "very easy" to do this in Wicket 1.5 so I must be missing something obvious.
Any tips or pointers gratefully appreciated! Thanks.
i did exactly this in 2010. there was a wicketstuff-minis project for this.
it could be possible it still works if you dig it out of the archives.
http://mvnrepository.com/artifact/org.wicketstuff/sitemap-xml
the sources must also be somewhere out there..
this was built for wicket 1.4 but i guess they changed enough to make it no longer work.

Magento ACP Category Manager Broken?

I'm having a strange issue in the ACP where the manage categories page looks like this: http://screencast.com/t/IcNbpP87 I'd really appreciate any insight you guys may be able to provide.
I've looked around for a couple days and am pulling my hair out.
Chrome
Displays a “New Root Category” form but you are unable to click a category to modify it.
Firefox & Safari:
Seems to return the proper data via ajax from the server, though it displays the information without parsing(?)
Looking at the source in firebug, it looks like data that isn’t being parsed correctly within the otherwise correct <div id="category-edit-container" class="category-content">
Source reference: http://pastebin.com/Zz7pKajj
I’d appreciate any suggestion on how to potentially move forward and get this fixed up. Thanks!
After going two day crazy with this issue in our case the solution was on the most unexpected location: It was the index.php that was corrupted the culprit. After removing some spurious code that seemed that was injected or by some way modified all is working as expected.
If there is content before the doctype header you will get this error. Check for that.

Resources