Hi!
I have a webshop with a login function through Intranet/Extranet module. I want to use different pages as root pages, "www.mysite.com/Default.aspx" whether the customer in logged in or not.
Is this possible to achieve?
Best regards,
P
Developer forum
E-mail notifications
Different startpage
Per Ljung
Posted on 15/08/2011 14:37:08
Replies
Vladimir
Posted on 18/08/2011 03:19:53
Hi Per!
The view of the "root" page, is depended of \Files\Templates\Designs\yourSiteTemplate\master.html
So you can change master.html for example so:
<!--@If Defined(Global:Extranet.UserName)-->
...menu/navigation for logged user....
<!--@EndIf(Global:Extranet.UserName)-->
<!--@If Not Defined(Global:Extranet.UserName)-->
...menu/navigation for guests....
<!--@EndIf(Global:Extranet.UserName)-->
The view of the "root" page, is depended of \Files\Templates\Designs\yourSiteTemplate\master.html
So you can change master.html for example so:
<!--@If Defined(Global:Extranet.UserName)-->
...menu/navigation for logged user....
<!--@EndIf(Global:Extranet.UserName)-->
<!--@If Not Defined(Global:Extranet.UserName)-->
...menu/navigation for guests....
<!--@EndIf(Global:Extranet.UserName)-->
Per Ljung
Posted on 18/08/2011 11:29:59
Hi!
Okay, but the best thing would if I could use a page with another id as start page, eg. now is the id of the start page 1, I don't want to use another htm-file as start page, instead I want to use another page in dw.
Best regards,
P
Okay, but the best thing would if I could use a page with another id as start page, eg. now is the id of the start page 1, I don't want to use another htm-file as start page, instead I want to use another page in dw.
Best regards,
P
Per Ljung
Posted on 18/08/2011 11:30:49
Is it always the page with the smallest id that act as a start page?
/P
Vladimir
Posted on 19/08/2011 03:50:55
Hi
Not qute so... The first page will always a first page in menu with class="dwnavigation" and id="topnav".
So you can prepare top menu for logged users and menu for other)
Best regards,
Vladimir
Not qute so... The first page will always a first page in menu with class="dwnavigation" and id="topnav".
So you can prepare top menu for logged users and menu for other)
Best regards,
Vladimir
Per Ljung
Posted on 19/08/2011 09:04:51
Hi!
But I'm not going to have different menus, I want to display different messages/information boxes on the page whether the user is logged in or not and that text will be written in an ordinary paragraph.
Best regards,
P
Vladimir
Posted on 22/08/2011 06:14:11
OK, then let me suggest you another solution:
Create on your forside page two paragraphs - one for logged users and second for other.
And create template for first paragraph:
Create on your forside page two paragraphs - one for logged users and second for other.
And create template for first paragraph:
<div> <!--@If Defined(Global:Extranet.UserName)--> <!--@ParagraphImage--> <!--@ParagraphModule--> <!--@ParagraphText--> <!--@EndIf(Global:Extranet.UserName)--> </div> And for second: <div> <!--@If Not Defined(Global:Extranet.UserName)--> <!--@ParagraphImage--> <!--@ParagraphModule--> <!--@ParagraphText--> <!--@EndIf(Global:Extranet.UserName)--> </div> Best regards, Vladimir
Per Ljung
Posted on 22/08/2011 11:36:19
So I use the security settings in the admin interface to set which paragraph to be used?
Best regards,
P
Vladimir
Posted on 25/08/2011 03:45:07
Hi Per!
Sorry for later reply...
There isn't security setting, this just option "template" in paragraph editing.
Also may be it will usable for you: there is a option 'start page' in user management - when you edit group or user
Best regards,
Vladimir
Sorry for later reply...
There isn't security setting, this just option "template" in paragraph editing.
Also may be it will usable for you: there is a option 'start page' in user management - when you edit group or user
Best regards,
Vladimir
You must be logged in to post in the forum