This package contains various visual components for Plone, such as viewlets
and general views.
Changelog
2.3.8.eea (2013-08-22)
Use safe_unicode to decode the title of the object when retrieving the
rss links from the RSSViewlet
[ichim-david]
2.3.7 (2013-08-14)
Don't try to getId() for the template-name body when there is no
template. Corrects an issue with the Dexterity schema editor.
[esteele]
2.3.6 (2013-08-13)
Fix conflict with <body> class attribute improvement in TinyMCE.
[rpatterson]
Implement a canonical link relation viewlet to be displayed by
IHtmlHeadLinks viewlet manager; this will prevent web indexers from indexing
the same object more than once, improving also the way these indexers deal
with images and files.
[hvelarde]
Add Dexterity support for the related items viewlet.
[pabo]
Personal bar viewlet home link simply links to the user actions list.
[danjacka]
Add link targets for all action based links. The target can be
configured on a per-action basis.
[rpatterson]
2.2.5 (2012-01-26)
Slightly changed the whitespace in sitemap.xml.gz.
[maurits]
Use the link_target attribute (e.g. _target) of user actions in
the personal bar, if set.
Fixes http://dev.plone.org/ticket/11609
[maurits]
Added a page as a not-js fallback for the user dropdown menu
[giacomos]
2.2.4 (2011-12-03)
Add the ability for the navtree strategy to suppliment the query.
Fixes a problem where the listing of default pages in navigation
trees could no longer be enabled.
[rossp]
Added on body a class related to subsite.
The class is named site-x where x is navigation root object id.
[thomasdesvenain]
Treat aliases to the (Default) view of a content type also as a
view template (providing IViewView).
Fixes http://dev.plone.org/plone/ticket/8198
[maurits]
Switching 'Skip to navigation' to be linked to the global navigation instead
of the navigation portlet.
This fixes http://dev.plone.org/plone/ticket/11728
[spliter]
2.2.1 - 2011-08-08
Refactor getNavigationRoot to make it simpler, fixing issues when
relativeRoot is specified.
[gotcha]
'placeholder' attribute for the searchbox instead of the custom JS handling
of the same functionality.
[spliter]
2.2 - 2011-07-19
Fixed validation of the personal bar for anonymous user.
[spliter]
Set the search form to submit to @@search in order to use the new
search results page.
[elvix]
Updated the BaseIcon to return its html tag when called.
[elvix]
Updated search link in <head> to link to @@search - updated search results
view.
[spliter]
Updated searchbox.pt to be linked to updated search results view.
[spliter]
2.1.9 - unreleased
Switching 'Skip to navigation' to be linked to the global navigation instead
of the navigation portlet.
This fixes http://dev.plone.org/plone/ticket/11728
[spliter]
Page title and logo image title are related to navigation root.
Refs http://dev.plone.org/plone/ticket/9175.
Added navigation_root_title to portal_state view.
[thomasdesvenain]
Fix missing workflow history entry for content creation. Closes #11305.
[rossp]
Respect typesUseViewActionInListings in sitemap.xml.
[elro]
Use the parent url for default pages in sitemap.xml.
[elro]
sitemap.xml.gz support for INavigationRoot.
[elro]
Add MANIFEST.in.
[WouterVH]
Make getNavigationRoot behave correctly in INavigationRoot-folders
where a relativeRoot is specified.
This fixes https://dev.plone.org/plone/ticket/8787
[WouterVH]
2.1.4 - 2011-04-03
Make the body section- class based on the navigation root instead of the
site root.
[elro]
Added navigation_root to plone_portal_state.
[elro]
Add div#content wrapper to @@contenthistorypopup. This is the only popup
that has its own template, and it needs a #content id for xdv configurations
like that of plone.org.
[smcmahon]
Make getNavigationRoot behave correctly in INavigationRoot-folders where a
relativeRoot is specified. This fixes http://dev.plone.org/plone/ticket/8787
[WouterVH]
Depend on Products.CMFPlone instead of Plone.
[elro]
Avoid creating persistent DiscussionItemContainers prematurely when items
are viewed that have commenting enabled but no actual comments yet.
[davisagli]
Add ids to links personal_bar when rendered as anonymous so they can be
styled. This makes behavior consistent with the authenticated personal_bar.
http://dev.plone.org/plone/ticket/10850
[eleddy]
2.0.5 - 2010-11-15
Fix presentation view when headings have HTML attributes (such as headings
translated from reStructured Text). This fixes
http://dev.plone.org/plone/ticket/10689
[davisagli]
Removed unnecessary memoization of the presentation view; turned its tests
into unit tests.
[davisagli]
Fixed @@plone_context_state.view_template_id handling of content that does
not implement IBrowserDefault (Products.CMFDynamicViewFTI). It was possible
for this code to raise Unauthorized even when the user had permission to
access the default view of the current context.
[mj]
Avoid conflict in selected tabs when the id of an excluded item starts with the
same id of an existing tab.
Fixes http://dev.plone.org/plone/ticket/11140
[WouterVH]
2.0.3 - 2010-09-15
Translate comment messages on history
[tdesvenain]
Determine whether to show the history link in the byline viewlet based on
whether the user has the 'CMFEditions: Access previous versions'
permission, rather than based on whether the user is anonymous or not.
Fixes http://dev.plone.org/plone/ticket/10640.
[davisagli]
Add an 'icons-on' class to the body when icons are enabled, so that icons
applied via CSS can also be controlled.
[davisagli]
2.0b8 - 2010-06-03
Only show the history link in the byline on the default view. This avoids
having the links in folder listing views.
[hannosch]
The condition on the author link in the byline was reversed.
[rossp]
Document byline should not show history link to anonymous users.
[elro]
Fixed CMFContentIcon to not return a url if the getIcon lookup fails
in the same way that brain-based icons do. This fixes
http://dev.plone.org/plone/ticket/10466
[dunlapm]
Cleaned up content history viewlets and overlays by eliminating
superfluous div tags from the output.
[dunlapm]
Added apple-touch-icon (iPhone/iPad home screen icon) definition to
favicon.pt
[limi]
2.0b6 - 2010-04-07
The catalog brains icon return no icon if the type's icon_expr is
empty.
[rossp]
Extend the have_portlets check to make it possible to force a portlet column
to be enabled even if there are no portlets.
[davisagli]
Simplified Related Items to use a definition list instead of a fieldset -
it's really not a form.
[limi]
Change keyword/tag viewlet to be independent of the surrounding language,
and to have a class on the separator, so it can be removed when the styling
requires it.
[limi]
Update viewlets so that this package now defines the viewlet configuration
required by the Sunburst theme, and plonetheme.classic overrides that to
achieve the old viewlet positions.
[davisagli]
2.0b5 - 2010-03-05
Make icon descriptions' lookup of portal_type title less brittle for missing
portal_types (fall back to the portal_type id).
[davisagli]
Further optimize the related_items view by avoiding an algorithm with
quadratic complexity.
[hannosch]
Moved the prepareObjectTabs method from the @@plone view to the contentviews
viewlet and introduced a class for the viewlet.
[hannosch]
Introduce a new @@plone_layout globals view, which contains methods from the
@@plone view and which were commonly overridden to change layout policies.
[hannosch]
Created several modifications of the content history viewlet to act as
standalone history page and simple popup. Old collapsible history viewlet
is still in place, ready to be wired in with zcml for anyone who needs the
old behavior.
[smcmahon]
Fixed broken reference to portal_workflow in document_relateditems-viewlet
[tom_gross]
Micro-optimization for skip_links viewlet.
[hannosch]
Update presentation fullscreen view to match current main_template's.
[hannosch]
Simplify the TAL of the dublin core viewlet.
[hannosch]
Avoid the overhead of a DateTime class in the footer.
[hannosch]
Optimized the related items viewlet.
[hannosch]
Avoid looking a "request/SearchableText|nothing" expression. Looking things
up in the entire request which aren't there most of the time is actually
somewhat slow.
[hannosch]
Optimized the content history viewlet.
[hannosch]
Optimize TAL code of the byline viewlet.
[hannosch]
Always return an id to ensure searchbox viewlet produces valid HTML
when livesearch is disabled.
Fixes http://dev.plone.org/plone/ticket/9405 - thanks saily.
[pelle]
2.0a5 - 2009-12-27
Use the getIconExprObject method of the FTI instead of the deprecated
getIcon method.
[hannosch]
Specified package dependencies.
[hannosch]
Use the correct ViewPageTemplateFile from Five for the links viewlets.
[hannosch]
2.0a4 - 2009-12-16
Do not let the homelink in the personal bar viewlet point to the
author page but to the personalize_form (or dashboard).
Fixes http://dev.plone.org/plone/ticket/8707
[maurits]
Pass the creator id to /author/ as a parameter if it contains a '/', such
as openid users.
[matthewwilkes]
Portal logo has to have 'title' attribute for better accessibility.
[spliter]
2.0a2 - 2009-11-15
Package metadata cleanup.
[hannosch]
Avoid calling lots of Python scripts from inside the content history viewlet
and use methods on the view instead.
[hannosch]
2.0a1 - 2009-11-15
Moved plone.path_bar to the plone.abovecontenttitle viewlet
manager, breadcrumbs should be close to the title of the current document.
[limi]
It's no longer the dashboard's responsibility to supply prefs/profile links
now that they are located in the user menu.
The code uses the "group" terminology here though, so I'm wondering if this is
related to group dashboards. If I broke anything, let me know.
[limi]
Micro-optimize the icons views.
[hannosch]
Merged the selectedTabs Python script into the GlobalSectionsViewlet.
[hannosch]
Take advantage of icons being found on the actions themselves now instead
and avoid the getIconFor indirection.
[hannosch]
Removed the special default page and translation handling. LinguaPlone uses
a content language negotiator per default instead.
[hannosch]
Added support for group dashboards to the dashboard view.
[optilude]
Greatly simplify the default colophon, so it stands a chance of staying on
actual sites. We cannot claim any standards support for public sites, only
for Plone itself.
[hannosch]
Changed the is_rtl method of the portal state view not to rely on the locale
but use a much simpler test based on the language code. This avoids setting
up the expensive request.locale.
[hannosch]
Fixed the portal state view to look for uppercase language in the request,
since that is set by PloneLanguageTool. This closes
http://dev.plone.org/plone/ticket/8342.
[hannosch]
"Log in to add comments" button is now a link and respects the login URL
specified in portal_actions. Closes http://dev.plone.org/plone/ticket/9071.
[erikrose]
Fixed is_rtl test to work with new locale based approach.
[hannosch]
Removed memoizing for things which are only used once in a page.
[hannosch]
Replaced direct invocations of interfaces with queryAdapter calls. The
former does a suboptimal getattr call internally.
[hannosch]
Sanitized the actions handling on the context state view. You can pass in
an action category into the action method now, which is the preferred way.
This allows us to avoid evaluating all actions in the current context if
we are only interested in some of the categories.
[hannosch]
Since Zope 2.11 the locale is available on the request. Removed our special
code from the portal state view and rely directly on the request.
[hannosch]
Purge old zope2 Interface interfaces for Zope 2.12 compatibility.
[elro]
1.2.5 - 2009-08-01
In the history viewlet, moved again the arrows inside a span, it's really needed to apply a style.
[vincentfretin]
1.2.4 - 2009-07-04
In the history viewlet, internationalized the Compare link and replaced
icons by plain text. The revert link is now a POST button. This closes
http://dev.plone.org/plone/ticket/9064
[limi, vincentfretin]
1.2.3 - 2009-06-12
Fix issue when dealing with empty version histories in history viewlet.
[alecm]
1.2.2 - 2009-06-11
Make ContentHistoryViewlet use new metadata only history method to
speed up listing.
[alecm]
Make ContentHistoryViewlet check if context isVersionable.
[elro]
1.2.1 - 2009-05-20
Changed the search and author header links to respect the navigation root.
[hannosch]
1.2 - 2009-05-16
Filter not-interesting history entries in content history viewlet. This
prevents an empty history viewlet from being shown.
[wichert]
Add a new content history viewlet which combines the full workflow history
and content versions. Render this instead of the workflow history viewlet.
[wichert]
Fixed querystring in CSS validation link in viewlets/colophon.pt
There was an ampersand where the leading "?" should have been.
http://dev.plone.org/plone/ticket/9054
[siebo]
Author link tag should follow same rules as byline viewlet.
[elro]
1.2rc1 - 2009-03-20
Fixed i18n in content_history template.
There were two nested msgids and dynamic content.
[vincentfretin]
Removed stray span tags in the comment byline.
[limi]
1.2b1 - 2009-03-07
Added navigation_root_url to the common viewlets base class. Adjusted the
various viewlets templates to use the new attribute. Changed the dashboard
view to be available on an INavigationRoot.
This implements http://plone.org/products/plone/roadmap/234
[calvinhp]
Default to using the content history viewlet instead of the workflow history
viewlet.
[wichert]
Add options to show differences between consecutive versions, and revert to
and preview older revisions to the content history viewlet.
[wichert]
Use the new history view from CMFEditions instead of the crufty old form.
[wichert]
1.1.8 - 2009-03-07
Adjust the caching of sitemap.xml.gz. We only cache for anonymous users. That
fixes a bug where a cached sitemap.xml.gz is delivered with information that
only an user with more privilegs is allowed to see. We also make sure that
the cached file was build with a current catalog by adding the catalog
counter to the cache key. Based on a patch by stxnext. Fixes
http://dev.plone.org/plone/ticket/8402
[stxnext, csenger]
Added time_only for use with toLocalizedTime so that event_view now localizes
the start/end times if the start/end dates are the same. Closes
http://dev.plone.org/plone/ticket/8607
[jnelson, calvinhp]
Fixed Plone 3.1 backward compatibility of above.
[stefan]
1.1.7 - 2008-12-15
Modified user profile item on the dashboard to use an image tag
instead of a background image. This makes it more consistent with
the other list items and easier to style for RTL scripts.
[emanlove]
1.1.6 - 2008-11-21
Avoid a test failure caused by test interdependencies.
[hannosch]
Fixed tests for the language method of the portal state view.
[hannosch]
Fixed generation of links to author.cpt for user IDs that are a URL
(OpenID users, e.g.). This closes http://dev.plone.org/plone/ticket/8040
[davisagli]
Fixed comments.pt to pass the title of the comment you are replying to into
the discussion_reply_form. This closes
http://dev.plone.org/plone/ticket/8323
[calvinhp]
Refactor default_page: move all logic out of the view to separate methods
so they can be called without a request (which is not used at all).
Deprecate parameters which were not in the interface and were never used.
[wichert]
Fixed plone_context_state's view_url method to work with contexts that don't
have a portal_type. This closes http://dev.plone.org/plone/ticket/8028.
[davisagli]
Adjusted deprecation warnings to point to Plone 4.0 instead of Plone 3.5
since we changed the version numbering again.
[hannosch]
1.1.3 - 2008-07-07
Made PersonalBarViewlet tolerate users who don't have a Plone user object, as
when using OpenID or apachepas. This fixes
http://dev.plone.org/plone/ticket/7296.
[erikrose]
Use 'index' attribute rather than 'render' for setting viewlet templates, so
that they can be overridden using the 'template' ZCML attribute.
[davisagli]
1.1.0 - 2008-04-20
Applied patch from http://dev.plone.org/plone/ticket/7942 to ensure that the
'currentParent' marker is not True for items that have a path that is a
substring of the true path.
[optilude]
Made handling of self.context in portal.py consistent.
[hannosch]
Rename the portal_url instance variable to site_url in the ViewletBase
class. This prevents getToolByName(..., 'portal_url') from returning
the URL string instead of the portal_url tool, which can causes unexpected
and subtle breakage. portal_url is still available but produces a deprecation
warning. It will be removed in Plone 4.
[wichert]
Added viewlet for RSS link.
[fschulze]
Added dependency on plone.app.viewletmanager.
[fschulze]
Make viewlet managers in head section order- and filterable.
[fschulze]
Catch KeyError for presentation or tableContents when document
has an out-of-date schema. Can happen when migrating from Plone
2.5 to 3.0. Fall back to False for those attributes then.
[maurits]
1.0.5 - 2008-01-03
Do not create an empty <ul> in the personal actions bar if there are
no items in it. This fixes an XHTML syntax error.
[wichert]
Fixed workflow history viewlet to handle entries with
usernames that don't exist any more (deleted users) and
also anonymous users.
This fixes http://dev.plone.org/plone/ticket/7250.
[rsantos]
1.0.3 - 2007-11-09
Made getIcon urls relative to portal root.
[tesdal]
1.0.2 - 2007-10-08
Fixed getIcon code for use with ++resource++ and to use a safer method
of getting the correct url.
[optilude]
Upgraded the sitemap template to conform with the 0.9 specs from
http://www.sitemaps.org and fixed the caching to use the filename.
[deo]
1.0.1.1 - 2007-09-10
Lower logging level of 'no associated workflow' to avoid a log entry
on each view.
[ldr]
Fixed default language in globals.
[wichert]
Fixed link to actor in history viewlet.
[naro]
Avoid locking on non lockable types in byline viewlet.
[jfroche]
Added website statistics inclusion viewlet to configure.zcml so it
actually works.
[fschulze]
Made code in defaultpage.py a bit more tolerant of missing tools.
[hannosch]
1.0 - 2007-08-17
Fixed the translation of the 'Show this page in presentation mode...'
message.
[hannosch]
Made the search box a bit wider, so the entire default text is shown
in languages with a rather long term.
[hannosch]