Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

HTML Entities in RightMangement #8002

Closed
katgirl opened this issue Sep 9, 2015 · 1 comment
Closed

HTML Entities in RightMangement #8002

katgirl opened this issue Sep 9, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@katgirl
Copy link

katgirl commented Sep 9, 2015

Create a new BackendModule config.php

array_insert($GLOBALS['BE_MOD'], 1, array('kirsten.roschanski' => array
(
    'test' => array
    (
        'tables'      => array('tl_mbym_resources'),
        'icon'        => 'system/modules/resource_database/assets/resources.gif'
    )
)));

Create a language file modules.php

$GLOBALS['TL_LANG']['MOD']['kirsten.roschanski'] = array(
  'kirsten<span style="color:#f06">.</span>roschanski',
  ''
);

$GLOBALS['TL_LANG']['MOD']['test'] = array(
  'Test',
  ''
);

You can't select it in RightManagment.

image

<div class="checkbox_toggler"><a href="contao/main.php?do=group&amp;act=edit&amp;id=1&amp;rt=988d81f45a18ec08542f91dd4232d949&amp;cbc=cbc_modules_kirstenspan-stylecolorf06-spanroschanski&amp;ref=16826246" onclick="AjaxRequest.toggleCheckboxGroup(this,'cbc_modules_kirstenspan-stylecolorf06-spanroschanski');Backend.getScrollOffset();return false"><img src="system/themes/mbym/images/folMinus.gif" width="18" height="18" alt="toggle checkbox group"></a>kirsten<span style="color:#f06">.</span>roschanski</div>

<fieldset id="cbc_modules_kirstenspan-stylecolorf06-spanroschanski" class="tl_checkbox_container checkbox_options" style="display:block"><input type="checkbox" id="check_all_cbc_modules_kirstenspan-stylecolorf06-spanroschanski" class="tl_checkbox" onclick="Backend.toggleCheckboxGroup(this, 'cbc_modules_kirstenspan-stylecolorf06-spanroschanski')"> <label for="check_all_cbc_modules_kirstenspan-stylecolorf06-spanroschanski" style="color:#a6a6a6"><em>Alle auswählen</em></label><br><input type="checkbox" name="modules[]" id="opt_modules_kirsten<span style=" color:#f06"="">.roschanski_0" class="tl_checkbox" value="test" onfocus="Backend.getScrollOffset()"&gt; <label for="opt_modules_kirsten<span style=" color:#f06"="">.roschanski_0"&gt;Test</label></fieldset>
@leofeyer
Copy link
Member

leofeyer commented Jun 9, 2016

Fixed in abca821.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants