Kirby info and conflict with code instruction

Hi there,
I’m trying to add some specific info within my blueprints and I’ve noticed I can’t insert code hint inside the info field. I’ve tried the Markdown code but with no luck.
info:
text: |
pour créer des slideshows avec plusieurs images:
```(swiper: nom-du-fichier-1.jpg, nom-du-fichier-2.jpg)

I have this error in my Panel: Call to a member function url() on null

Many thanks,

Nicolas

Is your indentation correct? Should work like this:

      info:
        text: |
          pour créer des slideshows avec plusieurs images:
          ```(swiper: nom-du-fichier-1.jpg, nom-du-fichier-2.jpg)```

I have this:

            case_study_ready:
              label: Etude de cas – ON/OFF
              type: toggle
              width: 1/4
              translate: false
            info:
              text: |
                pour créer des slideshows avec plusieurs images:
                ```(swiper: nom-du-fichier-1.jpg, nom-du-fichier-2.jpg)```
            case_study:
              label: Etude de cas
              type:  textarea
              width: 3/4
              size:  large
              buttons:
                - bold
                - italic  
                - link
                - file
              translate: true

Hm, I tested this in 3.3.5 without any issues… Which version are you on?

Hi, I have Kirby 3.3.5 and PHP 7.3 on the server.

If I have only: without the code, it works

                info:
                  text: |
                    pour créer des slideshows avec plusieurs images

Hm… :thinking:

I’ve made some tests and there’s something going on with: swiper:
If I’m putting in between “swiper:” or [swiper:]. I don’t have the conflict. ??
like that:

              text: |
                pour créer des slideshows avec plusieurs images:
                ([swiper:]nom-du-fichier-1.jpg, nom-du-fichier-2.jpg)

It works but if have to remember to unbracket it. it’s weird.

I guess it worked for me because I don’t have a swiper tag :see_no_evil:

That makes sense. Well, that’ll do the trick for now. Thanks for the chat.

This should work:

info:
  text: >
    pour créer des slideshows avec plusieurs images:
   
    (swiper: nom-du-fichier-1.jpg, nom-du-fichier-2.jpg)

Top. Many thanks. I’ve updated the blueprint.