
m's
Novice
Jun 23, 2009, 1:16 PM
Post #1 of 2
(2487 views)
Shortcut
|
|
Single page content additional fields not working
|
Can't Post
|
|
Hi Gang..have setup AM2 as single page content (as per tutorial..thanks!) is it possible to add the image gallery and file attachment place-holders into categoryIndex.html? (have added the database fields [via the database editor] ) And then the following into categoryIndex.html <!-- templateIf : $article.attachments$ ne "" --> <p> <b style="color: #666666;">Download attachment(s):</b> <!-- template insert : $article.attachments$ --> <!-- templatecell : article.attachments.row --> [ <a href="$file.webUrl$">$file.title$</a> ] <!-- /templatecell : article.attachments.row --></p> <!-- /templateIf --> And: #<!-- templatecell : article.gallery.row --> <div style="float:left"> <a href="$file.webUrl$"> <img src="$file.thumbnailWebUrl$" border="1" alt="$file.title:htmlEncoded$" width="$file.thumbnailWidth$" height="$file.thumbnailHeight$" style="margin-right: 5px;"></a> <br> <span style="font-size: 8pt; font-family: Arial; width:$file.thumbnailWidth$px; line-height: 95%;">$file.caption$</span><br><br clear="all"> </div> <!-- /templatecell : article.gallery.row --> I receive the ***[unknown placeholder $article.gallery$] ***error via my browser and the attachments placeholder does not show! Any ideas? Kind regards Dave Here's my page code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>$my.siteName$ $category.name$</title> <meta name="Description" content="$my.siteDescription$" /> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <link rel="stylesheet" href="$settings.webfolder_url$style/Underground.css" type="text/css" /> <link rel="alternate" type="application/rss+xml" title="$my.siteName:textOnly:htmlEncoded$ $my.siteDescription:textOnly:htmlEncoded$" href="$published.globalRSS.webpath$" /> </head> <body> <!-- wrap starts here --> <div id="wrap"> <!-- header --> <div id="header"> <span id="slogan"> </span> <!-- tabs --> </div> <div id="header-logo"> </div> <div id="sidebar" > <div class="left-box"> <h1>Menu</h1> <!--#include virtual="$published.categoryMenu.webpath$" --> <!-- ends sidebar --> <strong>Unit 1, Adler Industrial Estate,<br> Betam Road, Hayes, Middlesex.<br> UB3 1ST<br> ENGLAND UK<br> <p></p> Tel:- +44 (0) 20 8848 1912 <br> Fax:- +44 (0) 20 8848 1913</strong> </ul> </div> </div> <div id="main"> $category.content$ <br> <!-- templateIf : $article.gallery$ ne "" --> <br clear="all"> <div style="width:500px;"> <strong>Gallery images:</strong><br> $article.gallery$ </div> <p> </p> <!-- /templateIf --> <!-- templatecell : article.gallery.row --> <div style="float:left"> <a href="$file.webUrl$"> <img src="$file.thumbnailWebUrl$" border="1" alt="$file.title:htmlEncoded$" width="$file.thumbnailWidth$" height="$file.thumbnailHeight$" style="margin-right: 5px;"></a> <br /> <span style="font-size: 8pt; font-family: Arial; width:$file.thumbnailWidth$px; line-height: 95%;">$file.caption$</span><br><br clear="all"> </div></p><br /> <!-- templateIf : $article.attachments$ ne "" --> <p> <b style="color: #666666;">Download attachment(s):</b> <!-- template insert : $article.attachments$ --> <!-- templatecell : article.attachments.row --> [ <a href="$file.webUrl$">$file.title$</a> ] <!-- /templatecell : article.attachments.row --></p> <!-- /templatecell : article.gallery.row --> <!-- template insert : $articleList$ --> <!-- templatecell : articleRow --> <h1><a href="$published.articlePage.url$">$article.title$</a></h1> <!-- templatecell : categoryRow --> <!-- templateIf: $isLastCategory$ != "1" --> <a href="$published.categoryIndex.url$">$category.name$</a>, <!-- /templateIf --> <!-- templateIf: $isLastCategory$ == "1" --> <a href="$published.categoryIndex.url$">$category.name$</a> <!-- /templateIf --> <!-- /templatecell : categoryRow --> $article.summary$ <br /> <a href="$published.articlePage.url$" class="readmore">more information</a> <!-- /templateIf --> <br style="clear: both;" /> <p class="post-footer align-right"> </p> <!-- /templatecell : articleRow --> <!-- templateIf : $category.singlepage$ eq "No" --> <!-- templateIf : $articleList$ eq "" --> <div class="not_found">Sorry, no pages were found.</div> <!-- /templateIf --> <!-- templateIf : $articleList.prevPageNumber$ ne "" --> <a href="$settings.searchurl$?action=search&page=$articleList.prevPageNumber$&perpage=$articleList.perpage$&template=$articleList.template$&includeSubcats=$articleList.includeSubcats$&categoryNum=$category.num$"><< prev page</a> <!-- /templateIf --> <!-- templateIf : $articleList.nextPageNumber$ > $articleList.thisPageNumber$ --> <a href="$settings.searchurl$?action=search&page=$articleList.nextPageNumber$&perpage=$articleList.perpage$&template=$articleList.template$&includeSubcats=$articleList.includeSubcats$&categoryNum=$category.num$">next page >></a> <!-- /templateIf --> <!-- /templateIf --> <!-- main ends here --> <!-- content-wrap ends here --> </div> </div> <!-- wrap ends here --> </div> <!-- footer starts here --> <div class="footer"> <p> © 2009 <strong>preheat engineering </strong> | Valid <a href="http://validator.w3.org/check/referer">XHTML</a> </p> </div> </body> </html>
(This post was edited by m's on Jun 24, 2009, 2:24 PM)
|