Export help

I'm trying to do an export of the %publisher% field, I use it for transistion data. When I export using:


if there is no data in the publisher field while the rest of the fields that do have data, a table border is drawn around it if there is data in it, when there is no data, the table border is not drawn, if I put a -134 for example, then the publisher field draws the border and puts the related data there.

Is there a way in the export to do something like:


Which clearly doesn't work.

Any thoughts to handle this?


Here is the full export script:

        <meta name="GENERATOR" content="">
        <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
        <style type="text/css"><!--
            h1 { color: #FFAA55; font-family: Calibri; font-size: 11pt }
            h2 { font-family: Calibri; font-size: 9pt }
            h3 { color: #000000; font-family: Calibri; font-size: 9pt }
            body { font-family: Calibri; font-size: 8pt }
            table { font-family: Calibri; font-size: 8pt }
            a {color: #A10000; text-decoration: none }
            a:hover {color: #A10000; text-decoration: none}
            #wrap { width: 95%%; }
            .tbox { padding: 10px; margin: 10px; background-color: #EFEFEF;}
    <body bgcolor="000000">
    <div id="wrap">
    <div class="tbox">
        <table border="0" width="100%%">
                <td width="75%%">
                    <table border="0" width="40%%">
                            <td width="5%%" valign="top">
                                <h1>ALBUM: </h1>
                            <td width="20%%" valign="top">
                            <td width="5%%" valign=top>
                                <h1>YEAR: </h1>
                            <td width="20%%" valign=top>
                <td width="25%%" rowspan=4 valign="top" align="right">                
        <table border="2" bgcolor="DCDCDC" width="100%%">
            <tr bgcolor="#AAAAAA">
                <td align="center"><b>TRACK</b></td>
                <td align="center"><b>BPM</b></td>
                <td align="center"><b>LABEL</b></td>
                <td align="center"><b>INITIAL KEY</b></td>
                <td align="center"><b>LENGTH</b></td>
                <td align="center"><b>BITRATE</b></td>
    $loop(%_path%)        <tr>
                <td width=1 valign="top" align="center">[$num(%track%,1)]</td>
                <td width=1 td valign="top">$if(%album artist%,%artist% - ,)%artist%</a></td>
                <td width=1 td valign="top">$if(%album artist%,%artist% - ,)%title%</a></td>
                <td width=1 valign="top" align="center">%bpm%</td>
                <td width=1 valign="top" align="center">if2(%PUBLISHER%,"1")</td>
                <td width=1 valign="top" align="center">%initialkey%</td>
                <td width=1 valign="top" align="center">%_length%</td>
                <td width=1 valign="top" align="center">%_bitrate%</td>
                <td width=1 valign="top" align="center"></td></h3>

Well, your question has mainly to do with scripting in the HTML language and how to apply table formatting rules.
Because your Mp3tag MTE script, which in turn creates a HTML script, both scripting layers have some quirks embedded, I do recommend that you learn how to write MTE script and HTML script error free and how to apply HTML TABLE formatting rules.
Learn from there ...

A simple work around the problem of a borderless empty TD cell is to fill the cell with an invisible value, for example with one "non breaking space".

$if2(%PUBLISHER%,' ')


That workaround is exactly what I was looking for. I know my export isn't perfect, just need it to do a summary view. I'm finding that I using the HTML to do a fast review is easier on my eyes than trying to do it in the app.

I was trying to place "" in there and had the wrong syntax for the language requirement.

Thanks for the help


Yes, all the small font in Mp3tag edit fields is also beginning to hurt me.