NAVIGATION
This shows you the differences between two versions of the page.
|
english:phpwcms_replacer_rts:frontend_init:cp_trigger [2009/10/02 05:57] Knut Heermann (flip-flop) |
english:phpwcms_replacer_rts:frontend_init:cp_trigger [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 37: | Line 37: | ||
| </code> | </code> | ||
| - | You can also limit your function to work for special [[:english:phpwcms-system:article:contentparts|content parts]] (especially [[:english:technics:internally-function-call:content-part-types|content part types]]): | + | You can also limit your function to work for special [[:english:phpwcms-system:article:contentparts|content parts]] (especially [[:english:technics:internal-function-call:content-part-types|content part types]]): |
| <code php> | <code php> | ||
| function cp_trigger_function_name($param1, & $param2) { | function cp_trigger_function_name($param1, & $param2) { | ||
| Line 98: | Line 98: | ||
| === Content Part Types === | === Content Part Types === | ||
| - | Please have a look into: [[:deutsch:technik:aufruf-interner-funktionen:content_part_typen|Content Part Types]] | + | Please have a look into: [[:/english/technics/internal-function-call/content-part-types|Content Part Types]] |
| Line 107: | Line 107: | ||
| Add a class to an image, based on the cp image <div>. The given output: | Add a class to an image, based on the cp image <div>. The given output: | ||
| - | <code html><img src="content/images/xyz.jpg" alt="Alt-Text" title="Titel-Text" **border="0"** width="120" height="90"></code> | + | <code html><img src="content/images/xyz.jpg" alt="Alt-Text" title="Titel-Text" border="0" width="120" height="90"></code> |
| The construction structurally is look like: | The construction structurally is look like: | ||
| Line 114: | Line 114: | ||
| ==== Method of resolution: ==== | ==== Method of resolution: ==== | ||
| - using a trigger to **border="0"** and replace to **class="MY_CUSTOM_CLASS" border="0"** ends in this result: \\ | - using a trigger to **border="0"** and replace to **class="MY_CUSTOM_CLASS" border="0"** ends in this result: \\ | ||
| - | <code html><img src="content/images/xyz.jpg" alt="Alt-Text" title="Titel-Text" **class="MY_CUSTOM_CLASS" border="0"** width="120" height="90"></code> | + | <code html><img src="content/images/xyz.jpg" alt="Alt-Text" title="Titel-Text" class="MY_CUSTOM_CLASS" border="0" width="120" height="90"></code> |