collective.opengraph
This package is a part of the Plone’s collective.fg bundle. It adds the opengraph metadata to your HTML head section.
- Supported metadata:
og:site_name name of the site
og:url url of the webpage
og:title title of the webpage
og:description description of the webpage
og:image your webpage image (either ‘image’ field of your context or collective.contentleadimage one)
from the control panel you can manage following settings: - the default og:type - which content types should be opengraph metadata aware
Customization
One of the goals of this package is to allow developers extend the default metadata definition. It’s availabe threw IOpengrapMetatags adapter:
from collective.opengraph.interfaces IOpengraphMetatags
from collective.opengraph.viewlets import ATMetatags
class MyATMetatags(ATMetatags):
implements(IOpengrapMetatags)
@property
def metatags(self):
tags = super(MyATMetatags, self).metatags
tags.update({'og:newtype': 'custom value'})
return tags
You can also customize existing og values:
from collective.opengraph.interfaces IOpengraphMetatags
from collective.opengraph.viewlets import ATMetatags
class AnotherMetatags(ATMetatags):
implements(IOpengrapMetatags)
@property
def title(self):
return '%s - Lorem ipsum' % self.context.Title()
Changelog
1.0.1 (2012-10-16)
Docs update and fixed manifest file [amleczko]
1.0 (2012-10-15)
refactored and release during PloneConf2012 sprint [amleczko]
0.1dev (unreleased)
added action to (un)mark ‘IOpengraphable’ content types
added translations
registered viewlet for ‘IOpengraphable’ content types
added og:type meta tag
added default configurations in IRegistry
first release
Metadata
Release files for collective.opengraph 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| collective.opengraph-1.0.1.zip | 34.8 kB | Without provenance | Details for collective.opengraph-1.0.1.zip |
Release files / collective.opengraph-1.0.1.zip
| Download URL | collective.opengraph-1.0.1.zip |
|---|---|
| Size | 34.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
780cfecf5e674459119fc4d09b260216a00eef04de9e838eb76a83572cdb38e7
|
|
BLAKE2b-256 checksum How to use checksums |
239bfde002cee3b40e94c2051825fc6c91650195961f9ee80db82aa566fc46e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for collective.opengraph 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.