the_butcher
Thank You for the reply.
I didn’t understand very well why I might not be able to always guarantee the format of the incoming data?
In the Admin Panel, when I publish a new Entry there is a <textarea> where I’ll write a song on each line, and always that same way. So the data should be coming in the same format in every entry.
Now, to see how the data is coming, I just return it, and then check the rendered template, which shows all in one line.
If you want more info on what does my plugin, It simply generates a tracklist, adding additional data to it. But if I focus on where do I have the main issue, I can just tell you that what I can’t do right now is to put the tracklist as an ordered list.
In the Publish page, I write:
Song 1
Song 2
Song 3
Song 4
Song 5
In the template, I write:
{exp:cdd_utils:songs song_list="{song_list}"}
The rendered template should print:
<ol>
<li>Song 1</li>
<li>Song 2</li>
<li>Song 3</li>
<li>Song 4</li>
<li>Song 5</li>
</ol>
So I need to get every line of the input, to add the <li> tags and the additional information.
Once I can do that, I’ll add all the other features, but now I just want to finish that first step.
Thank You