Comments (7)
@ninsky as I said, I have no problem with YAML
routes. I'm closing this issue.
@CharlyPoppins if there is something with JMSI18nRoutingBundle
please open an other issue.
from prestasitemapbundle.
+1
from prestasitemapbundle.
Hi, this bundle is still maintained, sorry for answering so late.
I used to configure my routes using YAML too, but i have no problem.
Do you encounter some issues ?
from prestasitemapbundle.
In my case I try to use @route for static routes and SitemapListenerInterface for my dynamic routes.
Then static routes does not appear in the generated sitemap.
from prestasitemapbundle.
I made a try with a routing config file like the following :
yml_homepage:
path: /
defaults: { _controller: AppBundle:Default:index }
options:
sitemap: true
and it works just fine...
from prestasitemapbundle.
I tried this :
site_about:
path: /qui-sommes-nous
defaults: { _controller: SiteBundle:Default:About }
options:
sitemap: true
combine to the SitemapListener :
public function populateSitemap(SitemapPopulateEvent $event)
{
// my loop
$event->getGenerator()->addUrl($urlLang, $localeCourante);
//
}
URL from the routing.yml are not generated neither in sitemap.xml nor sitemap.fr.xml
I've only got URL generated by the SitemapListener
maybe I have to configure something due to multiple locales ? also I'm using JMSI18nRoutingBundle
from prestasitemapbundle.
Hum, I'm not sure that the problem is on our side.
We added some documentation about YAML or XML routes to be defined in the sitemap (see README on master branch).
To be honest, I tried XML, YAML and Annotation routing in the same project, and it works like a charm.
I think that you have a problem in your code, but with the piece you pasted here, I cannot help...
Also, I'm not very familiar with JMSI18nRoutingBundle...
from prestasitemapbundle.
Related Issues (20)
- Repository service id ? HOT 1
- How to include translated routes in dump file ? HOT 2
- Cancel <lastmod> field HOT 1
- Multi-domain errors cause sitemapindex XML confusion
- Creation of sitemap.xml files in sub directory HOT 4
- Deprecation Warning as of Symfony 6.2 HOT 3
- Wrong Domain in Index Sitemap if multiple Tenants are in use HOT 4
- Decorating in AddUrlEvent is impossible HOT 2
- S3 compliant HOT 2
- Fill field lastmod on a per url basis ? HOT 2
- Help: No URLs were added to sitemap by EventListeners - this may happen when provided section is invalid HOT 2
- Urlset->add() doesn't use Url->lastmod() for the Urlset lastmod HOT 3
- Drop Symfony 4.4, add Symfony 7 HOT 4
- Add /robots.txt route HOT 2
- Add (or Document) how to get the section list from the sitemap service HOT 1
- Add option for xsl
- route context not generating as expected HOT 5
- Routes generated twice in the XML HOT 3
- Allow to add custom URLs to sitemap index without populating section HOT 12
- Namespace Issue in Sitemap HOT 7
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 prestasitemapbundle.