Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-10 20:05:58

js
New Member
Registered: 2005-07-05
Posts: 7

Image - can it link to an external or non-textpattern url?

I’d like to add a few images and have the images (or a title / caption below the image) link to a url (a non textpattern page or different website). Each image or caption displayed underneath would have a different url associated with it than would other images.

Any suggestions would be appreciated.

Thanks,
Jeff

Offline

#2 2006-01-10 20:30:18

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: Image - can it link to an external or non-textpattern url?

> js wrote:

> the images link to a non textpattern page or different website

You have to do it by hand: <a href ="xyc...">txp:image</a>

Offline

#3 2006-01-10 22:33:03

js
New Member
Registered: 2005-07-05
Posts: 7

Re: Image - can it link to an external or non-textpattern url?

> alexandra wrote:

> > js wrote:

> the images link to a non textpattern page or different website

You have to do it by hand: <a href ="xyc...">txp:image</a>

Thanks for your responses. I was afraid that I’d have to do it that way rather than have the url associated with the image – so that the image with the url can be pulled up when it is in a gallery.

Thanks,
Jeff

Offline

#4 2006-01-10 22:37:51

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: Image - can it link to an external or non-textpattern url?

What kind of gallery are you talking about? There are different ways to link to images for different situations: in page templates, article images, textile in article bodies, etc.


Alex

Offline

#5 2006-01-11 05:22:20

js
New Member
Registered: 2005-07-05
Posts: 7

Re: Image - can it link to an external or non-textpattern url?

> zem wrote:

> What kind of gallery are you talking about? There are different ways to link to images for different situations: in page templates, article images, textile in article bodies, etc.

I would like to have a gallery that would pull 3-5 images randomly from the category that I specify. I would like one section of the website to display images (with each image or a caption/description beneath the image being a link to a non-textpattern url) from one image category and another section to pull from another image category.

Thanks,
Jeff

Offline

#6 2006-01-11 06:40:55

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: Image - can it link to an external or non-textpattern url?

js wrote:
I would like to have a gallery that would pull 3-5 images randomly from the category that I specify.

Article Category or Image Category ? The former, easy. The later, well…

I would like one section of the website to display images (with each image or a caption/description beneath the image being a link to a non-textpattern url) from one image category and another section to pull from another image category.

Again, easily done with articles (using the article_image feature to link each image to its own article). Purely with images, I think that would require plugins or a little PHP.

Offline

#7 2006-01-11 07:19:49

Cyrus
Member
From: MY
Registered: 2005-01-09
Posts: 14
Website

Re: Image - can it link to an external or non-textpattern url?

I think he would like to have one section to display random images, with each images link to other websites (not inside his own website/sections/articles)..

I’m looking for the same way as well..

btw, how do I use <txp:link />? I defined a set of links using textpattern (inside the content->links) but how do I actually display it on my website?

Offline

#8 2006-01-12 05:07:39

js
New Member
Registered: 2005-07-05
Posts: 7

Re: Image - can it link to an external or non-textpattern url?

> Cyrus wrote:

> I think he would like to have one section to display random images, with each images link to other websites (not inside his own website/sections/articles)..

I’m looking for the same way as well..

btw, how do I use <txp:link />? I defined a set of links using textpattern (inside the content->links) but how do I actually display it on my website?

Cyrus,

That is correct that I want the images to link to other websites, not my own sections/articles/etc.

You may want to use the linklist tag – can read more about it at http://textpattern.net/wiki/index.php?title=Txp:linklist_/

Offline

Board footer

Powered by FluxBB