Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
It would be great if we could add a custom meta, for example with multiple-sites, to add the meta for google site verification
Comment | File | Size | Author |
---|---|---|---|
#4 | subject.zip | 1 KB | cyprien2 |
Comments
Comment #1
iantresman CreditAttribution: iantresman commentedYes please! An option to specify the meta name, and a text box to add the description, which could be defined for a specific content type and/or on a per node basis.
And for version 5.x.
Comment #2
iantresman CreditAttribution: iantresman commentedPresumably I could do this by creating my own metadata.inc file in the metatags folder? If I took abstract.inc as a template, I could just copy and amend it to produce my own tags?
Comment #3
cyprien2 CreditAttribution: cyprien2 commentedYes, iantresman, i'm also interested to do that... How can i add a new name tag form a .inc file ????
Comment #4
cyprien2 CreditAttribution: cyprien2 commentedok, i've create a new custom meta tag to create a tag named "subject" :
1 - i've made a copy of the file metatags/description.inc
2 - i've rename the copy of : metatags/subect.inc
3 - i've rename the functions :
- nodewords_description_prepare => nodewords_subject_prepare
- nodewords_description_form => nodewords_subject_form
and the line :
- '#title' => t('Description') => '#title' => t('Subject')
saving, and it works fine.
Here is the file attached... (
Now, i'd like to add a DC.subject meta tag, but it doesn't work : I don't know where the Name argument is defined ?
Comment #5
apadernoI will see if the Google site verification meta tag can be easily implemented, and in that case, I will implement it.
Comment #6
Dave ReidFYI if you just want the google site verification there is also the Site verification module. But if you're currently using the Meta tags module, it would make sense to have custom meta tag support for a case like this.
Comment #7
apadernoComment #8
iantresman CreditAttribution: iantresman commentedThis is also useful for adding the set of Dublin Core metadata, whose meta tags are summarized here (see section Dublin Core (DC)). See also
Comment #9
apadernoThe support for more Dublin Core meta tags is already reported in #518274: Add more Dublin Core meta tags.
Comment #10
iantresman CreditAttribution: iantresman commented>The support for more Dublin Core meta tags is already reported
Brilliant.
Comment #11
apadernoThe support for the site verification meta tags as required by the main search engines has been implemented. If there is the need to add the support for a verification code as requested by other web services, feel free to re-open this report.
Comment #12
apadernoI am setting the status to fixed.
Comment #13
apadernoI am tagging this report to add it in the list of the differences between version 6.x-1.0 and the next official release.