Hide menu items for users with custom role - directus

I have a custom role for "regular users". for those users I would like to hide / remove some of the menu items in the lower left corner:
basically all I want them to be able to do is to edit their profile, or to sign out. — I was wondering if and how that's possible.

I don't think there's a way to do this out-of-the-box now without you changing the core codebase. I've added a Feature Request to the Directus App repo:
https://github.com/directus/app/issues/1709
Give it a thumbs up and we'll try to include it soon!
Good idea!

Related

Can a Shopify Public App extend the "Add/Edit Product" page?

I am building a new Shopify public app that displays a custom input in the product listing page (at the customer side).
So to enable this, the Shopify Admin should be able to choose specific products to enable this input. And I see two ways to implement this.
Extend Add/Edit product form to add a new section that houses my app-specific config options. See the image for an example.
If the 1st option is not possible, I will provide a separate form on my app page to select products and configure my app-specific options.
So is it possible to do #1? Also, which option is the better way of doing things here?
Any links to documentation would be helpful.
You can't modify the admin panel in any form using an App.
The only thing you can do on these pages is to add a link inside the "More actions" to your app page.
You can use extensions/bookmarklets/userscripts to create some custom logic to modify the admin page and communicate in some overly complicated way with your app but it will require more steps for the customer to work with your app which is not a very friendly way and you may not pass the review process for public apps.
TL;DR you must handle everything from your app screens and you can't modify the admin front-end in any form to add additional stuffs or modify existing ones.

Bigcommerce checkbox addons to product

Is it possible to have a checkbox on the product page that are upselling the current product? For example if the user wants to buy a computer they might want to add a mouse, is that possible to implement on the product page for the computer by adding a checkbox that says "Add a mouse +50 SEK", and mouse in this case is referring to another existing product?
natively you can add a customized checkbox value to your pdp. You would do this under Products > View > Edit > Customizations. Select checkbox. Then enter rules to increase the price when selected. However, this is not tied directly to the product, so you'd have to run your own custom logic to handle inventory if you go this route.
Another option is to use a picklist. This is in the same location as checkbox. However the difference is that you can directly link this to a product on your storefront and not have to worry about inventory as it can be handled within BC if you select that option.
A third option is to use an app from the App Marketplace. I've used the BuyButtons app + an HTML widget on the pdp in a quick test to see how this would look. It would need some tweaking to get it to how you'd like, but it was fairly straight forward.
There are likely many other ways to accomplish this, though! These are just some native options & an app option. Thanks!

Adding short text/badge/icon for a user

Is there a way to show a sub headline or icon for each user? We are trying to show which team each user belongs to. Is there a way to do this?
There is no in-built way of doing so. You can, however, create a plugin to add any metadata you like to a user's profile popover, including the team(s) ther are a member of.

ScrewTurn Wiki send an email to all users when a new page is added or an existing modified

I'm searching how to configure screwturnwiki to send an email message to all users when a new page is added or an existing page is modified.
Could someone help me to find a solution?
Thank you for your help.
Best regards
Fab
I'm pretty sure you can't do exactly what you are asking out of the box. However, here is what you can do:
You can flag individual pages to receive email updates when changes are made or subscribe to an RSS update feed on a page by page basis (top right corner icons).
You can subscribe to a global/namespace RSS update feed for new/updated pages using the RSS icons on the top left corner.
You could write a custom plug-in to provide the functionality you are looking for. Here is a link to available plug-ins but I don't see one that fits your need: Screwturn Customizing

activeadmin: how do I controle what header menu items show based on user

I would like to create some logic with in my Rails app that is using ActiveAdmin backend and I'm not sure if it's possible or not.
Basically I'm wanting to give each AdminUser a new property called client_id. When the user logs in I would like to filter what is shown to them in the header menu.
Each item in the header will all have a "client_id" so that I can filter them.
It's possible, but you'll be doing a bit of custom stuff to get that working.
I'd suggest you would be way better off just rolling your own admin setup. You're going to jump through hoops and do some hackery that doesn't feel right to make everything play nice.