Tag Archives: BeansTag

BeansTag – Official release

After almost 2 years, the BeansTag module finally get through the review process and it is not officially released! If you want to find a simple tool to add page title and meta tags on your Drupal 7 website, BeansTag may be a good option for you.

BeansTag is a page title, meta tag and meta description management tool. You could add the above attributes to any path alias and they would be shown in the webpage. It fully support any pages including views, panel pages as well as nodes.

BeansTag also support multiple language since the language prefix in the path alias is also included when rendering the BeansTag.

Continue reading BeansTag – Official release

Advertisements

Drupal 7 – Check if a path exists

Keep working on the BeansTag module. One suggestion is to validate if the path exists when submitting a new BeansTag.

We can use drupal_valid_path() to check if a Drupal system URL exists.

if (drupal_valid_path('node/1')) {
  // url exists
} else {
  // url does not exists
}

Continue reading Drupal 7 – Check if a path exists

Drupal 7 – Update the module schema by hook_update_N()

Recently i start working on BeansTag again as some users request to add the meta robots and canonical options.

This time, the update involves a change in the module schema. In this case, we need to implement the hook_update_N() in .install.

The following piece of code is added to beanstag.install. Continue reading Drupal 7 – Update the module schema by hook_update_N()

BeansTag – Override existing meta tag if it already exists

Originally, BeansTag will check if there is any existing meta tags in the page which is going to be rendered. If exists, the BeansTag module will do nothing.

As requested by a BeansTag user, recently i have added a BeansTag settings page where you disable this checking.

 

If this option is checked. BeansTag will override the existing meta data.

Done =)

Reference: BeansTag – Override other metatag modules, possible?

BeansTag update

If you have no idea about BeansTag, please refer to BeansTag – The SEO tool for Drupal 7

Although BeansTag is not going to be approved as a Drupal 7 module, i still added some features to it as requested by the BeansTag users. But before i talk about the new features, i want to clarify a BeansTag concept

BeansTag depends directly on the url path.

For example, a node with nid = 1 has an url alias articles/abc, you can create 2 different BeansTags with the following paths.

  • node/1
  • articles/abc

Continue reading BeansTag update

BeansTag – The SEO tool for Drupal 7

Next: BeansTag update

BeansTag is a page title, meta tag and meta description management tool. It makes use of the path alias as an identifier for the SEO attributes. You could add them to any path alias and they would be shown in the webpage. It fully supports any pages including views, panel pages as well as nodes. Continue reading BeansTag – The SEO tool for Drupal 7

Mac – Generate SSH Keypair

Prior to the topic about the SSH keypair, i would like to let u know that the BeansTag module is already submitted to drupal.org and now undergoing the approval process. BeansTag is a light-weight and user friendly SEO tool which help you setting the meta attributes as well as page title. It is also multilingual supported. Visit the BeansTag project page to get more ideas or even try it with your Drupal 7.

Before i could start working with the Git repository hosted in drupal.org, i have to create a SSH keypair and add it in my Drupal account profile. Actually i have done the similar task before but that is for Windows. For your reference, you can refer to the following post.

Continue reading Mac – Generate SSH Keypair