Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-01-12 14:52:00

firago
Member
Registered: 2005-01-03
Posts: 54

link to previous article by using picture?

i would like the article that you are viewing to to have a link to the previous and next article using the pictures in those previous articles. The image is inputed using a custom field. Is there anyway this can happen?

something like < txp:prev_custom_field name=“picture” /> is what i was thinking

i would love any help you could give me.

Last edited by firago (2006-01-12 15:15:54)

Offline

#2 2006-01-13 22:04:29

firago
Member
Registered: 2005-01-03
Posts: 54

Re: link to previous article by using picture?

do yall not have any ideas, plugins, or examples of how i could do this?

Offline

#3 2006-01-19 23:34:02

professerbootay
New Member
Registered: 2006-01-19
Posts: 2

Re: link to previous article by using picture?

yeah, i got the same problem… a little help maybe?

Offline

#4 2006-01-30 01:22:42

firago
Member
Registered: 2005-01-03
Posts: 54

Re: link to previous article by using picture?

could somebody please try and help me on this?

Offline

#5 2006-01-30 02:37:11

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

Re: link to previous article by using picture?

There’s no way to do it without writing a custom plugin.


Alex

Offline

#6 2006-02-10 01:30:31

firago
Member
Registered: 2005-01-03
Posts: 54

Re: link to previous article by using picture?

is there any easy way to make a plugin for this? like a plugin creator or at least some specific guidelines?

Offline

#7 2006-08-08 10:35:50

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

Re: link to previous article by using picture?

Firago,

did you solve your problem? I need the same, I need to get text form custom_1 field from previos and next article…

Offline

#8 2006-08-17 18:59:16

firago
Member
Registered: 2005-01-03
Posts: 54

Re: link to previous article by using picture?

beztak, I did not find a way to fix this, and i decided to go about doing this another way. sorry

Offline

#9 2006-08-17 20:46:23

beztak
Member
From: Czech Republic
Registered: 2005-07-21
Posts: 184
Website

Re: link to previous article by using picture?

But I found the way:

< txp:php >
$idd = $GLOBALS[‘pretext’][‘next_id’];
$rs = safe_row(“*”, “textpattern”, “id=’$idd’ limit 1”);
extract($rs);
print $custom_1;
< /txp:php >

Of course, you can replace custom_1 with any other txp article tag…
And next_id replace with prev_id…

Offline

Board footer

Powered by FluxBB