[Vtigercrm-commits] [Vtiger development] #8312: Customize login page.
Vtiger development
vtiger-tickets at trac.vtiger.com
Mon Oct 20 04:12:39 GMT 2014
#8312: Customize login page.
-------------------------+-------------------------
Reporter: prasad | Owner: developer
Type: enhancement | Status: new
Priority: unassigned | Milestone: Unassigned
Component: vtigercrm | Version: 6.1.0
Severity: Medium | Resolution:
Keywords: |
-------------------------+-------------------------
Comment (by prasad):
''Workaround''
Step 1: Copy layouts/vlayout/modules/Users/Login.tpl to
layouts/vlayout/modules/Users/Login.Default.tpl (if it does not exists)
Step 2: Make layouts/vlayout/modules/Users/Login.tpl flexible
{{{
{* THIS TEMPLATE DETECTS IF THERE IS A CUSTOM TEMPLATE OR ELSE LOADS
DEFAULT TEMPLATE *}
{assign var="_DefaultLoginTemplate"
value=vtemplate_path('Login.Default.tpl', 'Users')}
{assign var="_CustomLoginTemplate"
value=vtemplate_path('Login.Custom.tpl', 'Users')}
{assign var="_CustomLoginTemplateFullPath"
value="layouts/vlayout/$_CustomLoginTemplate"}
{if file_exists($_CustomLoginTemplateFullPath)}
{include file=$_CustomLoginTemplate}
{else}
{include file=$_DefaultLoginTemplate}
{/if}
{* END *}
}}}
Step 3: Now, you can have your custom login page by adding
layouts/vlayout/modules/Users/Login.Custom.tpl
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8312#comment:1>
Vtiger development <http://trac.vtiger.com/>
Vtiger CRM
More information about the vtigercrm-commits
mailing list