NAVIGATION
This shows you the differences between two versions of the page.
|
english:phpwcms_replacer_rts:frontend_render:change-cp-anchor-text [2010/06/13 13:13] Knut Heermann (flip-flop) created |
english:phpwcms_replacer_rts:frontend_render:change-cp-anchor-text [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 8: | Line 8: | ||
| An anchor that can be specified autom. for each CP e.g. **%%<a name="cpid123">%%** //(123 is the CP-Id)// \\ | An anchor that can be specified autom. for each CP e.g. **%%<a name="cpid123">%%** //(123 is the CP-Id)// \\ | ||
| - | becomes: **%%<a name="mein-toller-ankername">%%** | + | will become: **%%<a name="mein-toller-ankername">%%** |
| These names are set in the respective CP | These names are set in the respective CP | ||
| Line 14: | Line 14: | ||
| * or titles or subtitles may be used for the text. | * or titles or subtitles may be used for the text. | ||
| - | The settings to be made in the script in CUSTOM VAR. | + | The settings have to be made in the script in CUSTOM VAR. |
| Additionally, you can set whether hidden CPs //(when working with CP alias or SHOW_CONTENT)// are involved in the process. //(Default: $visible_cp = false;)// | Additionally, you can set whether hidden CPs //(when working with CP alias or SHOW_CONTENT)// are involved in the process. //(Default: $visible_cp = false;)// | ||
| - | Before each anchor text can be set, for example, **%%$prev_anchor = 'prev-';%%** === > **%%<a name="prev-nice-cp-text-anchor">%%**. \\ | + | In front of each anchor a text can be defined, for example, **%%$prev_anchor = 'prev-';%%** === > **%%<a name="prev-nice-cp-text-anchor">%%**. \\ |
| - | Also adjusted in the script in CUSTOM VAR. | + | This is also adjusted in the script in CUSTOM VAR. |
| **Usable characters:** | **Usable characters:** | ||
| (a-z A-Z) (0-9) (_) (-) (.) \\ | (a-z A-Z) (0-9) (_) (-) (.) \\ | ||
| - | All other characters are converted, for example "Mein größter Ankertext" to "mein_groesster_ankertext". \\ | + | All other characters are converted, for example "Mein größter Ankertext" will be converted to "mein_groesster_ankertext". \\ |
| - | All characters are converted to lowercase. Is this not required, please commented out the statement **%%$str = strtolower( $str );%%** in "%%function rt_val_special_chars($str)%%". | + | All characters are converted to lowercase. If this isn't a wanted behaviour, please comment out the statement **%%$str = strtolower( $str );%%** in "%%function rt_val_special_chars($str)%%". |
| If you want another replacement this can be changed in the above Function. | If you want another replacement this can be changed in the above Function. | ||