Giter Club home page Giter Club logo

Comments (7)

yann-eugone avatar yann-eugone commented on July 17, 2024 1

@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.

CharlyPoppins avatar CharlyPoppins commented on July 17, 2024

+1

from prestasitemapbundle.

yann-eugone avatar yann-eugone commented on July 17, 2024

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.

CharlyPoppins avatar CharlyPoppins commented on July 17, 2024

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.

yann-eugone avatar yann-eugone commented on July 17, 2024

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.

CharlyPoppins avatar CharlyPoppins commented on July 17, 2024

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.

yann-eugone avatar yann-eugone commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.