php - Comma separated taxonomy terms in Drupal -


I want to separate my classification words with a comma, and there is no comma behind the previously listed word.

I have noticed that there are some modules which can be a help, but I want to use a pre-publication function, because I do not believe there is an additional module for such a simple task Will be required.

I do not understand the correct function and php.

Can anyone help me with this?

Instead of using a preprocess function, you can specify the theme for the tag field in the template php file. The theme_field () function can overwrite. In this function, you will render tags in a different format than coma. The advantage of this approach is that it is a more general solution and it will work in spite of visual mode of classification rules, that is, they are presented as links or just plain text.

Since there is something necessary for the solution, I have written a blog post about it here's the link.

Nirav Mehta


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -