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

AdminStyle for Documents and Assets #5147

Open
elements-team opened this issue Oct 25, 2019 · 0 comments

Comments

@elements-team
Copy link

@elements-team elements-team commented Oct 25, 2019

Feature Request

I was wondering whether we could add the admin style feature (currently available for data objects) to assets and documents as well.

Feature description

As you can see in the screenshot below, we're using Pimcore's Workflow Management. Now, we'd like to display an indicator, describing the workflow state so the user knows what elements are relevant without opening them.

image

The current workaround for this relies on the following events:

  • pimcore.admin.document.treeGetChildsById.preSendData
  • pimcore.admin.asset.treeGetChildsById.preSendData
  • pimcore.admin.dataobject.treeGetChildsById.preSendData

However, when opening an element, then clicking on the + next to the node itself, the node is re-rendered. This causes the classes and, thus, the status indicator to be removed. At this point we didn't find a way to re-apply the classes in order to keep the status indicator.

Adding the possibility of an admin style, similar to the one for data objects, would resolve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.