Download a file anywhere on a site
Posted: 29 May 2007 01:08 AM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  320
Joined  12-16-2006

Hello!

I’ve got a simple weblog with a custom field for uploading/adding a PDF file newsletter. What I’d like to do is have the most recent file linked in the sidebar, however I can’t seem to get it to work mainly because I want the link text to be something specific.

The code for the sidebar is a simple unordered list:

<ul>
<
li>Other linked items</li>
<
li><a href="__">Download latest newsletter</a></li>
</
ul>

What do I need to put in the href for it to work? I’m completely out of ideas.

Thanks!

.angie

 Signature 

420 Creative: Web design + development
EE Pro Network Member

Profile
 
 
Posted: 29 May 2007 01:41 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  29218
Joined  05-15-2004

Well, you need the link in a custom field somewhere. Then you’d probably use something like this:

{exp:weblog:entries weblog="your_weblog" disable="trackbacks|pagination" dynamic="off"}
<ul>
<
li>Other linked items</li>
<
li><a href="{your_custom_field}">Download latest newsletter</a></li>
</
ul>
{/exp:weblog:entries}
 Signature 

ExpressionEngine 2.0 Downloads | Docs | Bugtracker

“If the English language made any sense, lackadaisical would have something to do with a shortage of flowers.” (Doug Larson)

Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 03:47 PM
Total Registered Members: 120442 Total Logged-in Users: 56
Total Topics: 126530 Total Anonymous Users: 33
Total Replies: 665325 Total Guests: 347
Total Posts: 791855    
Members ( View Memberlist )