Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-02-08 14:58:28

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

display ALL articles

Interesting question, hopefully someone can answer:

My site/photographs are currently organised in categories, navigable by the sections in which they’re located. Generally, you have to do that for the purpose of 1) information architecture and b) page load problems, especially if you’re on a slow ‘net connection.

But its occured to me, it might be good to offer people the option of seeing all my photos at once so the question is: how can I do that? Its not practical to go through all the article entries and allocate them to another category/whatever – far too much work. So is there some other way of doing that, kind of de-classifying all the articles and making that available as a browsing option?

Thanks guys.

Offline

#2 2007-02-08 15:22:23

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: display ALL articles

Assuming that you have one photo per article. It’s best to use thumbnails re the photos.
A method would be to use article image and for that image to be a thumbnail.

One way would be to use

<txp:article listform="thumbs"  limit="1000" />

where the thumbs form looks like

<txp:permlink><txp:article_image thumbnail="1" /></txp:permlink>

You could also use the if_different tag as well to separate the photos into categories

Last edited by colak (2007-02-08 15:23:13)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2007-02-08 15:46:30

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: display ALL articles

That can turn into a bandwidth nightmare after the spiders get a hold of this link and searches return this massive page. You might think about making it only available to authorized users, cause I wouldn’t trust the robots.txt file to protect you, there’s too many spiders that ignore it.

Offline

#4 2007-02-08 22:25:45

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: display ALL articles

Edit: not sure if I was being clear.
What I was trying to refer to was not to display all my photos, which would be a page-load nightmare, but to display all the thumbnails. Every photo has a thumbnail, which are currently navigable according to section eg. ‘Lake District’ shows all the ‘Lake District’ photo thumbnails.

So what I want to maybe do is ‘de-classify’ those categories, allowing for just one page which will display all the thumbnails – regardless of which cateogry they are in: ‘Lake District’, ‘People’, ‘Nature’, ‘Alps’, May June July 2006, etc.

Colak: is that what you understand, and what you were addressing?

hcgtv: I’ve got many hundreds of individual article/photo pages. Are you saying, if Google runs a spider and people searching in Google will find it and just waste bandwidth with waste-of-time searches? If so, that’s an interesting point which could be a problem. This is what I’m considering – this guy does it here – could that be a problem?

Last edited by jameslomax (2007-02-09 11:23:13)

Offline

#5 2007-02-08 23:28:38

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: display ALL articles

jameslomax wrote:

hcgtv: I’ve got many hundreds of individual article/photo pages. Are you saying, if Google runs a spider and people searching in Google will find it and just waste bandwidth with waste-of-time searches?

Google image search is one the most common referrals I get on my sites. The way it works, if a user clicks on an image, they get your site in the lower hand frame, this wastes bandwidth. On hcgtv before I switched over to Textpattern, my archive pages were sucking up over 1.5gb of bandwidth a day, and they weren’t actually visitng my site.

Offline

#6 2007-02-09 04:47:26

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: display ALL articles

You can block the Google image bot, by the way, it respects robots.txt.

User-agent: Googlebot-Image
Disallow: /

That said, I wouldn’t recommend viewing all thumbnails at once either. Something like, say, 25 at a time with a nav link is advisable.

Offline

#7 2007-02-09 06:19:49

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: display ALL articles

jameslomax wrote:

Edit: not sure if I was being clear.
What I was trying to refer to was not to display all my photos, which would be a page-load nightmare, but to display all the thumbnails. Every photo has a thumbnail, which are currently navigable according to section eg. ‘Lake District’ shows all the ‘Lake District’ photo thumbnails.

So what I want to maybe do is ‘de-classify’ those categories, allowing for just one page which will display all the thumbnails – regardless of which cateogry they are in: ‘Lake District’, ‘People’, ‘Nature’, ‘Alps’, etc.

Colak: is that what you understand, and what you were addressing?

Hi James, that’s how I understood it. The code I gave is a snippet from an if_category page I have here which displays about 66 thumbs. (there’ll be 68 when I get some outstanding info)

I guess the ‘trick’ is to have the thumbnails very small.

Last edited by colak (2007-02-09 06:20:47)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#8 2007-02-20 12:43:43

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: display ALL articles

Hmmm well it appears there may be some problems with this so I’ll put this project aside for now….
Thanks all!

Last edited by jameslomax (2007-02-20 12:44:36)

Offline

Board footer

Powered by FluxBB