Alfresco Share Dashlet(UserDashlet and SiteDashlet) - alfresco

I need to create one dashlet which is user-dashlet as well as site dashlet.Alfresco user can add it in both the dashboard, user dashboard as well as site dashborad.
Is there any way to achieve this?
I know in dashlet descriptor's family tag, there are 2 types of values which we can specify, which is user-dashlet and site-dashlet.In this tag can we specify some thing else to achieve my requirement?

There are 3 values which can be specified in family tag of dashlet in Descriptor file.
1.<family>site-dashlet</family> - Dashlet will be visible on site dashboard only.
2.<family>user-dashlet</family> - Dashlet will be visible in user dashboard only.
3.<family>dashlet</family> - It will be visible in both the dashboard.

If you keep just "dashlet" it should be visible both places

Related

Hide few wordpress dashboard option from client

I have just developed a wordpress site for a client. The client wants full access but I dont want to give him access to all the work which I have done (plugins, techniques, themes options etc). How can I give a customized dashboard access to the client with hidden plugins and theme menu items.
Thanks
If you want GUI based approach and not want to handle it via functions, using the Members plugin could help
I think you would prefer to go with a plugin rather than pieces of code. You can achieve the same by using a plugin called Adminimize
Admins can activate/deactivate every part of the menu and even parts of the sub-menu. Meta fields can be administered separately for posts and pages. Certain parts of the write menu can be deactivated separately for admins or non-admins. The header of the backend is minimized and optimized to give you more space and the structure of the menu gets changed to make it more logical – this can all be done per user so each role and their resulting users can have his own settings.
I hope the above information worked for you.

How to give access to a specific group people on newly created custom page in alfresco?

I have created a new custom page in alfresco and i want to give access that particular page for a particular group only. If there is any way please reply.
Thanks in advance.
One way to do this would be by using an evaluator on the Share module that contains your custom page, see https://docs.alfresco.com/5.2/concepts/dev-extensions-share-module-deployment.html
Your evaluator can check to see whether the user is in the appropriate group and then hide the module, if not, thus hiding the page.

Drupal arguments in a menu

By default on a page I have the following menu:
Profile /profile
Albums /album
Awards /awards
Going to any of those pages will load the page default.
If I go to a page on my site such as /mycontent/1 I wish to change a the menu to be the following.
Profile /profile/1
Albums /album/1
Awards /awards/1
I want to pass the argument (nid) to the menu. Is this possible?
Update
The selected answer does do what I asked. I however have changed how I am doing things to use Panels to display the content. I am then using some CSS and JavaScript to hide and show content. With views caching it seems to be working well.
Yes,use arg(0),arg(1), or arg(2) depending on which variable you want to use. It will use the path like the indexes of an array (0/1/2/3/4/etc...). Drupal will send you these variables as they were before the path was aliased if that is something that has been applied to it. Why are you passing the variable? There is probably a better way to do it the "Drupal" way..
Actually I am working on this same problem currently where I need to translate an aliased path: dept/profile/1 to load node/1223/profile/1 where 1 is the ID of the profile to show.
What I am using now is the URL Alter module and implementing the hook it gives to enable this feature. If you are interested in this maybe we can see if it is possible to get module out with a GUI.
My thread on this that is active now: Using module: url_alter and it's hook: hook_url_outbound_alter()
I am using a node that houses a panel which has a view inside it, for reasons that are site specific.

How to embed a node on homepage in Drupal 6?

How can I embed a node on the front page in Drupal 6. The node basically has the image upload field along with title and description. I want it to some how appear on the homepage alongwith a "views" which shows the uploaded images at the bottom.
What I want is to give the users an ability to create content which is right now available at .../node/photo/add. I want to somehow show this box which lets one create content i.e. upload photo with title and description on the homepage.
It's basically just an attempt at creating something like imageshack as an experiment.
I am pretty n00b when it comes to drupal so please be more descriptive.
Jukebox's solution works as a point-and-click method. If you want to do it with code, it's more like this:
create a glue module Handbook | Example Blog Post
turn it on in admin/build/modules
create a menu item using hook_menu() that will become the page
embed the node with node_view()
embed the view (blog post)
in admin/settings/site-information set your page to the
You can use the Node Blocks module to, well, turn your node into a block. This means that you can go to the /admin/build/block page and place your node in a particular region.
After installing the module, edit the Content Type of the node you want to turn into a block. Under Workflow Settings, Available As Block, choose Enable.
Now you can go to /admin/build/block and you can see some new blocks. Just choose the one you want and place it in the region of your choice. You can also configure that block's visibility settings from there as well.
If your planning on having a more complicated home page at any point in the future I'd highly recommend using Panels to do this. It will allow you to arrange your front page with views and nodes in a grid method.

Drupal : Drupal6 views : Filter restriction

I am a newbie to Drupal, hope somebody can answer my query.
I think I am facing a weird problem in views..I have a content type of say Company and have around 3-4 pages added to it. The sequence is as
1. Company - default page
2. View company
3. Search company
4. New page
The problem is when I go and add a Filter to the Search company page then that filter get shared with the default page and new page but doesn't get shared with the view company page, I am not sure what is causing this as I want that filter to be applicable for the search page and do not get shared across other pages.
is there a setting where I can restrict this filter getting shared ?
Thanks in advance
- Dev-Drupal.
If you want to set a filter only for one display, you have to, on the configuration of that display :
specify that the filters should "override" the default ones
specific the specific filters you want on that display.
See What are overrides? for a little longer description.
Basically, on the configuration of the "Search company" display, when you are trying to configure filters, you should choose "override" before specifying your filters.

Resources