Developer forum

Forum » Templates » Different startpage

Different startpage

Per Ljung
Reply
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

Replies

 
Vladimir
Reply
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)-->
 
Per Ljung
Reply
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
 
Per Ljung
Reply

Is it always the page with the smallest id that act as a start page?

/P
 
Vladimir
Reply
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

 
Per Ljung
Reply

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
Reply
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:
<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
Reply

So I use the security settings in the admin interface to set which paragraph to be used?

Best regards,
 
Vladimir
Reply
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


 

You must be logged in to post in the forum