Listpage Links

4 posts by 2 authors in: Forums > CMS Builder
Last Post: March 31, 2008   (RSS)

By Perchpole - March 30, 2008

Hi, Dave -

Here' a quick teaser for you.

Scenario: I have a list page set-up so that all of the article titles act as links to the corresponding article pages. All of the articles include some sort of text. Most also include an image upload. A few have neither text nor an image upload.

Question: How can I deactivate/disable the links on the list page to those pages without image uploads?

I assume this would invlove some sort of "if" argument - but I'm not sure how to set it up.

Wibble....

[crazy]

AJ

Re: [Dave] Listpage Links

By Perchpole - March 31, 2008

Hi, Dave -

Thanks! This is just what I was hoping for. Unfortunately it doesn't seem to work.

I've added the code but it always returns the "else" option - despite there being several uploads in the list.

[unimpressed]

AJ

Re: [Perchpole] Listpage Links

By Perchpole - March 31, 2008

Sorry -



My fault. It does work. I think I was getting my uploads and images crossed!

<?php $uploads = getUploads($options['tableName'], 'uploads', $record['num']); ?>

I simply changed 'uploads' for 'images' and now it functions as I had anticipated.

Thanks again,

[:)]

AJ