Just wondering if it's possible to display the value of a field randomly. For instance, I'm using the Metatag module. My client is a landscaper and covers numerous counties in the area. I'd like to be able to have the different counties randomly appear in the page title section of Metatag. Is this possible?

Comments

blamege1 created an issue.

nevets’s picture

Not an answer to your question, but if most of your site visitors are anonymous and you have page caching enabled, the meta data will be constant till the cache is rebuilt. Also not sure what search engines will think of the changing meta title, they may see it as duplicate content which some of the search engines will penalize you for. Unless you have lots of countries, why not put them in the description something like "Serving (a list of countries)"

blamege1’s picture

These wouldn't be different pages, just a random value for the Page Title in the head. It would be the same page, with a randomly generated page title. Would that constitute duplicate content?

nevets’s picture

I think so, since you would have multiple page titles for the same content.

blamege1’s picture

hmmm, kind of puts a kink in my plan. Assuming that it's not duplicate content, is it even possible? I have another idea