Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choose relation field to display #913

Closed
trigau opened this issue Feb 18, 2014 · 2 comments
Closed

Choose relation field to display #913

trigau opened this issue Feb 18, 2014 · 2 comments

Comments

@trigau
Copy link

trigau commented Feb 18, 2014

For a contenttype, it is possible to define one or more relations. These relations will appear when editing a record, but we can not choose which field of this relation contenttype to display.

So may I suggest to allow user to define the field of relation that we want to display ?

Thanks

@bobdenotter
Copy link
Member

You are correct, this is currently hardcoded:

{{ item.title|escape }} <span>(№ {{ item.id }})</span>

For the next release of Bolt, you will be able to add it to your contenttype.yml:

    relations:
        entries:
            multiple: false
            label: Choose an entry
            order: -id
            format: "{{ item.name|escape }} <span>(№ {{ item.id }})</span>"

@trigau
Copy link
Author

trigau commented Feb 18, 2014

Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants