You do realize that having the newline will cause IE to add unexpected spacing to the rows...
I know, but I need to have the same output as wayfinder which uses the newlines or else the spacing changes between pages. I know that wayfinder can turn off the newlines but all the spacing and alignment is done already and I would need to change several styles, so I thought it would be easier to just add the newline.
Besides that... have a read through the php manual
Already been there, thanks. The only thing that I was able to maybe understand is that I should have double quotes rather than single quotes. Is this what I am missing? But the MODx snippet guidelines tell us not to use double quotes. I will give this a try after lunch. Thanks.
If the string is enclosed in double-quotes ("), PHP understands more escape sequences for special characters:
So I guess it would be like this:
$output .= "<li>$y</li>\n";