I would like to have different side menus in ionic 2 app based on user login.
When a user logs in as customer , I want to show a side-menu with customer functionalities.
When a user logs in as admin, I will show different side-menu.
I am using Ionic 2 sidemenu template
Any help would be really appreciated.
You could use *ngIf on an element inside your sidebar to display based on if the user is logged in as admin.
Example:
<div class="side-bar-admin" *ngIf="admin'"></div>
Related
Is it possible to have multiple PWA's on a single website? My website has certain subpages like this:
www.example.com/Page1
www.example.com/Page2
Now I want a PWA for "Page1" and a different PWA for "Page2". So if you go to Page1 you will get an add to home screen popup and if you go to Page2 you will get the add to home screen popup. So you have two different PWA's on your home screen.
Yes - this should work. You would need a separate manifest.json and service worker for each page. Please try it and let us know if you are successful.
i have a business page ob facebook and i want to create 3 tabs for offers, best selling, promotions.
I have create on my website 3 pages without header and footer and show only the main content.
To do this
I have create an app on facebook developers.
i created my first custom facebook tab that show contents of my
webpage which working fine.
When i tried to created another tab clicking add platform the Page Tab is grey meaning that i cant create another tab.
This means that the app can have only one tab ?
and if i want to have 2-3 custom tabs whats the solution ?
Thanks
This means that the app can have only one tab ?
Yes.
and if i want to have 2-3 custom tabs whats the solution ?
To create 2-3 apps.
I am looking to receive the URL and other content from pages visited in the browser. How can I achieve this with Ionic 3? It would consist of clicking the share button in the browser, choosing my app, and then being able to save the data to my app.
This is what it looks like after you click on your app in the share menu. (a different app) but I want to create an interface like this which sends data to the user:
I am in need of override the User registeration page inside the Liferay .
My requirement is that i need to add a Password and password confrmation field to it to the newly created user .
Before creating a hook to modify the jsp and the UserLocalService , i have got a below query
I have seen two user registration screens which are
a screen popped up when navigated through Sign -In ---->Create_account Page
Control Panel ---> User and Organization ---> Add User Page
Could anybody please let me know what is the page i need to choose from the above two ??
Also please let me know what is the difference between these two screens ??
Option 1 is for scenario when any guest user comes to your site and do registration.
Option 2 is screen where admin user creates user.
For user registration customization, you have to override create_account.jsp from sign in portlet.(option 1)
I'm working on a wordpress plugin which inserts some pages using wp_insert_post() on activation. These pages are then used for different purposes (user account dashboard, edit account info, change password, login, logout, etc...).
Issue is all these pages get some menus which are displayed to all frontend users which is not correct because a non logged-in user for example should not see logout menu or any menu to a private page until authenticated. Now, I'm stucked at how to do just that. Any idea ?
I stress that the plugin login process is seperated from WP login
Wordpress can not assign restrictions and roles to specific pages, posts or terms by default.
You could create two separated menues and add a custom logic to your template.
if(is_user_logged_in())
{
wp_nav_menu('foo');
}
else
{
wp_nav_menu('bar');
}