Skip to content

Issue #7083: Icon browser/picker in core#5237

Open
docwilmot wants to merge 28 commits intobackdrop:1.xfrom
docwilmot:icon-picker
Open

Issue #7083: Icon browser/picker in core#5237
docwilmot wants to merge 28 commits intobackdrop:1.xfrom
docwilmot:icon-picker

Conversation

@docwilmot
Copy link
Copy Markdown
Contributor

@backdrop-ci
Copy link
Copy Markdown
Collaborator

Related to: backdrop/backdrop-issues#7083

@docwilmot
Copy link
Copy Markdown
Contributor Author

I've committed a temporary change to path admin/structure/file-types/settings where replaced the token browser link with the new icon browser link, for testing, because there isn't anywhere in core with that link as yet.

Comment thread core/modules/system/system.module
Comment thread core/modules/system/system.module
Comment thread core/modules/system/config/system.core.json Outdated
Comment thread core/modules/system/css/icon_browser.css Outdated
@dragonbot
Copy link
Copy Markdown
Collaborator

Tugboat has finished building a preview for this pull request!

Website: https://pr5237-ina3t5vmb6zn5wpklwgtmcfhs8lwsza2.tugboatqa.com/
Username: admin
Password: 98e64f234ff7

This preview will automatically expire on the 20th of June, 2026.

),
);

// jQuery treeTable plugin.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy-paste, right? 😆

Better remove or fix this misleading comment.

define('TOKEN_MAX_DEPTH', 9);

/**
* The maximum depth for token tree recursion.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another misleading comment (copy-paste apparently). 😉

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have to make the max hardcoded? Or is there a way to let modules (or themes) adapt that?

'callback' => 'system_icon_browser_ajax_form_open_dialog',
);

backdrop_add_js(backdrop_get_path('module', 'system') . '/js/icon_browser.js');
Copy link
Copy Markdown
Member

@indigoxela indigoxela Apr 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this here, anyway? BTW, why attaching as regular JS, while we have a defined library?
Or is this just for the demo link?

'#type' => 'textfield',
'#title' => t('Default file directory'),
'#description' => t('Subdirectory where files will be stored if the file is uploaded through the file/add page. This field supports tokens.') . ' ' . theme('token_tree_link'),
'#description' => t('Subdirectory where files will be stored if the file is uploaded through the file/add page. This field supports tokens.') . ' ' . theme('icon_browser_link'),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not forget to remove this link, as soon as we're done with manual testing.
It's only here to demo functionality.

@docwilmot docwilmot mentioned this pull request Apr 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Icon browser/picker in core

4 participants