Following on from #2143979: Allow Views meta tags to "Use replacement tokens from the first row", provide a method to insert values into meta tags from the query's results.

CommentFileSizeAuthor
#1 metatag-n2396693-1.patch3.17 KBdamienmckenna

Comments

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new3.17 KB

Most of this work is by bpleduc, with rerolls & tweaks by davidthou and myself.

One specific change was to add the following sentence to the "replacement patterns" section:

The tokens will be replaced with values from the last row displayed on the page.

Without this I felt it did not properly explain where he values would come from; other parts of the Views system allow insertion of values from the first row, which is different to what this functionality provides.

damienmckenna’s picture

Title: Add tokens to insert values from the results » Add tokens to insert values from the Views results

lquessenberry’s picture

For some reason my descriptions are disappearing completely when I use tokens in a description. Can anyone shed light on this or have seen the same thing?

nchase’s picture

this patch throws a page of garbage once the view is saved...

damienmckenna’s picture

Title: Add tokens to insert values from the Views results » Add Token support to insert values from the Views results
damienmckenna’s picture

damienmckenna’s picture

Status: Needs review » Needs work
Parent issue: #2539438: Plan for Metatag 7.x-1.8 release »

Needs a little more work.

nikolino’s picture

Using this patch on Metatag 1.7 I've 2 error.
Notice: Undefined index: und in metatag_views_page_alter() (line 96 ... metatag_views.module).
Warning: Invalid argument supplied for foreach() in metatag_views_page_alter() (line 96 ... metatag_views.module).

Line 96 is:
"foreach ($metatags[LANGUAGE_NONE] as $meta_key => $meta_value) {"

Any suggestions?
Thank you!

bluegeek9’s picture

Status: Needs work » Closed (outdated)
//www.flaticon.com/free-icons/thank-you Thank you for your contribution!
Unfortunatly Drupal 7 is no longer supported. We encourage you to upgrade to a modern version of Drupal.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.