Updated TIPS: Custom Code (markdown)

dev
2018-03-24 22:59:38 +02:00
parent e14684c7a8
commit 730dc52e26

@@ -4,14 +4,14 @@ Here are some 'tips' when using custom code.
|USAGE|PHP START|PHP END |USAGE|PHP START|PHP END
|---|---|---| |---|---|---|
|New Insert Code|`/***[INSERT<>$$$$]***/`|`/***[/INSERT<>$$$$]***/`| |New<br/>Insert Code|`/***[INSERT<>$$$$]***/`|`/***[/INSERT<>$$$$]***/`|
|New Replace Code|`/***[REPLACE<>$$$$]***/`|`/***[/REPLACE<>$$$$]***/`| |New<br/>Replace Code|`/***[REPLACE<>$$$$]***/`|`/***[/REPLACE<>$$$$]***/`|
||WHEN JCB ADDS IT BACK AGAIN| ||**WHEN JCB ADDS IT BACK AGAIN**|
|JCB Add Inserted Code|`/***[INSERTED$$$$]***///*23*/`|`/***[/INSERTED$$$$]***/`| |Existing<br/>Inserted Code|`/***[INSERTED$$$$]***//*23*/`|`/***[/INSERTED$$$$]***/`|
|JCB Add Replaced Code|`/***[REPLACED$$$$]***///*25*/`|`/***[/REPLACED$$$$]***/`| |Existing<br/>Replaced Code|`/***[REPLACED$$$$]***//*25*/`|`/***[/REPLACED$$$$]***/`|
||CHANGING EXISTING CUSTOM CODE| ||**CHANGING EXISTING CUSTOM CODE**|
|Update Inserted Code|`/***[INSERTED<>$$$$]***///*23*/`|`/***[/INSERTED<>$$$$]***/`| |Update<br/>Inserted Code|`/***[INSERTED<>$$$$]***//*23*/`|`/***[/INSERTED<>$$$$]***/`|
|Update Replaced Code|`/***[REPLACED<>$$$$]***///*25*/`|`/***[/REPLACED<>$$$$]***/`| |Update<br/>Replaced Code|`/***[REPLACED<>$$$$]***//*25*/`|`/***[/REPLACED<>$$$$]***/`|
> "`/*23*/`" and "`/*25*/`" (or similar id numbers) are the ID of the code in the system don't change it!!!! > "`/*23*/`" and "`/*25*/`" (or similar id numbers) are the ID of the code in the system don't change it!!!!
@@ -19,13 +19,77 @@ Here are some 'tips' when using custom code.
|USAGE|HTML START|HTML END |USAGE|HTML START|HTML END
|---|---|---| |---|---|---|
|New Insert Code|`<!--[INSERT<>$$$$]-->`|`<--[/INSERT<>$$$$]-->`| |New<br/>Insert Code|`<!--[INSERT<>$$$$]-->`|`<--[/INSERT<>$$$$]-->`|
|New Replace Code|`<!--[REPLACE<>$$$$]-->`|`<--[/REPLACE<>$$$$]-->`| |New<br/>Replace Code|`<!--[REPLACE<>$$$$]-->`|`<--[/REPLACE<>$$$$]-->`|
||WHEN JCB ADDS IT BACK AGAIN| ||**WHEN JCB ADDS IT BACK AGAIN**|
|JCB Add Inserted Code|`<!--[INSERTED$$$$]--><!--23-->`|`<--[/INSERTED$$$$]-->`| |Existing<br/>Inserted Code|`<!--[INSERTED$$$$]--><!--23-->`|`<--[/INSERTED$$$$]-->`|
|JCB Add Replaced Code|`<!--[REPLACED$$$$]--><!--25-->`|`<--[/REPLACED$$$$]-->`| |Existing<br/>Replaced Code|`<!--[REPLACED$$$$]--><!--25-->`|`<--[/REPLACED$$$$]-->`|
||CHANGING EXISTING CUSTOM CODE| ||**CHANGING EXISTING CUSTOM CODE**|
|Update Inserted Code|`<!--[INSERTED<>$$$$]--><!--23-->`|`<--[/INSERTED<>$$$$]-->`| |Update<br/>Inserted Code|`<!--[INSERTED<>$$$$]--><!--23-->`|`<--[/INSERTED<>$$$$]-->`|
|Update Replaced Code|`<!--[REPLACED<>$$$$]--><!--25-->`|`<--[/REPLACED<>$$$$]-->`| |Update<br/>Replaced Code|`<!--[REPLACED<>$$$$]--><!--25-->`|`<--[/REPLACED<>$$$$]-->`|
> "`<!--23-->`" and "`<!--25-->`" (or similar id numbers) are the ID of the code in the system don't change it!!!! > "`<!--23-->`" and "`<!--25-->`" (or similar id numbers) are the ID of the code in the system don't change it!!!!
# Insert Examples (PHP)
> placeholder must be on its own line
### New PHP Insert Code
```php
$bar = 'easy';
$foo = 'some code';
/***[INSERT<>$$$$]***/
$var = 4;
/***[/INSERT<>$$$$]***/
$more = 'more some code';
```
### Existing PHP Insert Code
```php
$bar = 'easy';
$foo = 'some code';
/***[INSERTED$$$$]***///*23*/
$var = 4;
/***[/INSERTED$$$$]***/
$more = 'more some code';
```
### Update PHP Insert Code
```php
$bar = 'easy';
$foo = 'some code';
/***[INSERTED<>$$$$]***///*23*/
$var = 4;
/***[/INSERTED<>$$$$]***/
$more = 'more some code';
```
# Replace Examples (PHP)
> placeholder must be on its own line
### New PHP Replace Code
```php
$bar = 'easy';
/***[REPLACE<>$$$$]***/
$foo = 'some code changed';
/***[/REPLACE<>$$$$]***/
$more = 'more some code';
```
### Existing PHP Replace Code
```php
$bar = 'easy';
/***[REPLACED$$$$]***//*25*/
$foo = 'some code changed';
/***[/REPLACED$$$$]***/
$more = 'more some code';
```
### Update PHP Replace Code
```php
$bar = 'easy';
/***[REPLACED<>$$$$]***//*25*/
$foo = 'some code changed';
/***[/REPLACED<>$$$$]***/
```