How can I split content and output in a table?
-
Hi everyone!
I am working on implementing a feed and so far I’m impressed with what HungryFeed can do.Now there’s what I can’t wrap my head around:
This is what the description looks like in the feed:
<description>2000 kg|Diesel|4345 mm|2012|12.900 EUR</description>
Now these are properties for machines. And of course I want them to display nicely with the corresponding title. Like this:
Weight Motor Height Year Price
2000 kg Diesel 4345 mm 2012 12.900 EuroSo I need a way to split the description at the “|” sign and then output in a table or at least like this:
Weight: 2000 kg
Motor: Diesel
Height: 4345 mm
…So I think I will need some kind of Javascript to split the description. But if I have that javascript, can I put the resulting variables/array parts into one of the templates?
Can anyone point me in the right direction to accomplish this?
Thank you very much!
Anja
- The topic ‘How can I split content and output in a table?’ is closed to new replies.