Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to override thumb /icon behavior individually for portlet (sup… #15

Merged
merged 4 commits into from
Jun 1, 2017

Conversation

fgrcon
Copy link
Member

@fgrcon fgrcon commented Sep 1, 2016

…press thumbs, thumb size, suppress icons)

see plone/Products.CMFPlone#1734

WIP dont merge yet

@fgrcon fgrcon force-pushed the plip1734thumbs branch 6 times, most recently from e6ebbb0 to c49fe62 Compare September 2, 2016 11:47
(suppress thumbs, thumb size, suppress icons)
Replace paper clip (fontello icon) with mimetype icon
from mimetype registry for files
plone/Products.CMFPlone#1734 (PLIP) [fgrcon]

def getMimeTypeIcon(self,obj):
fileo = obj.getObject().file
portal_url = api.portal.get().absolute_url()
Copy link
Member

Choose a reason for hiding this comment

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

use plone.api.portal.get_navigation_root instead, otherwise subsites and some flavors of p.a.multilingual wont work.

Copy link
Member

Choose a reason for hiding this comment

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

@fgrcon fgrcon closed this Apr 26, 2017
@fgrcon fgrcon reopened this Apr 27, 2017
@ebrehault ebrehault merged commit 9a1f4ae into master Jun 1, 2017
@fgrcon fgrcon deleted the plip1734thumbs branch June 5, 2017 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants