Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-04-10 10:44:27

ultramega
Member
Registered: 2006-02-26
Posts: 221

Custom field, series of image id's and links to original images

Does anyone know if some of the existing image plugins have possibility to include set of image id’s in the one custom field, and then output just links to these original images? Or other way to do this?

I wouldn’t need any fancy *.boxes or galleries, just plain image link. Like for example Smd_slimbox does if javascript is set off.

Offline

#2 2008-04-10 11:37:14

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,449
Website GitHub

Re: Custom field, series of image id's and links to original images

smd_gallery will do it:

<txp:smd_gallery id="?custom_field_name">
 <a href="{url}">{object}</a>
</txp:smd_gallery>

You can build up from there to make it display the full size pictures however you like, popup a new window etc.

If you don’t need thumbnails but want text links, use the text attribute.

Last edited by Bloke (2008-04-10 11:37:54)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2008-04-10 11:57:15

ultramega
Member
Registered: 2006-02-26
Posts: 221

Re: Custom field, series of image id's and links to original images

Ok, so I really have to test this new plugin, haven’t got time yet. Thanks Bloke, for both of these plugins :)

Is the gallery compatible with MLP?

Last edited by ultramega (2008-04-10 11:57:45)

Offline

#4 2008-04-10 12:09:08

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,449
Website GitHub

Re: Custom field, series of image id's and links to original images

ultramega wrote:

Is the gallery compatible with MLP?

Depends what you mean by “compatible”! I have not built any direct MLP support into the plugin at the moment, but since all output is controlled by a form, you can use MLP snippets. You can do this with the pagination form as well; in fact there’s a brief example in the plugin help on the subject of snippets. Any reports of your experience with MLP and smd_gallery greatly appreciated.

The only place I know where it will currently fall apart is the navigation page numbers e.g. << < 1 2 3 4 > >>. Currently, the numbers are fixed as roman numerals arabic ordinals because I can’t figure out a way of counting my array indices in other languages! Clearly, forcing you to define MLP strings for every conceivable page number is going to be a bit of a pain to manage, though in practice you’ll probably have less than 10 or 20 pages; and it only affects languages that don’t use arabic ordinals.

If you (or anyone) have any ideas on how best to offer support for MLP in this context, then please let me know. At the moment I can’t quite get my head round it.

Last edited by Bloke (2008-04-10 12:12:32)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#5 2008-04-10 13:31:28

ultramega
Member
Registered: 2006-02-26
Posts: 221

Re: Custom field, series of image id's and links to original images

Depends what you mean by “compatible”

I mean the slimbox version can read captions with different langs and use them with overlayed images.

Last edited by ultramega (2008-04-10 13:31:54)

Offline

#6 2008-04-10 14:54:16

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,449
Website GitHub

Re: Custom field, series of image id's and links to original images

ultramega wrote:

I mean the slimbox version can read captions with different langs and use them with overlayed images.

In that case, the answer is no unless you’re using snippets :-(

Full MLP is on the ToDo list when I figure out how to actually do it!


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#7 2008-04-10 15:44:51

ultramega
Member
Registered: 2006-02-26
Posts: 221

Re: Custom field, series of image id's and links to original images

Ok, waiting for that :)

Offline

Board footer

Powered by FluxBB