Formatting content on a list template
Permalink Browser Info Environment
Thanks very much for what looks like a really promising module.
There's something I'm missing. I want to format the list template content data and when I wrap in html it doesn't seem to follow normal styling rules.
EG
==
<span class="tpLogo" style="width:100px"><field name="Logo"/></span>
<span class="tpCouncil" style="width:100px"><field name="Building Council"/></span>
The width does not set -- the fields are just run together. Inspection of html using Chrome developer tools shows that the module seems to generating XML headers
<span class="tpCouncil" style="width:100px">
<!--?xml version="1.0"?-->
<span class="tpLogo" style="width:100px">USGBC</span>
<span class="tpCouncil" style="width:100px">
<!--?xml version="1.0"?-->
<span class="tpLogo" style="width:100px">USGBC</span>
<span class="tpCouncil" style="width:100px">
<!--?xml version="1.0"?-->
<span class="tpLogo" style="width:100px">GBGBC</span>
<span class="tpCouncil" style="width:100px">
<!--?xml version="1.0"?-->
<span class="tpLogo" style="width:100px">USGBC</span>
<span class="tpCouncil" style="width:100px">
</span></span></span></span></span>
Could someone please post a sample of how to style a list row correctly?
Thanks very much
Mike
There's something I'm missing. I want to format the list template content data and when I wrap in html it doesn't seem to follow normal styling rules.
EG
==
<span class="tpLogo" style="width:100px"><field name="Logo"/></span>
<span class="tpCouncil" style="width:100px"><field name="Building Council"/></span>
The width does not set -- the fields are just run together. Inspection of html using Chrome developer tools shows that the module seems to generating XML headers
<span class="tpCouncil" style="width:100px">
<!--?xml version="1.0"?-->
<span class="tpLogo" style="width:100px">USGBC</span>
<span class="tpCouncil" style="width:100px">
<!--?xml version="1.0"?-->
<span class="tpLogo" style="width:100px">USGBC</span>
<span class="tpCouncil" style="width:100px">
<!--?xml version="1.0"?-->
<span class="tpLogo" style="width:100px">GBGBC</span>
<span class="tpCouncil" style="width:100px">
<!--?xml version="1.0"?-->
<span class="tpLogo" style="width:100px">USGBC</span>
<span class="tpCouncil" style="width:100px">
</span></span></span></span></span>
Could someone please post a sample of how to style a list row correctly?
Thanks very much
Mike
Type: | Discussion |
---|---|
Status: | New |