Kodi Community Forum

Full Version: Need help with export template
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
The following template will do what I want - with one exception. I would like to have a page break after every </table> (table close) . I've read that this is a CSS feature. I do have exactly 0,0% knowledge about CSS. Is there somebody who can help? Heres the HTML template I've written so far. Many thanks in advance:

Code:
<html>
<head>
<title>List</title>
</head>
<body>

${foreach movies movie}
<table border="1">

<tr>
<td align="center" colspan="2" valign="vcenter"><b>${movie.title}</b></td>
</tr>

<tr>
<td rowspan="4" valign="vcenter" width=20%"><img src="images/${movie(../nopicture.gif);copyArtwork(type=POSTER, thumb=true, width=150)}" /></td>
<td align="left" valign="top" width="80%"><b>Year: </b>${movie.year}</td>
</tr>

<tr>
<td align="left" valign="top"><b>Rating (1-10): </b>${movie.rating}</td>
</tr>

<tr>
<td align="left" valign="top"><b>Runtime (min): </b>${movie.runtime}</td>
</tr>

<tr>
<td align="left" valign="top"><b>Director: </b>${movie.director}</td>
</tr>

<tr>
<td align="left" colspan="2" valign="top"><b>Plot: </b>${movie.plot}</td>
</tr>

<tr>
<td align="left" colspan="2" valign="top"><b>Actors: </b>${foreach movie.actors actor}${actor.name}, ${end}</td>
</tr>

</table>

<!-- Page break here -->
<p style="page-break-after: always">&nbsp;</p>
${end}

</body>
</html>
A <p> is just a paragraph in HTML (kinda 2 times a <br>)

Googling revealed something like this:
https://davidwalsh.name/css-page-breaks
Thanks.

Did update the template in the first post of this thread with a solution that works in Chrome for example.

The template shows one video per page with thumb, plot, year, title, actors, rating and runtime.

My problem is solved.