You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have stored 3 logos in an account: the one you see on the details page and two more under documents. It's about these last two, more precisely about the sorting.
One of them has a white font (called A), one has a dark font (called B). A was added first, B second.
(Both are needed because I have a light mailbody but a dark footer background where they should be displayed.)
My code:
{% set organisation = sulu_snippet_load_by_area('organisation') %}
{% set account = organisation.content.account.entity %}
{% set additionalImages = account.getMedias() %}
Now, strangely enough, additionalImages[0] is image B, additionalImages[1] is image A.
What is the sorting based on? Can I rely on the current sorting?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have stored 3 logos in an account: the one you see on the details page and two more under documents. It's about these last two, more precisely about the sorting.
One of them has a white font (called A), one has a dark font (called B). A was added first, B second.
(Both are needed because I have a light mailbody but a dark footer background where they should be displayed.)
My code:
Now, strangely enough, additionalImages[0] is image B, additionalImages[1] is image A.
What is the sorting based on? Can I rely on the current sorting?
Beta Was this translation helpful? Give feedback.
All reactions