Monday 29 September 2003 4:17:39 am
Hi James, it's not quite what I'm looking for. I know how to link up objects to my articles, but I want to design an pdf-object which allows users to directly view the pdf-document via my article. To do this I've overriden embed.tpl with embed_pdf.tpl like this:
{default attribute_parameters=array()}
<a href={concat("content/download/",$attribute.contentobject_id,"/",$attribute.id,"/file/",$attribute.conte
nt.original_filename)|ezurl}>test {$attribute.content.original_filename|wash(xhtml)}</a> {$attribute.content.fil
esize|si(byte)}
<img src={"icon_acrobat.gif"|ezimage} width="19" height="9" border="0" /><br /> {/default} I've also added this rewrite rule: RewriteRule ^/content/download.*$ <httproot>/ezpublish-xxx/index.php [L] Still, the link doesn't lead directly to my pdf-document..
|