This patch does various things:
(i) there was the odd URL flexinode/search, IMO flexinode search should be part of the main search. this patch does that.
(ii) search simply failed because ctype_id was never passed to the search function. Fixed in this patch.
(iii) it only used MENU_CALLBACK, and it was undocumented. I chose to enable it by default.
(iiii) there was no interface to find what flexniode-types you could search for, this patch adds subtabs for each flexinode type.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | patch_1.patch | 7.26 KB | bwynants |
| #2 | flexinode.search_search_style.diff | 6.79 KB | Bèr Kessels |
| #1 | flexinde_search.png | 24.61 KB | Bèr Kessels |
| flexinode.search.diff | 3.72 KB | Bèr Kessels |
Comments
Comment #1
Bèr Kessels commentedhere is a screenshot of how my changes appear. You can try them at http://staging.spelplezier.net/search/flexinode
Comment #2
Bèr Kessels commentedMore improvements made.
This patch makes flexinode return actual searhc result and even passes that trough the search result themes and context-generators.
Please give it a try! I will only commit this aafter I get some feedback on this!
Comment #3
fagoi've tested it.
on search/flexinode i get a notfound error (as there is no ctype_id to search for)
however it seems to work at your site?
then, what if there is only one content type?
then there will be no lokal task menu, so the user doesn't know whats different with the advanced tab
i like the idea, so +1 for it.
but imho the patch needs a little further work.
what about showing a short headline, if there is only one content type?
Comment #4
fagoah, i forgot to mention that in the search results, the node id is missing in the urls
Comment #5
bwynants commentedsame 'Page not found' when clicking on advanced. this is because search/flexinode has no id attached and the code triggers this as drupal_not_found
after clicking 'advanced' you have to click one of the labels...
as for missing node: change in flexinode_search_results
into
appart rom that, great patch!
Comment #6
scroogie commentedThe idea is great, i would like to see it contributed!
Comment #7
bwynants commentedFollowing changes work around the page not found...
and
Comment #8
Bèr Kessels commentedbwynants, please read drupal.org/diffandpatch. Sending in a patch makes it easier for all of us.
Comment #9
bwynants commentedwas working on that :-)
this is a patch file to be applied onto the 4.6.4 version from cvs
it fixed:
page not found and link not correct