This is a simple module adds a link to a Read more the details in the teaser ajax. This will in effect create a blog like on facebook (no need to go back to the blog)
This module is designed for personal needs, and has two objectives: to make life easier for developers who collect site without delving into writing code, and the second to show by example the possibility ajax in Drupal.
This module is compatible views,views_load_more.
https://www.drupal.org/sandbox/artmix/2366527
git clone --branch 7.x-1.x http://git.drupal.org/sandbox/artmix/2366527.git read_more_ajax
Pareview:
http://pareview.sh/pareview/httpgitdrupalorgsandboxartmix2366527git
here a demo click on the Read more
http://d7.vdrupale.com/
Reviews of other projects:
https://www.drupal.org/node/2326223#comment-9553307
https://www.drupal.org/node/2411721#comment-9552927
https://www.drupal.org/node/2358759#comment-9553341
Comment | File | Size | Author |
---|---|---|---|
#17 | link_more_ajax.patch | 3.57 KB | Kartagis |
Comments
Comment #1
abacaba CreditAttribution: abacaba commentedComment #2
abacaba CreditAttribution: abacaba commentedComment #3
PA robot CreditAttribution: PA robot commentedThere are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxartmix2366527git
We are currently quite busy with all the project applications and we prefer projects with a review bonus. Please help reviewing and put yourself on the high priority list, then we will take a look at your project right away :-)
Also, you should get your friends, colleagues or other community members involved to review this application. Let them go through the review checklist and post a comment that sets this issue to "needs work" (they found some problems with the project) or "reviewed & tested by the community" (they found no major flaws).
I'm a robot and this is an automated message from Project Applications Scraper.
Comment #4
xandeadx CreditAttribution: xandeadx commented1. "name" in .info must begin with a capital letter
2. "version" in .info need not
3. Classes in more_ajax.js must be a dash instead underlining
4. $items['more/node/%'] -> $items['more/node/%node']
5. 'access callback' => 'access content' -> 'access callback' => 'node_access'
6. In _more_ajax_content() use underlining instead of camelCase notation
Comment #5
abacaba CreditAttribution: abacaba commentedComment #6
abacaba CreditAttribution: abacaba commentedComment #7
abacaba CreditAttribution: abacaba commentedComment #8
abacaba CreditAttribution: abacaba commentedComment #9
abacaba CreditAttribution: abacaba commentedComment #10
naveenvalechaUpdated git clone url and added pareview.
Comment #11
abacaba CreditAttribution: abacaba commentedhere a demo click on the Read more
http://d7.vdrupale.com/
Comment #12
abacaba CreditAttribution: abacaba commentedComment #13
rootworkI think more explanation and screenshots would help make this project clearer. Something like: "Turn the 'Read more' link into an Ajax link that loads the rest of the body of a node inline."
Also it would be helpful to note whether this loads the full node (with things like node links and comments) or just the rest of that body field.
The demo is definitely helpful though.
Comment #14
vanyamtv CreditAttribution: vanyamtv commentedWell, first of all, you've stated the "package = Core" in your info file, just remove it.
Comment #15
abacaba CreditAttribution: abacaba commentedComment #16
yuriy.kostin CreditAttribution: yuriy.kostin commentedHi artmix. Something wrong with your README file. In repository of project this file exist but PReview was find a mistake: http://prntscr.com/5v6yed Read details https://www.drupal.org/node/1587704 [5.2 Ensure the repository contains a detailed README.txt.]
Comment #17
KartagisAlso, there is a link_more_ajax directory inside the project directory when we clone the project. This is wrong, unless you plan to introduce more modules in the project. Attached is a patch.
Comment #18
abacaba CreditAttribution: abacaba commentedComment #19
abacaba CreditAttribution: abacaba commentedComment #20
joachim CreditAttribution: joachim commentedGood idea, and works very nicely!
A few glitches though:
First off, this module appears to be in a subfolder in the git folder. That's not right...
> description = Adds a link to a more ajax
This doesn't quite make sense.
Your functions are missing documentation of their @params and @returns.
(BTW, Please don't use tags for adding random keywords or duplicating any other fields.)
Comment #21
abacaba CreditAttribution: abacaba commentedI modified the module and considered all comments
Comment #22
abacaba CreditAttribution: abacaba commentedComment #23
abacaba CreditAttribution: abacaba commentedComment #24
abacaba CreditAttribution: abacaba commentedComment #25
abacaba CreditAttribution: abacaba commentedComment #26
abacaba CreditAttribution: abacaba commentedComment #27
abacaba CreditAttribution: abacaba commentedComment #28
abacaba CreditAttribution: abacaba commentedComment #29
abacaba CreditAttribution: abacaba commentedComment #30
abacaba CreditAttribution: abacaba commentedComment #31
mpdonadioThis will be my next review, which will either be tonight or tomorrow.
Comment #32
mpdonadioAutomated Review
Review of the 7.x-1.x branch (commit 3460ae4):
This automated report was generated with PAReview.sh, your friendly project application review script. You can also use the online version to check your project. You have to get a review bonus to get a review from me.
None of these are major or blcokers. Just fix when you can.
Manual Review
(*) No, you have a node access problem. If a node is unpublished or unaccessible, it is still possible get it via the AJAX menu.
read_more_ajax_menu() should look more like
This will make sure the user has access to the full node. Then, since this is using a loader placeholder (see hook_menu()), you change
and then make the appropriate logic adjustments.
To test this, make an unpublished node, and then manually browse to more/node/1234 (or whatever the nid is for the unpublished node), and make sure you don't get back the node in the AJAX.
(+) In read_more_ajax_node_view_alter(), using #attached is preferred over drupal_add_js() and drupal_add_library().
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
If added, please don't remove the security tag, we keep that for statistics and to show examples of security problems.
This review uses the Project Application Review Template.
Comment #33
abacaba CreditAttribution: abacaba commentedI fixed a bug with the safety standards take into account all the coding and even added the admin interface to include different types of nodes
Comment #34
abacaba CreditAttribution: abacaba commentedComment #35
naveenvalechaCongrats artmix!, Thanks for the contribution!
Manual Review :
The starred items (*) are fairly big issues and warrant going back to Needs Work. Items marked with a plus sign (+) are important and should be addressed before a stable project release. The rest of the comments in the code walkthrough are recommendations.
P.S.: I have not used the whole template because it is already used above and addressed the missing things.
I have seen you have fixed the above security issue.I have seen no major api problem,security issue and license problem.So marking this to RTBC.
I think @mpdonadio forget to remove the review bonus tag from the application.
In the meanwhile I would encourage you to get another review bonus by reviewing 3 more project applications.
Comment #36
naveenvalechaAs discussed with klausi over IRC,The removing of the bonus tag to the reviewers, they can do it if they want, but they don't have to.
the project page also needs a little more cleanup.See for more information https://www.drupal.org/node/997024
Comment #37
abacaba CreditAttribution: abacaba commentedI have implemented your recommendations.
And project page https://www.drupal.org/sandbox/artmix/2366527
Comment #38
naveenvalechaAddressed my above points.
Commit history : "finish", "finish2", "finish3" Use the proper commit messages.See https://www.drupal.org/node/52287
Comment #39
mpdonadioManual Review
Review of the 7.x-1.x branch (commit 3db5c9f):
PHPStorm is warning about a few of the docblocks b/c bad syntax. See https://www.drupal.org/coding-standards/docs
You config form can be moved to an include. This can help with memory. See the docs for hook_menu().Oops. This was already done.Node access problem is gone; I explicitly tested it and got the 403 text in the AJAX response.
Not seeing any blocking issues.
Comment #40
mpdonadioThis was RTBC and new features brought this above the waterline for vetted access, so...
Thanks for your contribution, artmix !
I updated your account so you can 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 stay 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.