Simple Meta for Content Types extends the Simple Meta module allowing you to set meta tag patterns for content types in addition to meta tag patterns per path.

Project Page: https://www.drupal.org/node/2484375

Setting up repository for the first time

git clone --branch 7.x-1.x http://git.drupal.org/sandbox/drubage/2484375.git simple_meta_for_content_types
cd simple_meta_for_content_types

Comments

PA robot’s picture

Status: Needs review » Needs work

There are some errors reported by automated review tools, did you already check them? See http://pareview.sh/pareview/httpgitdrupalorgsandboxdrubage2484375git

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.

drubage’s picture

Status: Needs work » Reviewed & tested by the community

OK I have checked the code and we did some more testing and repository cleanup we should be good to go now.

-Drew

Ayesh’s picture

Status: Reviewed & tested by the community » Needs work

Hi there,

Modules should remove all variables created by them when uninstalling it.

You can do so easily by implementing hook_uninstall() in a modulename.install file.
Make sure you remove the variables for each content type.

Also, please do not set RTBC status yourself. Usually 3-4 people review your code, set the RTBC status, and then a git admin will pick, inspect and process the application.

Wait for a few others to leave a review.

drubage’s picture

Status: Needs work » Needs review

OK got it I added the hook_uninstall and confirmed the code passed review. Sorry for setting the wrong status I set it to needs review now hope that is correct.

andreyjan’s picture

Status: Needs review » Needs work

Hi drubage,

Please put correct link for git clone (You can find the correct git clone command for your sandbox by clicking on the Version control tab, removing the checkbox in front of "Maintainer", and clicking Show. You can then copy-paste the git clone command from the codeblock below "Setting up repository for the first time".).

Automated Review
No pareview errors found

Manual Review

Individual user account
Yes follow the guideline

No duplication
Cant this be done by Metatag module?

Master Branch
Yes follow the guidelines for master branch.

Licensing
Yes: Follows the licensing requirements.

3rd party assets/code
Yes: Follows the guidelines for 3rd party assets/code.

README.txt/README.md
Yes: Follows the guidelines for in-project documentation and/or the README Template.

Code long/complex enough for review
Yes: Follows the guidelines for project length and complexity.

Secure code
Yes: Meets the security requirements

The code looks ok, but why you print meta tag directly as string instead of rendering an array in drupal way like:

$data = array(
    '#tag' => 'meta',
    '#attributes' => array(
       'name' => 'description',
       'content' => 'Enter your meta description here.',
    ),
  );
  drupal_add_html_head($data, 'sales_floor_home');
drubage’s picture

Status: Needs work » Needs review

Correct link for git clone is: http://git.drupal.org/sandbox/drubage/2484375.git

I am not printing the meta tags directly I am using code exactly like you are showing so I am not sure what you are talking about?

No duplication
The metatag module is similar but also very different. Simple Meta works on PATHS so you set meta tags by path with a little form that appears on every page. This makes it much easier to manipulate meta tags for sites with lots of views, panels, etc. rather than just nodes (and is much easier for SEO type roles to use than the complex setup of metatag). This module extends Simple Meta to also allow you to set patterns for NODES in addition to manually setting meta per path.

Vincenzo Gambino’s picture

Hi drubage,

Automated Review
No pareview errors found http://pareview.sh/pareview/httpgitdrupalorgsandboxdrubage2484375git

If Metatag is installed it created duplicated Metatag on a page.

Manual Review

Individual user account
Yes follow the guideline

No duplication
No, not a duplicate. This is a Lightweight metatag module where you set Meta tag at content type level and the use Simplemeta for specific paths.

Master Branch
Yes follow the guidelines for master branch.

Licensing
Yes: Follows the licensing requirements.

3rd party assets/code
Yes: Follows the guidelines for 3rd party assets/code.

README.txt/README.md
Yes: Follows the guidelines for in-project documentation and/or the README Template.

Code long/complex enough for review
Yes: Follows the guidelines for project length and complexity.

Secure code
Yes: Meets the security requirements

This review uses the Project Application Review Template.

Vincenzo Gambino’s picture

Status: Needs review » Needs work
drubage’s picture

I made a minor update to the module, not sure what else I need to do now just wait for more reviews?

-Drew

drubage’s picture

Status: Needs work » Needs review
himmatbhatia’s picture

Hello,

You git command is wrong when i try to make clone it was giving permission issue.
I think your git command should be

git clone --branch 7.x-1.x http://git.drupal.org/sandbox/drubage/2484375.git simple_meta_for_content_types

Because when i try with this command i get downloaded successfully.
So please change the git command.

Thanks

himmatbhatia’s picture

Hello

You have used hook_form_FORM_ID_alter function. But the arguments of this function is not proper you have taken simplemeta_content_types_form_node_type_form_alter(&$form, $form_state).

But it should be simplemeta_content_types_form_node_type_form_alter(&$form, &$form_state, $form_id) {.

From comparing you can see you have missed & in the $form_state argument as well as you have not taken third parameter $form_id.
See the api - https://api.drupal.org/api/drupal/modules%21system%21system.api.php/func...

Thanks

himmatbhatia’s picture

Hello

Use hook_help for the user to make help in understanding the project from the admin UI.

Thanks

drubage’s picture

Issue summary: View changes
drubage’s picture

I have made the suggested updates anything else anyone sees?

-Drew

drubage’s picture

Status: Needs review » Reviewed & tested by the community

How do I get this project released?

cweagans’s picture

Status: Reviewed & tested by the community » Fixed

We generally frown on RTBC'ing your own project application, however, I've given this another look and I think it's fine.

Thanks for your contribution!

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.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.