Posted by greggles on March 3, 2009 at 1:57pm
Jump to:
| Project: | Views Saved Searches |
| Version: | 6.x-1.0-beta1 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
I'd like to provide a block of my saved searches. Attached is a basic patch which adds this for a site of mine, but has the distinct problem of hardcoding the view ID and view URL. I'm posting here in the hopes that others can help finalize it so it can be more generalized.
| Attachment | Size |
|---|---|
| saved_searches_user.patch | 2.06 KB |
Comments
#1
Initial code review:
- Indentation problems in hook_block().
- Doxygen is missing for views_savedsearches_per_user()
- What's this for exactly:
+ // hack to add support for saving advanced views+ if ($params['adv-flag']) {
+ $filters['adv-flag'] = $params['adv-flag'];
+ }
Thanks for getting this started! :)
#2
Sure, this was a hack on my site...I don't know how to do it properly so I can't drive it home.
The hardcoded "adv-flag" is a view on that site. This obviously has to be generalized quite a bit.
#3
Hi,
I'm very interesting by this feature...
I would like to know if this feature is planned on the new version of views saved search ?
Thanks by advance ;)
Best Regards,
Pyd
#4
Subscribing...
#5
+1 on this feature, maybe I know someone who could help ;)
Patchak
#6
lol
I think to savoir who could help to do that ;)
#7
Hah :)
It's fixed now. Please test it.You need to run update.php before utilizing this feature.
I needed to extend greggles's patch as the display id is needed to determine the path.
Thanks for all of you guys above.
Download the next daily dev or use the CVS to try this feature immediately.
#8
Automatically closed -- issue fixed for 2 weeks with no activity.