Hey everyone,
Drupal is really amazing me everyday with it's strengths over Joomla!, but I did have a question pertaining to the Flag Module http://drupal.org/project/flag

With the nodes that are flagged, can these be somehow collected and sent to an administrator? For example:

A user browses a product catalog and "flags" several products to their favorites list. Since this product catalog is not an ecommerce solution, more or less a "view and contact us if you want to purchase something" type of site, is there a way to then send the products they have flagged to an administrator - with some type of "Send my favorite products" type of link?

I really appreciate any help. Thanks!

Comments

steffenr’s picture

You can use the rules module to capture the flag-Actions..

Just have a look at the module-page: http://www.drupal.org/project/rules

SteffenR

yellowhousedesign’s picture

SteffenR,
I really appreciate the link! It sounds like the rules module will be the way to go. I saw the Rules Integration page for the Flag Module http://drupal.org/node/407070 which looks very promising - so I'll have to see what I can come up with based on that page. Thanks again!

steffenr’s picture

Rules is a really powerfull module - you'll save a lot of time - cause you can click conditional actions in a easy UI..

Just have a look at the screencasts from drupalcon Cph:
http://more.zites.net/node/13512
http://www.archive.org/details/BeAHappierDrupalDeveloperWithRules
http://nodeone.se/blogg/be-a-happier-drupal-developer-with-rules-present...

SteffenR

yellowhousedesign’s picture

SteffenR,
I'm really astounded by the amount of help you've given me! Usually, most people on different forums would provide your first answer and be done. But those videos/presentation links have been extremely helpful. Drupal seems to have a VERY friendly community, so I think I may stick around a while and help where I can as well :)

After playing around with Rules so far, I've definitely seen it's power and the admin UI is very straight-forward. I did have one more follow-up question, which may or may not be a simple one to answer, as I didn't see this out of the box:

Based on when a user marks a node as a favorite, it can perform an action (in my case, sending an email to an administrator) - which in itself works great. But in my specific case (which I'm sure other people may have a use-case for) is to be able to collect a group of bookmarked content - and then based on the user's discretion, then send out an email to an administrator with some type of "Send my favorite products" button. I didn't see this in Rules by default - and wasn't sure if it was something I was missing or possibly an easy walk-through.

I really appreciate all of your help and/or anyone else that may be able to lend a hand. Thank you again very much!

steffenr’s picture

You are right - the drupal community is very helpfull - i learned a lot - but more in the german part of the community - we also have a forum there - called drupalcenter.de ..

I never tried to buildt a feature you described above - but i think it should work with views and views bulk operations (VBO). You can build custom bulk operations with the help of rules - and a view which displays your bookmarked content. With the help of a bulk operation you can apply an action to the selected content..

http://drupal.org/project/views_bulk_operations
http://drupal.org/project/views

yellowhousedesign’s picture

SteffenR,
Again, Views Bulk Operations, pure genius ha - thank you very much for that link. I tried to combine Views Bulk Operations with Views Send http://drupal.org/project/views_send and wasn't necessarily getting the results I was looking for. I posted on the official Rules group http://groups.drupal.org/node/93299 and tried the WebForm approach that user discussed - which works great - but getting pass the issue that if a user deletes their bookmarks after they send it - is kind of a bummer. My PHP knowledge isn't up to par with developing a custom PHP function favouritelist_get_list_formatted($uid) that loads the view above and returns its output in a format that can be included in an email (which probably means stripping HTML and making a very simple bullet list) - so I may try the Rules, Views, Views Bulk Operations scenario you are talking about and see if that works. Thank you again very much for your help!

j4’s picture

Hi,

I would like to use the same functionality. Any help you can provide on this? Did you get any further with it?

Thanks
Jaya

Jaya