Ajaxify Field Value Loader(FVL) is a simple module for hiding and display them by calling ajax-request of the value of certain fields for Drupal.
Initially the module was created to maximize the protection of personal data in the respective fields, not limited access rights from being indexed by search engines and bots. But can be used for many other purposes.
Features
- The choice of the necessary fields for each type of content.
- Replaces data field on link. With the loading of the corresponding value of the field after the click.
- Setting permissions to view the data for each of the selected fields.
-------------------------------------------------------------------------------------------------------------
Sandbox url : http://drupal.org/sandbox/dalay/1941492
Git link : The repository can be found here: git clone http://git.drupal.org/sandbox/dalay/1941492.git fvl
Also you can download it from here (versions for D6 and D7).
This is a Drupal 7 -module
Comments
Comment #1
klausiWe are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and put yourself on the PAReview: review bonus high priority list. Then I'll take a look at your project right away :-)
Comment #2
Dalay commentedOops, mistake in the title.)
Fixed.
Comment #3
Samuel Joos commentedHi Dalay,
It appears you are working in the "master" branch in git. You should really be working in a version specific branch. The most direct documentation on this is Moving from a master branch to a version branch. For additional resources please see the documentation about release naming conventions and creating a branch in git.
I have installed your module and everything seems to work but at first I was missing some simple usage instructions (in english). It wasn't very clear to me what I should do to get it working until I reviewed your code.
Your Demo page is having some trouble to find jQuery "Uncaught ReferenceError: jQuery is not defined".
Gr,
Samuel
Comment #4
Dalay commentedThank you for comment, Samuel.
This sandbox project and don't require version branches.
Instruction in English will be added later. For now, please read through Google Translate.
jQuery warnings caused by third-party file from metrica.yandex.ru(Web Analytics), not the module, and can't be edited by me.
Comment #5
sreynen commentedComment #6
markpavlitski commentedReview comments:
fvl_get_field_value() does not account for node revisions, so viewing past revisions won't work with this module.
Add a configuration entry in fvl.info so users get a config link on the module page.
fvl.module:39-45 - this is unnecessary, remove all of this and replace line 47 with:
which will replace all deltas anyway.
fvl.module:124 - split this line into
if(user_access(...)) {...}for readability.Comment #7
Dalay commentedThanks for looking, markpavlitski.
I don't understand you. fvl_get_field_value() returns field value from current revision, only thing that we need.
Added.
So do not. Otherwise, we lose all the other useful properties of the field (such as title, label_display...).
Сhanged.
Comment #8
markpavlitski commented@Dalay Thanks for responding quickly, and apologies if I wasn't being clear.
My point here is that on the past revisions page for a node, e.g. http://mysite.com/node/1/revisions/1/view the user should see the field values corresponding to the selected revision. Instead, when they click 'show', they see the current field value.
I think you should either allow for previous field revisions to be displayed (since this is core functionality), or at the very least document it as a known issue on your project page and README.txt.
That's a very good point! Please ignore my comment.
Since you've gone to the trouble of writing a documentation page and creating a demo, I would suggest you add these to your sandbox page. You can do this by editing the page and adding them under the 'Project resources' tab.
Comment #9
zterry95 commentedmove function fvl_admin_settings() from fvl.module to fvl.admin.inc
this has been a standard way now.:)
Comment #10
Dalay commented2markpavlitski:
Working with revision fixed. Thanks for clarifications.
Demo works fine.
2zterry95:
Moved, though I think it's overkill.
Comment #10.0
Dalay commentedAdded alternative download link.
Comment #11
a.milkovskyManual review:
Interesting idea.
Everything works fine. But I noticed one moment with displays. Module always uses default display of field even if I changed it in settings.
See my screencast http://screencast.com/t/Qogr800spr
It's because of display parameter in
makes sence to add 1 more parameter into fvl_get_field_value function like $display.
Comment #12
Dalay commentedThanks, Alex. Fixed.
Comment #13
Dalay commentedReview bonus tag added.
Comment #14
hardcoding commentedHi Dalay,
you've built a very interessting module. I like the idea.
i tested your module and it didn't work for me.
In your file fvl.module on line 98 there is:
$display = $instance['display'][$view_mode];In $instance['display'] i have 2 view modes: default and teaser.
I am on my node so my view mode should be 'default'.
Now when i print out the variable $view_mode i get the string 'full'.
Yes my default view mode is the full version.
You have to look up if $view_mode ('full' in my example) is default.
Comment #15
Dalay commentedThanks for review, hardcoding.
Specify of display has been replaced:
Comment #16
teyser commentedHi dalay,
Thanks for bring to the valuable module to the our(drupal) community.
Module is working fine without any issues.Could you please add some user friendly info for which was highlighted in the attached image.
Sorry for my poor english ( I am not native speaker)
Thanks,
-Raj.
Comment #17
Dalay commentedHi teyser. Thanks for review.
Added:
Sorry, but I don't quite understand what is wrong on permissions page.
Comment #18
teyser commentedHi Dalay,
Thanks for taking my feedback.
In the permission description, you gave like "Permission to view data from field body".
As per your module, we have an option control the view of the fields other than title of any content type right?
Could you please give easily understandable permission description message.(Permission to view the fields(Except title) for any content type like page or article)
Thanks,
-Raj.
Comment #19
Dalay commented@teyser
On permissions page displays only those fields that were marked on the module settings page (as type name -> field name). Not any, Raj.
Comment #20
klausimanual review:
Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #21
Dalay commentedThanks for review, klausi.
Initially, the module was created specialy for working with nodes. Let it remain in current version. FVL 7.2 will be work with any entity types, if will be requests from users about this necessity.
Info in README.txt has been added.
Sometimes just need to inform that there is such data. Even if they can't see. Reworked as an option in settings and can be switched off.
Attribute "nofollow" added.
But then will not be able to assign a different formatter for display data. When processing field through hook_node_view() such a problem does not occur.
Yes, I missed this. Fixed.
Comment #21.0
Dalay commentedLinks on reviews of other projects added.
Comment #22
Dalay commented+PAReview: review bonus
Comment #23
ethantPAReview.sh comes back clean, code appears properly formatted, and module does what developer says it is supposed to do. Changing status to reviewed & tested.
Comment #24
klausiThanks for your contribution, Dalay!
I updated your account to let you promote this to a full project and also create new projects as either a sandbox or a "full" project.
Here are some recommended readings to help with excellent maintainership:
You can find lots more contributors chatting on IRC in #drupal-contribute. So, come hang out and get involved!
Thanks, 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.
Thanks to the dedicated reviewer(s) as well.
Comment #25
Dalay commentedThank you to all reviewers for taking the time on my project.
Comment #26.0
(not verified) commentedLinks on reviews of other projects added.