Re: [eriqcook] How to make single link change automatically based on filetype
Hi there.
Thanks for posting!
I think what I'll do is just go over the code briefly so we can both be sure I am on the right track here :).
You are definitely off to a good start with the if/else approach, so that's going to work.
First off, the way I see it, each article will have the option of linking to a full article page or right to a file download.
The idea behind those if/elses is going to be something like this:
if upload fields is not blank (which means you've uploaded a file), display a link to download the file.
if the upload field is blank (you have not uploaded a file), display a link to the full article.
Does that sound about right? Let me know and I'll go over the code in more detail.
Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com
Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/