My requirement is that i have a liferay portal which has two types of user creation process:
Manual creation by the admin
Users can create via create account
I want to land the users to different landing pages based on the user-groups. User creation process1 belongs to one group and process2 belongs to another group. How to achieve it. Process1 is working fine by setting the default landing path but i want to land the users who are created by process2 to a different landing page.
Thanks in advance!!
Regards,
S.Ponraj
Take a look at the page here for information on how to create a landing page hook.
You will also need a way to identify if the user is from process 1 or process 2. One possible approach would be using liferay custom fields (expando).
Related
In liferay, the question selected by Admin in the Polls Display Portlet is displayed to the users. Now what I want to do is, display different question the users with different site Roles. Eg., role1 is assigned to userGroup1 and role2 is assigned to userGroup2 in the same site. Now when I add Polls Display Portlet on a page in Site, question1 has to be selected for userGroup1 and question2 for userGroup2. But now only one question can be selected and if permission is given the question is displayed else error tag "User does not have Permission" is displayed. So how can I achieve the functionality that role wise poll is displayed to the users?
You can put 2 PollS portlet on the page and give view permissions to one for role 1 and then role 2 to the other Polls portlet.
This way the portlet will alternate depending on the rights.
If you getting the do not have permissions message and don't want it. Look into portlet.preferences. You can disable it.
I want to implement visitor counter on bottom of page and that page footer is configured through liferay 6.2 Kindly help me for this requirement.
There's nothing in Liferay that does this as well. You'll have to count for yourself and duplicate what all those services already do: De-Duplicate the requests that are coming in, determine if you want to count robots (determine if a visitor is a robot), determine if several users come from a single IP, determine if a single user comes from multiple IPs, reset the counter if you want to start over at the end of the day, etc etc etc.
Liferay has integrations with Google Analytics as well as Piwik (starting on 6.2). Other implementations are possible (easy actually), but remain for you to do them yourself. Be aware that the integration is easy while the implementation of the business layer might be harder.
Ref: https://web.liferay.com/pt/community/forums/-/message_boards/message/59503582
If you take a page and put it in a workflow, then if someone wants to modify that page – in an emergency situation and essentially start another workflow on it –
Is that possible to send that page through another workflow?
If you don’t want to send the same page through a workflow, but just want to edit it, can you?
Apparently If one person is editing a CQ page and same page is edited by someone else at the same time, at production level, how the CQ / developer handles the situation?
Thanks in Advance
It is not possible to subject a page to more than one workflow at once, none of the interfaces allow this to happen.
The pages can be edited even when they are subject to a workflow. In emergency situations where in it is not possible to complete the workflow , users with required privileges can terminate the workflow from the instances tab of the workflow console (/libs/cq/workflow/content/console.html). Pages can be usually activated even if they are subject to workflows.
The repository is accessed via repository session. Based on the credentials provided the user gets a repository session. Any changes made via that session is only visible to the other users when the session is saved. Since different sessions are used , multiple users can edit the same page simultaneously. The data in dialogs are loaded via asynchronous GET requests when EDIT is clicked and not on page load , so it is very unlikely that the user will be editing old data. They can still overwrite some other user's changes. Developers do not have to handle these situations unless there is some special requirement. If a user wants to stop other users from editing a page , they can use the lock functionality that comes out of the box. A locked page can be unlocked only by the user who locked it or an administrator. A page or node can be programmatically locked via the JCR API.
I've been thinking about an online idea for about 3-4 years now and can't get it out of my head so I've decided to act upon it and see if I can get it working. Currently working a POC and design layout which I plan to tender for development.
The main part of the portal and most important component involves user sub-sites. I am unsure how to tackle the process for a user to create a sub-site during the registration process and/or what path to take.
Let's say the main site is www.abc.net - the user would then register a sub-site based on the credentials they input. E.g. user1.abc.net, mysite.abc.net or joeblog.abc.net... whatever they want and so forth. No SEO required - The site templates are fairly basic and the sub-sites will be accessible through the main site. So the process to be:
User logs onto main site and registers
During registration, user enters details including sub-site name they want
Select the template they want - basically different colour schemes. Functionality to be the same for all templates
their site is created
when the user is logged on they get directed to their sub-site
Ability to edit their sub-site - add content and add extra pages, change details…. etc
General users (registered or anonymous) would be able to browse and search content to the sub-sites via the main site.
Each sub-site to be independent from each other - no content sharing. Basically they are separate websites hosted as sub-sites but need they need some type of editing available like a CMS. Not sure if a shared CMS is possible but the owner has to be able to modify content to their own sub-site.
So my question are…
Do I try and use a Drupal/Wordpress/Joomla CMS with multisite functionality?
Do I try a solution where I have a collection of simple sites that I use for sub-sites, each to have their own database and some type of CMS or WYSIWYG for editing? Is separate CMS even possible for each Sub-site?
Any input would be greatly appreciated.
As far as I know this would not be possible as the CMS would not have access to your server where the sub-domain is created.
It would be possible to offer something similer using Joomla as it offers the option to apply custom styles (templates) to different pages. You would however have to adopt the following URL convention www.yourdomain.com/userselectedtext.
You can then have a page where users register with your site and the cms creates their page.
User permissions in joomla can be set so only the owner of a particular page can view or edit it.
You can check out this source: http://www.drupalgardens.com/. Google what platform is it based on. Maybe you'll find some information. Read also about this extension: http://www.joomplace.com/administration-extensions/multisitescontrol.html. It's for Joomla sites. I used this component for multisites content management. Maybe it will help you too.
I am working in Liferay Portal. I have created my custom work flow and created the portlet to start the work flow. I am done successfully with this but I am facing one problem, when the user clicks on Assign to button from Workflow Tasks to assign the task to some other user the combo box which display available users, it only display the users who has the Administrator or Owner Roles.
As i have developed custom work flow in which i have defined my own roles, i wish to display the users with that roles in the combo box. I have searched a lot but not able to get the proper solution for this.
If anyone has any idea please kindly help.
For this you have to create a hook and you have to write the code in file named "workflow_task_action.jsp" within Workflow_task.....
In this file code for that combobox which you require is available.