This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » support » symfony 1.3 and 1.4 » How to creating custom xml feed (atom) using sfAtom1Feed plugin
How to creating custom xml feed (atom) using sfAtom1Feed plugin [message #102724] Mon, 19 July 2010 10:35
niroshan  is currently offline niroshan
Messages: 11
Registered: July 2010
Location: Sri Lanka
Junior Member
Hi guys,

Does anyone know how to add my own custom tags to the xml feed using sfAtom1Feed plugging. Almost all the tutorials i found have a common set of tags like,
  1. title
  2. link
  3. authorName
  4. authorEmail
  5. pubDate
  6. uniqueId
  7. description


but i want to change it. i want to have my own custom feed with <entry>. fields like,
  1. fistname
  2. lastname
  3. avatar
  4. ...etc


Can i add these fields using sfFeedItem's initialize method???

here is a sample xml feed i like to achieve,
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <title>user list</title>
  <link rel="alternate" href="http://www.test.com/"></link>
  <id>http://www.test.com/</id>
  <updated>2010-07-19T08:17:27Z</updated>
  <author>
    <name>niroshan Fernandez</name>
    <email></email>
  </author>
  <entry>
    <firstname>niroshan</firstname>
    <lastname>fernandez</lastname>
    <avatar>http://www.test.com/avartar/1.jpg</avatar>
  </entry>
</feed>



Thanks in advance,
best regards,
niroshan

Read Message
Previous Topic:symfony templating component
Next Topic:Properties on a module: a visibility problem
Goto Forum:

  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software