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

If there are no media attached to a node, tell the user. #7

Open
mjordan opened this issue Dec 19, 2018 · 1 comment
Open

If there are no media attached to a node, tell the user. #7

mjordan opened this issue Dec 19, 2018 · 1 comment

Comments

@mjordan
Copy link
Owner

mjordan commented Dec 19, 2018

A message like "There are no media associated with this object." would be useful.

@mjordan
Copy link
Owner Author

mjordan commented Dec 19, 2018

Not sure how we can determine from within the controller that there are no media. The output of the view used to list the media is the same regardless of whether there are media or not:

Array
(
    [#type] => view
    [#name] => media_of
    [#display_id] => page_1
    [#arguments] => Array
        (
            [2] => 1
        )

)

Maybe a solution would be to programmatically add a "no results found" property to the view.

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

1 participant