This module is an extension of context module
I think this is a good idea to control the display of the content of the page: node page + context node template
Usage:
1, the use of node page module set a node using a special template file (eg: page-xxx.tpl.php)
2, Use of the context node template to control the content display of the regions, all nodes that use those templates
Requirements:
Project Page: http://drupal.org/sandbox/zhiqiang.qiu/1728072
Version: Drupal 6.x-1.0
git: git clone --recursive --branch 6.x-1.x http://git.drupal.org/sandbox/zhiqiang.qiu/1728072.git context_node_template
Version: Drupal 7.x-1.0
git: git clone --recursive --branch 7.x-1.x http://git.drupal.org/sandbox/zhiqiang.qiu/1728072.git context_node_template
The dependencies module 'node page' just have a 6.x version,
http://drupal.org/project/node_page
so if you want to install the 7.x-1.x version ,you need to download
'node_page' D7 version module from:
| Comment | File | Size | Author |
|---|---|---|---|
| context_node_template.png | 6.66 KB | zhiqiang.qiu |
Comments
Comment #1
ColonelForbinX commentedModule works as advertised. I confirmed on a clean install that the context is correctly triggered based on $node->template, which is set by the node_page module.
Here's some issues:
Comment #2
zhiqiang.qiu commentedThank you for reviewing.
I have fix the code format error. ;)
Comment #3
zhiqiang.qiu commentedAnyone can help me ?
Waiting for the "fixed" status and promotion to Full Project.
Comment #4
issa.haddadinHello
I just checked on the automated project review and you still have some errors and warnings: http://ventral.org/pareview/httpgitdrupalorgsandboxzhiqiangqiu1728072git
Comment #5
zhiqiang.qiu commentedThank you for checking.
I have fix all errors and warnings again, I very hope to promotion to Full Project, can you help me ? :)
Comment #6
dharam1987 commentedHello,
I think you also have a branch for Drupal 7.x-1.x version, I think you may also inform about it in the issue summery.
Please put
git clone --recursive --branch 7.x-1.x http://git.drupal.org/sandbox/zhiqiang.qiu/1728072.git context_node_templateas the git command, as the one which you have kept is for you only, and it requires your profile password, reviewers might feel lazy and skip reviewing your project.Thanks
Comment #7
zhiqiang.qiu commentedok, I have do it like that.
Thanks
Comment #7.0
zhiqiang.qiu commentedgit address changed
Comment #8
Andreas Radloff commentedReview of 7.x branch:
You have named the class functions incorrectly in context_node_template_context_condition.inc, the module doesn't work.
conditionForm should be condition_form
conditionformsubmit should be condition_form_submit
optionsform should be options_form
optionsFormSubmit should be options_form_submit
Otherwise it seems to be working.
Comment #9
zhiqiang.qiu commentedThank you for checking.
I have fix all error, and I have test it carefully, I'm sure it can work well now
thanks :)
Comment #10
wuinfo - bill wu commentedTook a quick view of your project.
Comment #11
wuinfo - bill wu commentedComment #12
zhiqiang.qiu commentedIt's ok now , Thanks :)
Comment #13
alexmoreno commentedYou still have errors in your code
http://ventral.org/pareview/httpgitdrupalorgsandboxzhiqiangqiu1728072git
Comment #14
klausiThat minor coding standard issues are surely no application blockers, anything else? Please do a manual review.
We are currently quite busy with all the project applications and I can only review projects with a review bonus. Please help me reviewing and I'll take a look at your project right away :-)
Comment #15
pirog commentedI've done a manual review and it looks fine to me.
The only suggestion i have is to consider being a little more detailed with your commit messages in the future.
Only possible thing to consider is that this is barely over the "minimum length" requirement of 120 lines/5 functions. I have no idea where we are as a community on that debate but i am going to RTBC this and just have this as a note for an admin to make a call on.
Comment #16
stborchertThanks for your contribution, zhiqiang!
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 #17
joshuautley commentedGood job guys, been following.
Comment #18.0
(not verified) commentedchanged