Problem with perch_collection raw output

  • Hi,

    I have a perch collection which contains a perch map that i'm using 'raw'=>true, to get the long and lat values to use as an XML feed to display on a map.

    But I also have some categories in the collection that I need to get the title or slug to use on the page as well. But the raw option is changing the categories from their title/slugs to ID values.

    Is there anyway to get both the long/lat values and the category names? Maybe using the 'each'=> function option?

    I'll post my templates below.


  • drewm

    Approved the thread.
  • Rather than skipping the template and returning raw, you can just make a perch template to output the XML.

    Haven't seen your template but here is a best guess for a possible solution