| Monday 22 December 2003 9:33:48 am 
                                                                 First of all, you should really consider upgrading Exponential to the latest stable version. 3.1-1 is kinda old. :-) 
Regarding the pagelayout question:You could do something like this (pseudo-code only!) inside your main/original pagelayout.tpl file:
 
if requested URL contains "edit"{
 include my_edit_pagelayout.tpl
 }
 else
 {
 include my_view_pagelayout.tpl
 }
 The if-then-else mechanism could be easily solved with a "section" block. The include can be solved using the "include" function. The URL can be extracted from the "$module_result.uri" - use one of the string operators to check if "edit" or "view" exists in the URL. Another solution would be to check if a user is logged in or not and generate/include different pagelayouts based on that. Example: 
{* Fetch the current user. *}{let user=fetch('user', 'current_user', hash() )}
 
{* If user is logged in: *}{section show=$user.is_logged_in}
  Logged in: {$user.login}<br />  {* Include my custom layout template for edit... *} 
{* Else: there is no user logged in... *}{section-else}
  {* Include my custom layout template for view... *} 
{/section}{/let}
 I hope this helps.. :) Balazs |