# Kirby tag, multiple inputs/values

**URL:** <https://forum.getkirby.com/t/kirby-tag-multiple-inputs-values/9204>\
**Category:** Questions\
**Tags:** v2\
**Created:** [December 6, 2017, 3:38am UTC](https://forum.getkirby.com/t/kirby-tag-multiple-inputs-values/9204 "2017-12-06T03:38:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukehatfield](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukehatfield/32/386_2.png) [@lukehatfield](https://forum.getkirby.com/u/lukehatfield)\
**Post date:** [December 6, 2017, 3:38am UTC](https://forum.getkirby.com/t/kirby-tag-multiple-inputs-values/9204/1 "2017-12-06T03:38:18Z")

</div>

I’m making a custom kirby tag so the client can add a slideshow into the text content wherever they want. I was thinking of the following structure:

`(slideshow: image1.jpg, image2.jpg, image3.jpg)`

Is it possible to pass multiple, unnamed values to a custom tag, or do I need to label each value like the following, which does not look clean:

`(slideshow: image1.jpg, 2:image2.jpg, 3:image3.jpg)`

---

<div class="post-metadata">

**Author:** ![pedroborges](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/pedroborges/32/7038_2.png) [@pedroborges](https://forum.getkirby.com/u/pedroborges)\
**Post date:** [December 6, 2017, 4:26am UTC](https://forum.getkirby.com/t/kirby-tag-multiple-inputs-values/9204/2 "2017-12-06T04:26:37Z")

</div>

It won’t work with commas as it is used to separate the tag attributes.

Since you are creating the Kirby tag, I would suggest you to use `|`. That way you can use the `explode` function to make an array out of it:

```auto
(slideshow: image1.jpg|image2.jpg|image3.jpg)

```

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [December 6, 2017, 7:07am UTC](https://forum.getkirby.com/t/kirby-tag-multiple-inputs-values/9204/3 "2017-12-06T07:07:13Z")

</div>

Äh, sorry to correct you, @pedroborges. Using commas to separate items is perfectly valid and they are not used to separate tag attributes. There is no comma between tag attributes.

So this:

```auto
(slideshow: image1.jpg, image2.jpg, image3.jpg)

```

is fine and in fact used in other tags.

A standard tag with multiple attributes looks like this:

```nohighlight
(image: mywonderfulimage.jpg caption: Greatest image ever class: superclass)

```

---

<div class="post-metadata">

**Author:** ![pedroborges](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/pedroborges/32/7038_2.png) [@pedroborges](https://forum.getkirby.com/u/pedroborges)\
**Post date:** [December 6, 2017, 10:20am UTC](https://forum.getkirby.com/t/kirby-tag-multiple-inputs-values/9204/4 "2017-12-06T10:20:28Z")

</div>

Thanks for correcting me @texnixe. In the back of my mind I thought it was that way without checking. Now I learned something 🙂

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:30pm UTC](https://forum.getkirby.com/t/kirby-tag-multiple-inputs-values/9204/5 "2025-02-06T17:30:21Z")

</div>


