English > Development
Export to CSV or xml with custom fields
wickedinnit:
Hi ,
i am not great at creating templates. Am wondering how to export to CSV or xml :
Title
IMDB rating
with custom fields of :
Which HD :
Which Divx :
rick.ca:
In 0.9.9.x, standard fields are accessed using {%value=[field name]}, custom fields with {%value=[custom field name] custom="true"}, where [custom field name] is exactly as specified in preferences—with spaces and no quotes...
{%value=IMDB rating}
{%value=Which HD : custom="true"}
You find most standard field names used in the "Sample" template.
wickedinnit:
Thanks Rick but i am still having difficulty.
i have tried this but it doesnt seem to output to xml properly ie the data displayed in my custom field of Which HD :
%OPTIONS%
replace="&<->&"
replace="<<-><"
replace="><->>"
filter="XML Files|*.xml"
encoding="UTF8"
imagepath="images\"
%OPTIONS%
%HEAD%
<xml>
<viddb>
<movies>{%value=200}</movies>
%HEAD%
<movie>
<num>{%value=num}</num>
<title>{%value=title}</title>
<Which HD :>{%value=Which HD : custom="true"}</Which HD :>
</movie>
%FOOT%
</viddb>
</xml>
%FOOT%
My output comes out as :
<movie>
<num>0</num>
<title>1984</title>
<Which HD : ></Which HD : >
</movie>
nostra:
Are you sure you have a space between HD and semicolon?
rick.ca:
...or that there is not a space after the colon in the custom field name?
Navigation
[0] Message Index
[#] Next page
Go to full version