Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1:
Logic for Template - Article Number vs Filename

 

 


dmsid
User

Jul 23, 2007, 9:57 AM

Post #1 of 3 (4245 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 (4242 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

--
support@interactivetools.com


dmsid
User

Jul 24, 2007, 1:25 AM

Post #3 of 3 (4216 views)
Shortcut
Re: [Donna] Logic for Template - Article Number vs Filename [In reply to] Can't Post

Smile Thanks this will be just what I need.