I brought this mentality to some of the recent modules I've wrote for my own employer. The first module that I would like to contribute is a smaller helper module for 'Contexts'. It is called 'Context Keywords', and allows developers to trigger contexts based on the keywords someone searched in a search engine upon visiting your site. There is a module called 'Google Keyhaviour' that aims for a similar purpose, however my module is different because it is focused solely around 'Contexts'. The referrer URL is stored in a session, and then the keywords can trigger context throughout the session so that it is not limited to the landing page. The module is %100 finished, though I'm sure there is always room for improvement.
The second module I will be contributing after this one is a module that returns the last url a user visited before filling out a 'webform'. This allows for much more precise tracking with google analytics and adwords campaigns as the analytics code is able to retrieve the last visited path. From this you can easily compare which pages are most effective at converting users. This module is also 100%, however I'll likely wait until the first project is up before I look to the second.
I appreciate your time.
- Michael Lander
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | context_keywords.tar_.gz | 2.58 KB | michaellander |
| #10 | context_keywords.tar_.gz | 2.57 KB | michaellander |
| #1 | context_keywords.tar_.gz | 8.15 KB | michaellander |
Comments
Comment #1
michaellander commentedAttached module. *Sets to Drupal 7 critical*
Comment #2
michaellander commentedComment #3
avpadernoHello, and thank you for applying for a CVS account.
Did you open a feature report for Contexts to add the features present in the proposed module in the existing project? Is there a reason the additional features should not be part of the existing module?
Comment #4
michaellander commentedHi!
I did not as there was already a feature request made by someone else about it.
The topic can be found here: http://drupal.org/node/885072
Context was created to be extremely pluggable. One if it's greatest assets is that users can pick and choose the context add-ons they need to achieve their goal. As more our built, it is desired that the user be able choose only the ones they need instead of just giving the users all of them as many they won't need. The other module that was recommended deals solely with reactions and to me seems out of scope. I don't think we should merge a module focused on user experience based on keyword conditions into another module that is used to set a http header reactions. There is no real overlap in the code even.
There are numerous modules out there that contribute very specific reactions or conditions to context, and again, I believe it's what makes context such a powerful tool.
Examples:
Context PHP
Context Menu Block
Context Reaction Theme
Context HTTP Headers
Context OG
Context Add Assets
Comment #5
michaellander commentedForgot. :/
Comment #6
brianV commentedHello, and thank you for submitting a CVS application.
Before your module or theme is reviewed, I would like to present this checklist which covers 90% of the types of errors that reviewers are forced to reject an application for. Please make sure the items on the checklist are all taken care of prior to setting your application back to 'Needs review'.
Once you have double checked all the above items, please set your application status to 'needs review'. If you made any changes to the code, please make sure to upload the updated module as well.
Comment #7
michaellander commentedAll of these were done prior to submitting the CVS request as per instructions.
Comment #8
brianV commentedmikegfx:
I appreciate you quickly breezing over the list I posted, but on review, the following items need to be corrected in your code:
Also, please consider making the following line more readable:
This looks like it will be a very useful module!
Comment #9
brianV commentedComment #10
michaellander commentedThanks Brian!
10. Sorry about that, I could have swore I read elsewhere that it was supposed to be in there. I should have just asked. Fixed!
8. Fixed!
I split the ternary out into lines, hope that's what you were looking for.
- Mike
Comment #11
michaellander commentedMade one small fix on line:60 of context_condition_keywords.inc
Comment #12
brianV commentedMike,
This looks great now with the exception that the $Id tag in context_condition_keywords.inc is slightly wrong - just make sure to use the same format as you did in the .module file.
However, that minor change could be made before your initial commit. As far as I am concerned, this module looks ready.
Comment #13
michaellander commentedFixed it locally. Thanks for your help!
Comment #14
avpadernoThank you for your contribution! I am going to update your account.
These are some recommended readings to help with excellent maintainership:
You can find more contributors chatting on the IRC #drupal-contribute channel. So, come hang out and stay involved.
Thank you, also, for your patience with the review process.
Anyone is welcome to participate in the review process. Please consider reviewing other projects that are pending review. I encourage you to learn more about that process and join the group of reviewers.
I thank all the dedicated reviewers as well.
Comment #16
avpaderno