V14 Love the Conditions you can specify
# package-development
r
V14 Love the Conditions you can specify in your manifest. Is it possible to use a condition for a sectionView? As in I only want to show the sidebar app when I am on SectionView.MemberExport ?
k
Condition on the section alias ?
Copy code
json
conditions: [
  {
    alias: 'Umb.Condition.SectionAlias',
    match: sectionAlias,
  },
],
r
Yes doing that, problem is that the whole member section is there so was hoping to only display on a certain section view
k
would the section view be a 'workspace' . you could try a workspace condition ?
Copy code
json
conditions: [
  {
      alias: 'Umb.Condition.WorkspaceAlias',
      match: workspaceAlias,
  },
],
r
Ah great will check that out
n
I'm not sure I will recommend the sidebar appearing/disappearing in relation to the sectionView. As thats sort of a inverse relation between the two. As we in general use the sidebar as the overview/navigation and then the sectionView/workspace/dashboard as the second level. In other words that would break the users general understanding of the hieraki. It's all about the visual structure, cause there is ways for you to create your own condition, which then could look at a global-context of yours... But I would recommend that you consider the visual structure first. So if you like something only appearing inside a specific sectionView, then that should visually be contained within such. So I would recommend aiming for something that looks different than a sidebar to not confuse the user. I dont know what it is you want to show. At least from a design perspective for the sidebar to appear within a sectionView it would then have to be below the section-view navigation bar(inside the section view), which would seem odd as the sidebar normally sticks to the left of it. I hope that makes sense 🙂
r
Hi Niels, Makes sense but for the export there will be navigation (holds saved exports) on the member section. Added a picture to visualize. I copied the code for section view to display the export icon on the member section, if there is a better way than a section view to achieve this I am all ears.. https://cdn.discordapp.com/attachments/1229804040674611370/1230058127957823488/image.png?ex=6631efe7&is=661f7ae7&hm=1d48bb3bce1b43f8be05927a74d800c08d351ed10cc530ad25e6fcee8a9deffa&
n
Thanks for making that clear. I do understand that you need A sidebar menu/overview for the Export part, but when displayed like this it appears to the user like a layer above Member/Member Groups/Export. Which in your situation is not what you want, you want something that lives within the Export view, as it should only appear when the user is on Export. This could be a left column overview, like the sidebar or take any other shape. that does not matter much, but what is important to notice here is that the Backoffice Layout of the sidebar is not suitable for this case. But a sidebar within your view could be a solution. But you should implement that your self. I hope that makes sense, otherwise let me know and I will compose how that would look 🙂
r
Thanks Niels and makes sense to me since yesterday. I thought it was possible with a simple condition extension but that is indeed only triggered once when loading tghe workspace. Not sure yet how to solve it but maybe I will do it different anyway since it's only needed when a definition is saved, not sure yet..,
4 Views