Comments (6)
Hi,
Yes, good idea. I will think of it in the next days because I'm currently on holidays for the rest of the week.
Thank you for your analyze and don't hesitate to send me a pull request if you have a particular idea on this topic.
from feedbundle.
I am looking at a similar bundle - https://github.com/prestaconcept/PrestaSitemapBundle
It's done externally when looping through results, maybe this is the way to go here too?
public function boot()
{
$router = $this->container->get('router');
$event = $this->container->get('event_dispatcher');
//listen presta_sitemap.populate event
$event->addListener(
SitemapPopulateEvent::onSitemapPopulate,
function(SitemapPopulateEvent $event) use ($router){
//get absolute homepage url
$url = $router->generate('homepage', array(), true);
//add homepage url to the urlset named default
$event->getGenerator()->addUrl(new UrlConcrete(
$url,
new \DateTime(),
UrlConcrete::CHANGEFREQ_HOURLY,
1), 'default');
});
}
from feedbundle.
Thank you, I think I will implement something similar but I need to let people able to use a custom URL so if people want to use a custom one, they were be able to, otherwise they will just need to put the route name in the configuration of their feed.
I'll let you know about this!
from feedbundle.
Okay thanks!
from feedbundle.
Hi, thanks to @RobMasters contribution you can now use the Symfony router component in the bundle to generate your items links.
Thank you for your suggestion and have fun with it :)
from feedbundle.
Looks great I'll try it! Thanks!
from feedbundle.
Related Issues (20)
- RssFormatter is not rendering the Atom namespace at the top of the feed HOT 1
- ATOM Feed summary does not have the html type
- [Reader] Unable to enable crypto on TCP connection HOT 5
- Having problem adding RSS feeds to Entity HOT 5
- Add additional information from external RSS feed
- FeedDumpService instance error HOT 1
- one feed, several entities? HOT 1
- dynamic route_params? HOT 3
- custom fields HOT 1
- Feed reader media items HOT 2
- order pubDate seem not be respected HOT 1
- Adding a list of objects HOT 4
- Tag a new release version HOT 1
- lastBuildDate custom
- Missing command.xml file
- php 7 with symfony 4 I have messages "is abandoned"
- Symfony 5 does not connect EkoFeedBundle
- How to use a proxy for $reader->load()? HOT 3
- eko_feed.yml ignored on Symfony 5.3, php 8
- Can we have a release for the new updates
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 feedbundle.