Create Table to Display Pdfs
-
Hi Dave,
I was here before and you were able to help. I thought it would be simple to achieve my pdf table, but I can’t get the [+title+] or other variables to render…? I am following the code from a previous solution (https://www.ads-software.com/support/topic/fixed-column-widths/), but I am having issues with the short code. You can see what is printing to the screen by looking at my link to page i need help with.Not sure why it won’t render content…? Any help would be appreciated.
Pretty much copied the code from the example mentioned above. But I will post below:
[mla_gallery post_mime_type=application/pdf mla_style=doc-table-style mla_markup=doc-table-markup attachment_category=sample][mla_gallery post_mime_type=application/pdf mla_style=doc-table-style mla_markup=doc-table-markupattachment_category=sample posts_per_page=12 mla_output=”paginate_links,prev_next”]
Name
doc-table-markup
The name/“slug” is the URL-friendly, unique key for the template. It must be all lowercase and contain only letters, numbers and hyphens (-).Description
Table markup
Notes for the Shortcodes tab submenu table.Arguments
post_parent=all
post_mime_type=application/pdf
size=icon_only
mla_image_attributes=’width=”16″ height=”16″‘
columns=1
link=download
mla_disposition=attachment
orderby=”name DESC”Default shortcode parameter values.
Open
<h3>[+template:([+query:my_gallery_title+])+]</h3>
<h3>hello</h3>
<table id=”[+selector+]” class=”gallery galleryid-[+id+] gallery-columns-[+columns+] gallery-size-[+size_class+]”>
<tr class=”header-row”><th>Document Title – click to view</th><th>Icon shows<br />File type</th></tr>
Markup for the beginning of the gallery. List of parameters, e.g., [+selector+], on Documentation tab.Row Open
<tr class=”gallery-row”>
Markup for the beginning of each row in the gallery.Item
<td class=”gallery-title”>
<!–[+title+] –>
[+title+]
</td>
<td class=”gallery-icon”>
hello
</td>
Markup for each item/cell of the gallery.Row Close
</tr>
Markup for the end of each row in the gallery.Close
</table>
Markup for the end of the gallery.styles:
Name
doc-table-style
The name/“slug” is the URL-friendly, unique key for the template. It must be all lowercase and contain only letters, numbers and hyphens (-).Description
Table styles for documents(pdfs)
Notes for the Shortcodes tab submenu table.Styles
<style type=’text/css’>
#[+selector+] {
margin: 0;
width: 100%;
}
#[+selector+] tbody {
border: 0px solid #ff0000;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
}
#[+selector+] table {
border: 0px solid #ff0000;
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
}
#[+selector+] .gallery-title {
width: 80%;
height: 16;
vertical-align: top;
color:red;
}
#[+selector+] .gallery-icon {
width: 20%;
height: 16;
vertical-align: top;
}
#[+selector+] td.gallery-icon img {
border: 0px solid #FF0000;
}
#[+selector+] .gallery-row {
float: none;
text-align: left;
width: auto;
padding: 0;
}#[+selector+] td {
padding: 0.4em;
}
#[+selector+] .header-row {
float: none;
text-align: left;
width: auto;
font-weight: bold;
}
#[+selector+] .gallery-caption {
margin-left: 0;
vertical-align: top;
}
</style>
List of substitution parameters, e.g., [+selector+], on Documentation tab.Thank you
The page I need help with: [log in to see the link]
- The topic ‘Create Table to Display Pdfs’ is closed to new replies.