Self-accumulated phpcms two times development (ii)
1. Modify PHPCMS Background Click Modify/Add content, open in a new window in the browser.
First, open the content_list.tpl.php file under \phpcms\modules\content\templates
Second, find the content to add content modification
Three
Added: &pc_hash= "
target= "_blank" >
Modified: &id= &pc_hash=
[' Pc_hash '];? > "target=" _blank ">
2. Modify the site background landing page, and background home information!
The first is the title: one is Admin_site_title, Website_manage, this is the background management header parameters, there is a background login title parameters, Phpcms_logon.
Lines 9th, No. 668,/phpcms/languages/zh-cn/system.lang.php, respectively, in/phpcms/languages/zh-cn/admin.lang.php.
Other parameters can also be looked at the modification, there is a copyright parameter, you can change the bottom of the background log information.
The second is the login success after home: Home display information, templates in/phpcms/modules/admin/templates/main.tpl.php, back home custom add changes.
The third is the background logo image, style file in/statics/css/zh-cn-system.css, line 37th. Header. Logo.
Basically the background on these need to change, the background needs to change the page template is basically in/phpcms/modules several folders.
3. All columns are recycled except for some one or two columns.
Cases:
{Loop subcat (9,0,0, $siteid) $r}
{if $r [' CatID ']==10} {/if}
{if $r [' CatID ']==11} {/if}
{$r [catname]}
{loop subcat ($r [catid],0,0, $siteid) $w}
- {$w [catname]}
{/loop}
{/loop}
4.phpCMS formats the time in many ways.
A\ Standard type: {date (' y-m-d h:i:s ', $rs [' Inputtime '])} output: 2010-12-31 13:15:10
B\ split: {date (' Y ', $rs [Inputtime]} year {date (' m ', $rs [Inputtime]} month {date (' d ', $rs [Inputtime])} Day output: December 31, 2010
C\ Extended Type:
{Date (' Y ', $inputtime);} 4-bit year output is: 2010 or 2011
{Date (' Y ', $inputtime);} 2-bit year output is: 10 or 11
{Date (' F ', $inputtime);} English month full name output is: January to December
{Date (' M ', $inputtime);} English month abbreviation output is: Jan to Dec
{date (' m ', $inputtime);} Leading 0 digit month output: 01 to 12
{Date (' n ', $inputtime);} Numeric month output: 1 to 12
{Date (' d ', $inputtime);} Leading 0-period output: 01 to 31
{Date (' J ', $inputtime);} The date output is: 1 to 31
{Date (' l ', $inputtime);} English week full name output: Sunday to Saturday
{Date (' D ', $inputtime);} English week abbreviation output is: Mon to Sun
{Date (' N ', $inputtime);} Format Numeric Week output: 1 to 7
5..phpcms V9 Editor's bulk removal hyperlink feature
1. Bulk removal of hyperlinks:
Open Statics/js/ckeditor/ckeditor.js
Found it
$.execcommand (' unlink ', false,null);
Modified to:
$.execcommand (' unlink ', false,true);
2. Upload image automatically add alt parameter
Modify Statics/js/ckeditor/plugins/image/dialogs/image.js
Found it
AccessKey: ' T ', ' Default ': '
Replaced by
AccessKey: ' T ', ' Default ': $ (' #title '). Val ()
3. Change the editor carriage return to line
Or
Open the file \statics\js\ckeditor\config.js put the inside
Config.entermode = CKEditor. ENTER_BR;
Config.shiftentermode = CKEditor. enter_p;
Revision changed to
Config.entermode = CKEditor. enter_p;
Config.shiftentermode = CKEditor. ENTER_BR;
4. Add a key layout function to the editor
Modify
Under the Phpcms\libs\classes column
form.class.php find [' Maximize '], add [' AutoFormat '] below it, save it.
Locate the Config.js file under the Statics\js\ckeditor folder
Found it
Config.extraplugins = ' capture ';
Modified to:
Config.extraplugins = ' Capture,autoformat ';
Save it.
Remember to update the cache and clear the cookies after the changes.
6. Display the column name of the specified ID (example here catid=22) {$CATEGORYS [22][' CatName ']}