 |

dmsid
User
Jul 23, 2007, 9:57 AM
Post #1 of 3
(2489 views)
Shortcut
|
|
Logic for Template - Article Number vs Filename
|
Can't Post
|
|
I wanted to know if there is some logic I can create in a template that will create a link based on filename or article number. If ([filename_field] is blank) { <A HREF="/artman/publish/article_[article_number].html>Link</A> } else { <A HREF="/artman/publlish/[filename_field].html>Link</A> } Thanks in advance
|
|
|  |
 |

Donna
Staff
/ Moderator

Jul 23, 2007, 1:32 PM
Post #2 of 3
(2486 views)
Shortcut
|
|
Re: [dmsid] Logic for Template - Article Number vs Filename
[In reply to]
|
Can't Post
|
|
Hi there, Article Manager 1 doesn't have template logic built in -- Article Manager 2 does, however. But, Article Manager 1 does have a placeholder for the URL of the file, regardless of whether it's been set specifically, or if it's auto-created -- $detail_link$. If you can give me more details about what you're trying to do, I can offer more ideas that might work for you... :) Donna
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.
|
|
|  |
 |

dmsid
User
Jul 24, 2007, 1:25 AM
Post #3 of 3
(2460 views)
Shortcut
|
Re: [Donna] Logic for Template - Article Number vs Filename
[In reply to]
|
Can't Post
|
|
Thanks this will be just what I need.
|
|
|  |
|