Comments (2)
Normally auto fill only works if you choose an image field for it. But of course you can customize the module to your needs. I'll post an example shortly :)
from markupseo.
Add this to hookCustomizeSeoTab:
// get body content from field
$bodyContent = $e->return->get('body')->value;
// get image
preg_match('%<img.*src=\"(.*)\"%Uis', $bodyContent, $match);
$bodyContentImage = $match[1];
// populate seo field with image url
$e->return->get('seo_image')->value = $bodyContentImage;
from markupseo.
Related Issues (20)
- Make the automatic insertion of <title> optional HOT 1
- Canonnical tag produces wrong protocol HOT 1
- title tag with source from individual field HOT 1
- No SEO tab, error when trying to uninstall module HOT 3
- switching templates - error! HOT 2
- Long SEO url wraps onto new line covering decription HOT 1
- Facebook Open Graph requires meta property tag HOT 2
- Does canonical require "link rel=" format instead of "meta"? HOT 1
- Even smarter Smart Titles? Maybe a title format override checkbox? HOT 3
- Page setting for NoFollow and NoIndex
- MarkupSEO in combination with ProCache removes metatags HOT 2
- FR: Placing Piwik tags at the bottom before closing BODY
- Title format for children
- Incompatibility with PW3.0.4X HOT 8
- MarkupSEO doesn't respect the "Should page URLs end with a slash?" template setting HOT 1
- PHP 7.2 Warning: count(): Parameter must be an array or an object that implements Countable
- Keywords tag is no longer useful for SEO
- Custom tags not working on windows server HOT 4
- Image meta tag should include full URL HOT 2
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 markupseo.