Comments (1)
The seomatic.helper.loadMetadataForUri()
function that SEOmatic provides loads all of the meta containers associated with a given URI into the containers on the current page. Effectively, it allows you to load up the meta data for any URI onto a given page. I use this for the AMP versions of my pages, for instance, which don't have an entry
injected into them like this:
{% if entry is not defined %}
{% set entrySlug = craft.app.request.getSegment(2) %}
{% set entry = craft.entries({
"section": "episodes",
"slug": entrySlug,
}).one() %}
{% endif %}
{% do seomatic.helper.loadMetadataForUri(entry.uri) %}
How in this case, what @wbrowar is looking for is different; he wants to iterate through entry metadata, and output for users to read on the page.
from craft-seomatic.
Related Issues (20)
- [FR] - Seomatic creates more than 100GB caches HOT 1
- Robots tag set to none for PRODUCTION. HOT 2
- Aggregated data from matrix-field returns strange values HOT 7
- Change script sort order HOT 1
- Exclude specific entry page from sitemap based on entry.customField? HOT 3
- JSON-LD Meta: Add support for "CourseInstance.CourseSchedule" HOT 3
- SEOmatic 5 b5, failed sitemap generation queue jobs HOT 16
- Positioning of GTM code HOT 12
- Is it possible to have separate xml and page paths in sitemaps? HOT 2
- GraphQL argument types mismatch with Craft HOT 2
- `security.txt` file does not end with newline (carriage return) by default HOT 3
- Environment not correctly respected for robots and tracking scripts, when manuallySetEnvironment is set to enabled HOT 2
- Meta tags generated by SEOMatic sometimes contains IP addresses HOT 6
- Sitemap not generating for section - no error logs HOT 7
- SEOmatic: Issue with GA$ Tracking Scripts HOT 3
- security.txt: str_ends_with(): Argument #1 ($haystack) must be of type string, array given HOT 3
- Cannot use ::class with dynamic class name HOT 2
- Ahrefs: Sitemap is not accessible HOT 5
- Type of nystudio107\seomatic\Seomatic::$schemaVersion must be string HOT 1
- Craft 5 / Beta 11 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from craft-seomatic.