Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1:
Fields that appear when info present

 

 


simonlilly
User

Jun 10, 2002, 3:46 AM

Post #1 of 5 (5392 views)
Shortcut
Fields that appear when info present Can't Post

We're using Article Manager as our new News Management system to replace an ageing CGI system.

I'm setup 2 of the spare fields to link to a Video Clip and to a relevant Web Address. But they appear as links at the bottom of the stories even if there's not content to link to! How can I make it so that these sections only appear when information has been added.

Here's an example of what I mean:

http://www.meridiantv.com/artman/publish/article_33.shtml

Thanks in advance,



Simon
---
Simon Lilly
Web Bloke
www.meridiantv.com
---


philm
User

Jun 10, 2002, 6:34 AM

Post #2 of 5 (5391 views)
Shortcut
Re: [simonlilly] Fields that appear when info present [In reply to] Can't Post

Hey Simon, sorry this is a bit off topic and I don't have an answer for you. Just wanted to say hi, I'm from Portsmouth. Small World!!! :)
[hr] 
[size 2].:[url "http://www.stickynewmedia.co.uk"]Sticky New Media[/url]:.[/size]


fraser_itools
Staff


Jun 10, 2002, 10:04 AM

Post #3 of 5 (5383 views)
Shortcut
Re: [simonlilly] Fields that appear when info present [In reply to] Can't Post

The only way I can think to do this is to have the whole area be a single field that you put HTML into. You could copy-paste different HTML into the field depending on what you want the bottom of the page to say.

I would hardcode the buttons into the template of the page and don't make them links. Then have two customized fields, one for video report and one for the Internet link.

Then you can have "Not Available" in the field and it won't be a link.

If you do have a link, you'll have to post the full <a href> not just the URL.

So, for example, you would put: <a href = "http://www.interactivetools.com>Interactivetools.com</a> to get it to display properly.


Option 2. If you want to get the whole area to disappear if there's no information then you have to make it just one field. Copy paste the correct HTML to get the page to display with what you want, or just leave it blank and nothing will be published on the page.
Fraser Cain - Product Manager

interactivetools.com, inc.
Tel: (604)689-3347 - Fax: (604)689-3342 - Toll Free: 1(800)752-0455
Software for your Website - http://www.interactivetools.com/    

(This post was edited by Fraser on Jun 10, 2002, 10:07 AM)


Dave
Staff / Moderator


Jun 10, 2002, 10:19 PM

Post #4 of 5 (5377 views)
Shortcut
Re: [simonlilly] Fields that appear when info present [In reply to] Can't Post

Here's another approach you might like:

You could setup your spare fields like this:

spare1 - Display Video Link (yes/no)
spare2 - Video Link URL
spare3 - Display WWW Link (yes/no)
spare4 - Video Link URL

Then rename your "Video Report" image "videoreport_yes.gif" and create a transparent 1x1 gif called "videoreport_no.gif". Then change your HTML to something like this:

<a href="$spare2$"><img src="http://www.meridiantv.com/artman/images/videoreport_$spare1$.gif" width="136" height="18" alt="Video Report" border="0" align="left">

Then if the user enters "yes" it will display the big graphic with link, and if they enter "no" it will display the 1x1 pixel graphic which will be invisible to the viewer.

Alternatively you might just enter "yes" to display the image and leave the field blank to display the 1x1 blank image. You'd have to decided what's easier.

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com
 


simonlilly
User

Jun 11, 2002, 8:00 AM

Post #5 of 5 (5370 views)
Shortcut
Re: [Dave] Fields that appear when info present [In reply to] Can't Post

Thanks to Fraser and Dave for your replies.

I went for Dave's method in the end and here's a sample page using that solution - fantastic!!

http://www.meridiantv.com/artman/publish/article_34.shtml

Thanks again, top support for a top product!

Simon

www.meridiantv.com
---
Simon Lilly
Web Bloke
www.meridiantv.com
---