Node Detail View
The node detail view module allows you to view a node on the /admin/content page itself along with the node's additional information. You only need to install this module and visit /admin/content page.
You will see a drop-down at the top which says
- List View
- Detailed View
List View is the traditional listing of node titles (link to corresponding node), and
Detailed View is the new way of content management.
Objective
The main objective for creating this module is to ease content management so that you do not need to visit /admin/content page again and again, you are provided with all the nodes at one place, and with this you can view any node at any given time.
Project page
https://drupal.org/sandbox/gauravjeet/2011490
Link to git repository
git clone http://git.drupal.org/sandbox/gauravjeet/2011490.git node_detail_view
Manual Reviews of other projects
https://drupal.org/node/2044219#comment-7662731
https://drupal.org/node/2027253#comment-7673249
https://drupal.org/node/1856530#comment-7673169
https://drupal.org/node/2041597#comment-7662571
3 more manual review of other projects
https://drupal.org/node/2009268#comment-7695411
https://drupal.org/node/2050019#comment-7703787
https://drupal.org/node/2039489#comment-7704177
Manual reviews of other projects
https://drupal.org/node/1937044#comment-7727599
https://drupal.org/node/1986148#comment-7727635
https://drupal.org/node/2055397#comment-7727661
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | node_detail_view-review.png | 28.01 KB | federiko_ |
Comments
Comment #0.0
gauravjeet commentededited sandbox link
Comment #0.1
gauravjeet commentededited sandbox url
Comment #1
PA robot commentedWe 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 #2
Darth Raven commentedFound some issues:
node_detail_view.module:
Line 29:
'access callback' => 'user_access'user_access is the default callback so the 'access callback' array element is not needed
Line 175:
This query allows node access control bypass, so it's a security flaw.
See https://api.drupal.org/api/drupal/modules!node!node.module/group/node_ac....
In your case just use addTag('node_access').
Line 210:
Better use theme output than directly embedded HTML code .
Comment #3
Darth Raven commentedComment #4
zestagio commentedNice module, but node_detail_view.module:
Line 187:
I think that should be used instead 'und' constant LANGUAGE_NONE
Before:
After:
I also think that the lines 195, 200, 210 and 213 you have to use theme functions.
Sorry for my english.
Comment #5
gauravjeet commentedHi Darth Raven,
Thanks for the review, all changes made to the module file
Comment #6
gauravjeet commentedHi zestagio,
thanks for the appreciation
yes, of course LANGUAGE_NONE is a better option to use, thanks.
all changes made to the module file..
Comment #7
zestagio commentedHi, I found a bug:
I chose view style = list style, select all nodes and chose the option to Delete selected content and get the following message:
If there are no nodes, i get a notice:
Notice: Undefined variable: detail in node_detail_view_form_node_admin_content_alter() (line 106 of /home/quickstart/websites/organicmw.dev/sites/all/modules/node_detail_view/node_detail_view.module).Comment #8
medienverbinder commentedHi,
Automated review: PAreview.sh on ventral.org: http://git.drupal.org/sandbox/gauravjeet/2011490.git... 0 problems found.
Coder Drupal module: OK, nothing found.
Manual review:
- Install a fresh drupal 7.22
- Install module
- Visit /admin/content page (after installation of Drupal already one node exists)
- added some nodes (article, basic page, webform)
- Visit /admin/content page
- Result as expected: select option (View Style) "List View": The traditional listing of node titles (link to corresponding node), and
- Result as expected: select option (View Style) "Detailed View" The new version of content management that gives a preview of a node.
One suggestion: You may want still a fieldset to generate your select box, it looks a little clearer....
Like zestagio in No #7 I get self same error if i choose the option to Delete selected content or if no nodes are available.
Best regards.
Comment #9
gauravjeet commentedhi zestagio,
my bad, should have checked it before uploading.
corrected
Comment #10
gauravjeet commentedHi medienverbinder,
thanks for the manual review, bugs have been fixed..
Comment #11
federiko_ commentedHello gauravjeet_singh,
Here is some quick review.
I enabled the module in a fresh drupal installation and it worked well for me.
Just a few comments :
- You could put the link to the config more in a submenu and not in the root of the main admin menu. The link could for example be placed in user interface, in configuration menu :
admin/config/user-interface/node_detail_viewThen in the .info file you could add this line, so it's possible to reach configuration form directly from modules list:
configure = admin/config/user-interface/node_detail_view- .module l.76 & 96 : "Implements"
- I get the following notice when going to admin/content :
Undefined index: #options in node_detail_view_form_node_admin_content_alter() (line 115 of/Applications/XAMPP/xamppfiles/htdocs/tdftest/sites/all/modules/node_detail_view/node_detail_view.module).In .module l.115, you could verify if variable is set :
if (isset($form['admin']['nodes']['#options']) && count($form['admin']['nodes']['#options']) > 0) {- .module l. 284 & 285 : I think the use of the semantic
<i>tag is not necessary here and may be it would be better to use css font-style:italic but it's a detail.- Content interface : you could adjust theming of border between nodes list and current node content (I've uploaded a screenshot / admin theme used = Seven).
Good luck !!
Comment #12
gauravjeet commentedHi federiko_ ,
Thanks for the review. I have made the required changes.
Please check.
Comment #13
abhitesh.das commentedHi,
I installed the module and it worked fine. It works as expected. Good work !!
Just a few minor things to take care of:
1. Still an error reported by http://ventral.org/pareview/httpgitdrupalorgsandboxgauravjeet2011490git . Please fix it asap.
2. File: node_detail_view.module
Before:
After:
The string inside t() should not start or end with space, it is hard to translate correctly. FYI: https://drupal.org/node/304150
3. File node_detail_view.info:
Before:
configure = admin/config/administration/node_detail_viewRight now it leads to the default admin config page rather than the config page of your module.
After:
configure = admin/config/user-interface/node_detail_view4. File node_detail_view.module
return '<div id="node_details" style="text-align:center;color:darkgray;">Preview not available.</div>'Its recommended to avoid inline styling. Anyways, the module has a css file, I would recommend using a class instead of inline styling.
5. node_detail_view.css
Although you can ignore this, but using color constants like "darkgray" is discouraged. Its recommended to use color codes for example: #ccc
Comment #14
gauravjeet commentedHi abhitesh.das,
Thanks for the review.
Comment #15
gauravjeet commentedHi all,
Please review this module..
Comment #16
artur.martirosyan commentedNice module, just couple of quick observations:
1. There are some inline styles which easily can be moved to css file
line 244
'#prefix' => !empty($options) ? '<div id="node_details" style="float:left;"><i style="color:darkgray;">Click on node title on the left to view.</i></div>' : '<div id="node_details" style="float:left;"><i style="color:darkgray;">Preview not available.</i></div>',and line 353
return '<div id="node_details" style="text-align:center;color:darkgray;">Preview not available.</div>';2. On the same line 353 the string 'Preview not available' will not be translated. Better use t() here.
Same applies to lines 299, 244
Comment #17
gauravjeet commentedHi arthgwyr,
Thanks. Appreciate your effort for going into so much detail.
Required changes made.
Comment #17.0
gauravjeet commentededited git repository link
Comment #18
gauravjeet commentedHi,
Did reviews of other projects :
https://drupal.org/node/2044219#comment-7662731
https://drupal.org/node/1856530#comment-7662621
https://drupal.org/node/2041597#comment-7662571
Comment #19
artur.martirosyan commentedJust one small addition - lines 63 and 115:
Selectable options must be processed by t() as well
Comment #19.0
artur.martirosyan commentedupdating manual review links of other projects
Comment #20
klausiRemoving review bonus tag, you have not done all manual reviews, you just posted the output of an automated review tool. Make sure to read through the source code of the other projects, as requested on the review bonus page.
I also removed the automated review from the issue summary.
Comment #21
gauravjeet commentedHi arthgwyr,
Thanks for your suggestion, yes selectable options must also be in t().
Done.
Comment #22
gauravjeet commentedHi klausi,
Reviews of other projects
https://drupal.org/node/2044219#comment-7662731
https://drupal.org/node/2027253#comment-7673249
https://drupal.org/node/1856530#comment-7673169
https://drupal.org/node/2041597#comment-7662571
Comment #22.0
gauravjeet commentedremoved automated review
Comment #23
klausimanual review:
<div class="node_detail_view_author_column">Roles</div>: all user facing text must run through t() for translation.<script>alert('XSS');</script>I get a nasty javascript popup on the node detail page. You need to sanitize all user provided text before printing. Please read https://drupal.org/node/28984 again. This is not a security issue per se because a trusted permission is needed to inject the malicious role name in the first place, but it should be fixed anyway.Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Comment #24
gauravjeet commentedhi klausi,
thanks for reviewing
- thanks for pointing out undeleted variables in node_detail_view_uninstall(), that was careless of me of not keeping a note.
- t() function corrected
- node_detail_view_theme() : prefixed module name to avoid name collisions
- node_detail_view_form_node_admin_content_alter() : strip_tags() used once
- for this error that popped up, your user must not have been an authenticated user - fixed this issue
- the cause for this bug 'blocked user' showing up would be the same as above - fixed this issue
- filter_xss_admin() does not seem to be a better choice to me here because i need to sanitize the string to the extent that there should
not be any html tag present in the string, filter_xss_admin() allows for some tags if provided as parameter and that to for admin-only
use.
- t() function added for all user facing text
- used check_plain() for avoiding XSS exploits
Comment #24.0
klausiupdating links for reviewed other projects
Comment #25
gauravjeet commentedklausi,
3 more manual review of other projects
https://drupal.org/node/2009268#comment-7695411
https://drupal.org/node/2050019#comment-7703787
https://drupal.org/node/2039489#comment-7704177
Comment #26
klausiReview of the 7.x-1.x branch:
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.
manual review:
But otherwise looks RTBC to me. Removing review bonus tag, you can add it again if you have done another 3 reviews of other projects.
Assigning to jthorson as he might have time to take a final look at this.
Comment #27
gauravjeet commentedReviewed other modules :
https://drupal.org/node/1937044#comment-7727599
https://drupal.org/node/1986148#comment-7727635
https://drupal.org/node/2055397#comment-7727661
Comment #27.0
gauravjeet commented3 more manual reviews
Comment #27.1
gauravjeet commentedadded manual review links
Comment #28
flebrenn commentedHello, your module is cool.
Manual review:
node_detail_view.module
l.122: unused variable $header.
Bug report
Ajax conflict: With a product display (node with product reference field) on drupal commerce, when I click on "Add to cart" button. I am rerouted to a blank page (http://example.com/system/ajax).
Bye.
Comment #29
klausiProject applications are tasks.
The bugs reported in #28 don't seem to be blockers and there were no other objections for more than a week, so ...
Thanks for your contribution, gauravjeet_singh!
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.
Comment #30
gauravjeet commentedThank you everyone for the support :)
Comment #31.0
(not verified) commentedminor corrections