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

Bug: `sentence_list` parameters don't work on taxonomies #1195

Closed
edalzell opened this Issue Jan 27, 2017 · 2 comments

Comments

Projects
None yet
3 participants
@edalzell

edalzell commented Jan 27, 2017

No description provided.

@edalzell

This comment has been minimized.

edalzell commented Jan 27, 2017

Looking at the code it seems it is supported, except it doesn't work on a taxonomy.

{{ categories sentence_list="&" }} causes:

FatalErrorException in Helper.php line 121:
Object of class Statamic\Data\Taxonomies\Term could not be converted to string
in Helper.php line 121
at FatalErrorException->__construct() in HandleExceptions.php line 132
at HandleExceptions->fatalExceptionFromError() in HandleExceptions.php line 118
at HandleExceptions->handleShutdown() in HandleExceptions.php line 0
at join() in Helper.php line 121
at Helper::makeSentenceList() in BaseModifiers.php line 1464
at BaseModifiers->sentenceList() in Modify.php line 200

@edalzell edalzell changed the title from FR: sentence_list should have a parameter to Bug sentence_list parameters don't work on taxonomies Jan 27, 2017

@edalzell edalzell changed the title from Bug sentence_list parameters don't work on taxonomies to Bug: `sentence_list` parameters don't work on taxonomies Jan 27, 2017

@jasonvarga

This comment has been minimized.

Member

jasonvarga commented Jan 27, 2017

Leave this open as its a bug, but you can get around it for now by using categories_raw instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment