leogout / seobundle Goto Github PK
View Code? Open in Web Editor NEWA Symfony bundle to generate SEO meta tags.
A Symfony bundle to generate SEO meta tags.
It's time to update package requirements -> Symfony 4.0
I am using Symfony 6.
When I try to add tags dynamically like this:
$this->get('leogout_seo.provider.generator')->get('basic')
->setTitle('Title set in controller')
->setRobots(true, false); // they can be chained
I get an error:
Attempted to call an undefined method named "get" of class "App\Controller\BlogController".
Did you mean to call "getSubscribedServices"?
I am following the documentation step by step.
Also tried with DI:
SeoGeneratorProvider $seo
But then I get:
The SEO generator with alias "leogout_seo.provider.generator" is not defined.
The root tree deprecation fix in 1.2.1 uses functions not available until Symfony 4, but composer.json still states it's compatible with 2 and 3. 1.2.0 works OK, but composer installs 1.2.1 by default as it expects it to be compatible.
Hi i m'y looking to add MetaTag dynamique how i can do this ?
Hello i use this package for one of my project for manage SEO tags, but i miss other not essencial tags like rel = next / previous for pagination seo, I locked in one fork of this package by Leadtech this functionality are implemented, will you add these modifications on master SeoBundle?¿
Thanks in advance, i dont know if there is the correct way of tell you that questions...
hi i try to get install but i still having this issue
Service "leogout_seo.generator.generator" not found:
can you make update ?
Thank
https://github.com/leogout/SeoBundle/actions/runs/2846891571
There seems to be a problem with the action config, I am no expert but I'll try to fix this ASAP.
The Facebook sharing debugger tool (https://developers.facebook.com/tools/debug/sharing/) gives me a warning about using "name" instead of "property" inside the générated metas, e.g. :
<meta name="og:image" content="..." />
should be <meta property="og:image" content="..." />
according to FB best practices on og tags.
Is there a way to modify this behaviour without modifying the bundle source code directly ?
hi have try your bundle and i get error deprecated :
› $treeBuilder = new TreeBuilder();
› $rootNode = $treeBuilder->root('leogout_seo');
are you plan to fix?
Thank
The following code:
$this->get('leogout_seo.provider.generator')->get('basic')->fromResource($listing);
Gives me the following error:
You have requested a non-existent service "leogout_seo.provider.generator".
Is the documentation outdated?
Trying this bundle for my Symfony v5.2 (skeleton, not the web-skeleton) got an error
Seo generator services must be public, but "leogout_seo.generator.basic" is not.
it's happen for all generator (basic, og and twitter)
try setting for default, not working
services:
_defaults:
public: true
but, add public="true"
in the service (seo/basic.xml) can solve the problem, but have no time try to the other major version of symfony.
Hi would it be possible to consider adding your structure to hand this variable :
http-equiv:
'Content-Type': text/html; charset=utf-8
'X-Ua-Compatible': IE=EmulateIE7
charset:
UTF-8: ''
head:
"dir" : ltr
'xmlns': http://www.w3.org/1999/xhtml
'xmlns:og': http://opengraphprotocol.org/schema/
and maybe to get separatly "attributes" ?
<html {{ leogout_seo_html_attributes() }}>
<head {{ leogout_seo_head_attributes() }} >
{{ leogout_seo() }}
</head>
</html>
Tank for your help
Currently getting a deprecation warning in Symfony 6.3. I've checked the branch for Symfony 7 and it won't actually cause a problem until Symfony 8.
Method "Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface::process()" might add "void" as a native return type declaration in the future. Do the same in implementation "Leogout\Bundle\SeoBundle\DependencyInjection\Compiler\SeoGeneratorPass" now to avoid errors or add an explicit @return annotation to suppress this message.
Adding the return type will break backwards compatibility, so perhaps this could be a 2.0 version when Symfony 8 is released, For now the @return annotation can be added. I'm happy to create a PR for the return annotation.
See https://symfony.com/blog/symfony-7-0-type-declarations for more details.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.