Get url of an url field into an info Field


Is there a way to get url from an url field and put it into an info field in a different page ?

I’m trying to do something like this :

So i want to do this un yaml :

        label: RECETTES
        type: info
        text: >
            <a href="GET_URL/panel/pages/recettes/add">Ajouter</a>

Or is there a better way to get the url ?

Thank you !

You would need your own custom field for this, the info field doesn’t support dynamic data by default.

Creating a simple field isn’t very difficult. You can copy the info field from the panel/app/fields/info directory into the site/fields directory and modify it to your needs. Let me know in case you have any questions.

Ok, i will try that, thank you !