View previous topic :: View next topic |
Author |
Message |
ojedapaco
Joined: 03 Mar 2005 Posts: 20
|
Posted: Thu Apr 21, 2005 1:02 pm Post subject: Modifying the attachments icon |
|
|
Hola John,
In looking at my articles, I wonder if the "Attachments" text along with the paper clip at the bottom of each article are getting lost. As you know, I'm doing podcasts, so it's important for me that my readers (listeners) can read an article and quickly find where to go to get the actual mp3 file. Several thoughts come to mind...
1. I could easily create a "click here to download" GIF and remember to include it in the body of every message that has a podcast mp3 attachment. Of course, it's an extra step for me.
2. I could modify the article template (with your guidance, please...) and change the paper clip and the word "Attachments" for something more prominent and colorful.
Is there a link to an article that might guide me in changing this specific aspect of the article template?
As always, thanks in advance for your help!
Paco _________________ Paco Ojeda
The VU: Vallarta Undiscovered
Puerto Vallarta's First Podcast
www.vallartaundiscovered.com
|
|
Back to top |
|
|
john Site Admin
Joined: 16 Mar 2004 Posts: 3434
|
Posted: Thu Apr 21, 2005 10:47 pm Post subject: Re: Modifying the attachments icon |
|
|
I could modify the article template (with your guidance, please...) and change the paper clip and the word "Attachments" for something more prominent and colorful.
Yes, you could do that, and it is probably the way we would go about it.
Keep in mind that there are two places you would need to change. Since you can only download an attachment file from a permanent link, not when browsing in category view, you would need to update 2 templates, the category and article templates. (In category view, the attachment icon links you to the attachment area on the permanent link. It is not possible to download an attachment in category view.)
We discussed modifying the category template in a previous discussion here, where you noted that you went on to modify the "more" link when for articles with excerpts to use your own text, changing it to read "Click here to read more." A good change, trading brevity for clarity.
Follow the same steps shown on that post for accessing the category template and look for this text in your template:
Code: | <!-- ATTACHMENTS -->
{{if num_attachments}}
<div style="margin-bottom:8px;"><a href="{{view_url}}#attachments"><img src="/_images/paperclip.gif" width="15" height="15" border="0"></a> <strong>{{num_attachments}} Attachment{{unless num_attachments eq "1"}}s{{/unless}}</strong></div>
{{/if}}
<!-- END ATTACHMENTS --> |
Change the icon used on that page by changing this part /_images/paperclip.gif to the path of an image on your server. Don't forget to change the size attributes as well. So if there was a new icon called newAttachmentIcon.gif with dimensions of 20 x 20 that you uploaded to your File Manager in a directory you called newIcons, you would change the code above to:
Code: | <!-- ATTACHMENTS -->
{{if num_attachments}}
<div style="margin-bottom:8px;"><a href="{{view_url}}#attachments"><img src="/newIcons/newAttachmentIcon.gif" width="20" height="20" border="0"></a> <strong>{{num_attachments}} Attachment{{unless num_attachments eq "1"}}s{{/unless}}</strong></div>
{{/if}}
<!-- END ATTACHMENTS --> |
That should get you started in seeing how you can modify that part of the page, then you would probably want to modify the article template in a similar fashion... Let us know how it goes and how far you get with these instructions and we'll be glad to help further if need be. |
|
Back to top |
|
|
Search all BlogHarbor support resources.
|
View previous topic :: View next topic |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|