-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Register contenttype icon. Add upgrade step for updating the icons.
- Loading branch information
1 parent
3c5f457
commit aac8b0f
Showing
10 changed files
with
81 additions
and
4 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Add missing icon on comments' `view` action | ||
Register contenttype icon for comments. | ||
[gforcada, maurits] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<registry> | ||
<record name="plone.icon.contenttype/discussion-item"> | ||
<field type="plone.registry.field.TextLine"> | ||
<title>Plone Image</title> | ||
</field> | ||
<value key="resource">++plone++bootstrap-icons/chat-left-text.svg</value> | ||
</record> | ||
</registry> |
26 changes: 26 additions & 0 deletions
26
plone/app/discussion/profiles/to_2002/types/Discussion_Item.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<object xmlns:i18n="http://xml.zope.org/namespaces/i18n" | ||
meta_type="Factory-based Type Information" | ||
name="Discussion Item" | ||
i18n:domain="plone" | ||
> | ||
<property name="content_icon">++plone++bootstrap-icons/chat-left-text.svg</property> | ||
<alias from="(Default)" | ||
to="@@view" | ||
/> | ||
<alias from="view" | ||
to="@@view" | ||
/> | ||
<!-- Note: we cannot only set an icon_exp in this action: | ||
the other settings would be reset to empty then. --> | ||
<action action_id="view" | ||
category="object" | ||
condition_expr="" | ||
title="View" | ||
url_expr="string:${object_url}/@@view" | ||
icon_expr="string:toolbar-action/view" | ||
visible="True" | ||
> | ||
<permission value="View" /> | ||
</action> | ||
</object> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from plone.base.interfaces import INonInstallable | ||
from zope.interface import implementer | ||
|
||
|
||
@implementer(INonInstallable) | ||
class HiddenProfiles: | ||
def getNonInstallableProfiles(self): | ||
return [ | ||
"plone.app.contenttypes:to_2002", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters