You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
If a bundle defines a custom page type for example and uses the core-bundle Hook getPageStatusIcon a public accessible path is returned like bundles/mybundle/custom_page_type-icon.gif
img.src = AjaxRequest.themePath + (!published ? icon : icond);
The problem here is that AjaxRequest.themePath is prepended which works fine for core icon where only the icon name is set and the path finding is handled by Contao\Image::getHtml but not for custom icons where the data attributes contain the full web url relative path.
### 4.1.1 (2015-03-03)
* Remove the "disable IP check" field from the back end settings (see #436).
* Do not quote the search string in `FIND_IN_SET()` (see #424).
* Always fix the domain and language when generating URLs (see contao/core#8238).
* Fix two issues with the flexible back end theme (see contao/core#8227).
* Correctly toggle custom page type icons (see contao/core#8236).
* Correctly render the links in the monthly/yearly event list menu (see contao/core#8140).
* Skip the registration related fields if a user is duplicated (see contao/core#8185).
* Correctly show the form field type help text (see contao/core#8200).
* Correctly create the initial version of a record (see contao/core#8141).
* Correctly show the "expand preview" buttons (see contao/core#8146).
* Correctly check that a password does not match the username (see contao/core#8209).
* Check if a directory exists before executing `mkdir()` (see contao/core#8150).
* Do not link to the maintenance module if the user cannot access it (see contao/core#8151).
* Show the "new folder" button in the template manager (see contao/core#8138).
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
December 9th, 2015, 16:50 GMT
If a bundle defines a custom page type for example and uses the core-bundle Hook
getPageStatusIcona public accessible path is returned likebundles/mybundle/custom_page_type-icon.gifThe icon then is shown correct in the page tree. But if the "Hide/Unhide" (eye) Icon is clicked the image disappears because of a smal bug in AjaxRequest::toggleVisibility().
See here:
https://github.com/contao-components/contao/blob/master/js/core.js#L518
and here:
https://github.com/contao-components/contao/blob/master/js/core.js#L545
and maybe here also:
https://github.com/contao-components/contao/blob/master/js/core.js#L573
img.src = AjaxRequest.themePath + (!published ? icon : icond);The problem here is that
AjaxRequest.themePathis prepended which works fine for core icon where only the icon name is set and the path finding is handled byContao\Image::getHtmlbut not for custom icons where the data attributes contain the full web url relative path.Core Icon with name only:
Custom icons with complete path (relative to web folder)
(Doesn't matter it with or without / at path start)
This is then converted to
system/themes/flexible/images/bundles/mybundle/custom_page_type-icon_1.pngAn easy fix could be to only prepend
AjaxRequest.themePathif the icon / icond do not contain slashes / a pathThe text was updated successfully, but these errors were encountered: