Drupal development Qs

Events happening in the community are now at Drupal community events on www.drupal.org.
GirlInTech's picture

Hi all,
I'm so relieved to have found this group... as a girl in tech it does get pretty lonely out there... I've been developing and maintaining sites with Drupal for about 4 years now, and am working hard founding a startup, a new platform built on Drupal.

I'm developing the Drupal site myself, doing pretty well on my own, but would love to ask some questions, and on Stackexchange and stackoverflow questions often die a slow and painful death. As a woman I feel like crying out for godsakesjustgimmeachance, its hard enough just being female here!!

Can I possibly throw some questions to the community here? I've got a bit stuck with some intricacies of Drupal rules, and also needing some help setting up a WebServices rest service to feed into views. (Can outline specifics of my questions. Just would first like to check if this is the place to do it, or if there's anywhere else I can?)
Thanks so much! Hope to hear from you soon. And if any of you are in the Bay area, do let me know... Would love to connect.

Comments

Ask Away!

slsonnier's picture

Welcome and ask away!

Thank you! Rules q...

GirlInTech's picture

Thank you so very much slsonnier and all reading:) OK I think the rules setup may be easier than the rest server, so I'll first start with that Q!

How can I trigger a rules action when my proximity map returns NEW listed nodes. I can include a VBO for the proximity map, and set a rules action for 'VBO returns a list" with 1 or more items. But how can I specify it to be triggered by an event or condition for only the NEW item returned on VBO view? The scenario is this: I have a proximity map working, centered on my user location. I want to send out an alert to my users when they are near the mapped content. (hypothetically eg if they neared a Starbucks, they get a discount coupon). I have rules view VBO set up so it can send an email to all the returned nodes for the proximity map. I can schedule the rules to run eg every 5 minutes to check the map. But I don't want it to end up sending repeat notifications about hte same store while they're in the same area. Just to send notifcations when another store comes onto the radar
.
Welcoming your thoughts! Thanks extremely muchly :)

Thank you! Rules q...

GirlInTech's picture

Thank you so very much slsonnier and all reading:) OK I think the rules setup may be easier than the rest server, so I'll first start with that Q!

How can I trigger a rules action when my proximity map returns NEW listed nodes. I can include a VBO for the proximity map, and set a rules action for 'VBO returns a list" with 1 or more items. But how can I specify it to be triggered by an event or condition for only the NEW item returned on VBO view? The scenario is this: I have a proximity map working, centered on my user location. I want to send out an alert to my users when they are near the mapped content. (hypothetically eg if they neared a Starbucks, they get a discount coupon). I have rules view VBO set up so it can send an email to all the returned nodes for the proximity map. I can schedule the rules to run eg every 5 minutes to check the map. But I don't want it to end up sending repeat notifications about hte same store while they're in the same area. Just to send notifcations when another store comes onto the radar
.
Welcoming your thoughts! Thanks extremely muchly :)

If I'm correctly

kimberlydb's picture

If I'm correctly understanding, I think probably the easiest would be to add an item to a list that is associated with the user or the session. ie. When you fire the email, push the value (of the nid or something of the result) onto a list (potentially just a user field). Then as a condition just check to see if the item is already on that list.

Alternatively, rather than the rule running every 5 mintues, you may want to create your own rule event for specifically when a new location is found. http://internetdevels.com/blog/creating-custom-events-and-actions-using-...

Thanks

GirlInTech's picture

Thank you so much Kimberlydb - great suggestions, very helpful. I'll try that..!

GirlInTech's picture

Hello all,
A quick Q that I think will be easy for many of you, who are more experienced!

I'm new to setting up webform Tokens and can't find any good instructions about setting them up, so would love any help you can give on how I set up tokens for these simple options:
I want specific node titles to be the selectable options in a webform, so that when someone selects that option on webform 'submit', it redirects them to that.

Eg I want the form to show radio box options, which eg are names 'Renata', 'Marcela' etc.
Clicking 'Renata', 'Marcela' etc should then redirect the user to node titles (eg a page titled Renata-info).
As a more advanced option: I'd like also to be able to set for these to link to node titles which is data in a node fields eg Renata-title is field A.

I presume I note the girls names as the 'value', and then I need a token for the 'key'? If so, what tokens do I use to note a specific node-title, or a field (eg field A) in a specific node-title (eg fieldA of page titled Renata-info)?

Then I presume in the 'custom URL' on the form submission I should just note "%get[key]"

I could of course just give a list of weblinks on a page for them to click, or set up menu blocks eg so that a menu gives them options, but for development and design reasons I'd prefer this to be a webform with radio boxes to click on.

I think this is an easy question - thanks so much for any tips/ help you can give me with it! (there's a first time trying to learn everything)