Coder Social home page Coder Social logo

Comments (5)

eko avatar eko commented on August 20, 2024

Hi @ayoob-faraji,

Thank you for creating this issue.

I can't reproduce it, are you using something particular in your Kernel class?

The command is trying to open (and should create if not exists) <kernel root dir>/web/rss.xml file. Unfortunately, I don't know why it can't in your case.

Can you provide me additional information or try to debug the filepath in the vendor\eko\feedbundle\Eko\FeedBundle\Command\FeedDumpCommand.php file?

from feedbundle.

ayoob-faraji avatar ayoob-faraji commented on August 20, 2024

Hi @eko
I debug the filepath and I create file rss.xml manually in /web/.....
so I run command and file rss.xml was built properly
thanks

now I will create a channel with 3 Item include: blog , news and radio
but I don't know please you guidance me
please you example for me
thanks

from feedbundle.

eko avatar eko commented on August 20, 2024

@ayoob-faraji,

Ok cool if you could resolve this issue.

Not sure to understand what you talk about, do you want to add multiple entities under different XML nodes (blog, news, radio) in your feed?

from feedbundle.

ayoob-faraji avatar ayoob-faraji commented on August 20, 2024

@eko
no, I have a article entity that has included 3 categories : blog , news and radio
I want file rss.xml includes 3 links blog , news and radio
so if click each of links to go to the page and list to bring it

from feedbundle.

eko avatar eko commented on August 20, 2024

Hi @ayoob-faraji,

This can be achieved by adding a GroupItemField with 3 ItemFields.

It could be something like this:

$feed->addItemField(new GroupItemField('categories',
    new ItemField('blog', 'getFeedBlogLink'),
    new ItemField('news', 'getFeedNewsLink'),
    new ItemField('radio', 'getFeedRadioLink')
));

All you have to do is to implement 3 methods in your entity getFeedBlogLink(), getFeedNewsLink() and getFeedRadioLink().

This should output the following XML:

<entry>
    ...
    <categories>
        <blog>YOUR getFeedBlogLink() returned value</blog>
        <news>YOUR getFeedNewsLink() returned value</news>
        <radio>YOUR getFeedRadioLink() returned value</radio>
    </categories>
</entry>

from feedbundle.

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.