Table formatting PDF icon size display tags
-
Hi just started using WordPress and the Media Library Assistant which is excellent to manage and display 100s of PDFs.
I have got part of the way https://downtonparishcouncil.gov.uk/test-mla to having an automatic table that’ll list PDFs with their titles (from the PDF itself). The aim is that when the PDF is uploaded it’ll automatically display in the relevant pages by use of categories and tags. The current manually maintained table is on https://downtonparishcouncil.gov.uk/main-council/agendas-and-minutes
The page code looks like:
[mla_gallery post_parent=all post_mime_type=application/pdf category_name=pub-doc tag=main size=icon columns=1 link=file posts_per_page=12 orderby=”title DESC”]The style code is pretty standard from the documentation:
<style type=’text/css’>
#[+selector+] {
margin: auto;
}
#[+selector+] .gallery-row {
float: [+float+];
text-align: center;
width: [+itemwidth+]%;
}
#[+selector+] .gallery-row td.gallery-icon {
width: 60;
height: 60;
vertical-align: top;
}
#[+selector+] .gallery-row .gallery-icon img {
border: 2px solid #cfcfcf;
}
#[+selector+] .gallery-caption {
margin-left: 0;
vertical-align: top;
}
</style>The table code looks like this:
<table id='[+selector+]’ class=’gallery galleryid-[+id+]
gallery-columns-[+columns+] gallery-size-[+size_class+]’>
<tr class=’gallery-row’>
<td class=’gallery-icon’>
[+link+]
</td>
<td>
[+pdf:Title+]</td>
<td >
[+title+] NB left in for debugging the PDF file titles will be removed
</td>
</tr>
</table>My queries are as follows:
1 how to have a smaller pdf icon
2 how to set fixed column widths in the table as they vary
3 how to add a header for the table for the columns
4 how to display the standard tags
- The topic ‘Table formatting PDF icon size display tags’ is closed to new replies.