Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2007-11-19 17:38:25

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: No Images in a Category

Sorry for taking so long but I had a slight problem which required the purchase of a new PC. :(

Anyway, the reason I asked is because if it is only used for that purpose, as you say, I presume that if an artist has no images then you can leave the field blank. If that is the case then there is an attribute for txp:custom_field called “default” which allows you to output a message if the field is empty. Does that help at all?


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#14 2007-11-19 18:01:02

sparkybarkalot
Member
Registered: 2004-10-13
Posts: 43

Re: No Images in a Category

Ohhhh… yeah… that should be exactly what I’m looking for. I’ll go try it now. Thanks!

Offline

#15 2007-11-19 19:53:01

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: No Images in a Category

Jeez, Stuart, how do you know these things? You must have memorized TextBook ;)
But seriously, thanks for the tip, I hadn’t found that one yet.

Offline

#16 2007-11-20 13:45:10

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: No Images in a Category

Ha haa. No. I haven’t memorized it yet Els. Still working on that. :)

Actually, the reason I know about this one is that I have recently worked on 2 new sites that make extensive use of custom fields and it’s a handy way of outputting an “error message” if a custom field that needs to be filled in hasn’t been. Particularly useful for clients new to TXP. Eventually they get used to the idea that a particular custom field needs to be filled in or the site won’t work the way it is meant to. :)


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

#17 2007-11-20 15:27:47

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: No Images in a Category

How clever :) I’ll keep that in mind…

Offline

Board footer

Powered by FluxBB