Package: imio.smartweb.common
imio.smartweb.commonProvides various common needs for smartweb related sites :topics field behavior with topics vocabulary select widgetIam field behavior with “iam” vocabulary select widgetrich description feature, with bold & newlines, limited to a maximum of chars (seeconfig.py)countries vocabularycities vocabulary (values are stored in registry)faceted relative path widgetbreadcrumbindex that stores the full object path with titles (and not ids)has_leadimageindex that stores if there is a lead_image on the object or notcropping scales selection mechanism per content-type / field (with adapters)help texts (descriptions) on forms above the fields and not below@search-filterREST endpoint to get all terms (and titles) of metadatas from search request resultscolophon viewlet override to add legal mention, accessibility info, cookies preferences & copyrightcookies opt-in support for analytics and iframes (Accept/Refuse all or detailed preferences)Custom Add / Edit forms are also provided to :Transform tabs into expandable fieldsetsHide lead image caption field (never used)Utils fonctions are also provided for :vocabulary term translationobject geolocation (withIAddressschema)A (very) simplified TinyMCE configuration is also made.TranslationsThis product has been translated intoFrenchInstallationInstall imio.smartweb.common by adding it to your buildout:[buildout]

...

eggs =
    imio.smartweb.commonand then runningbin/buildoutContributeIssue Tracker:https://github.com/imio/imio.smartweb.common/issuesSource Code:https://github.com/imio/imio.smartweb.commonLicenseThe project is licensed under the GPLv2.ContributorsiMio,christophe.boulanger@imio.beChangelog1.2.9 (2024-02-08)WEB-4064 : Reindex SolR because of changes in schema
[remdub]1.2.8 (2024-02-02)Fix skip content sr-only
[thomlamb]1.2.7 (2024-01-16)WEB-4046 : Add css for “Skip to content
[thomlamb]WEB-4046 : Add “Skip to content” link for a11y
[laulaz]WEB-4048 : Put focus on cookies accept button for a11y
[laulaz]1.2.6 (2024-01-09)WEB-4041 : Add new “carre” scale
[boulch]1.2.5 (2024-01-05)WEB-4007 : Get ContactProperties out of imio.smartweb.core to also use it in imio.directory.core
and simplifying formated schedule displaying in REACT directory view
[boulch]WEB-4029 : File and Image content types don’t have WF so we set effective date equal to created date
[boulch]1.2.4 (2023-12-07)WEB-3783 : Rebuild url with request.form datas (usefull with react views)
[boulch]1.2.3 (2023-11-21)Improve image compression quality
[laulaz]Change portrait scales dimensions
[laulaz]1.2.2 (2023-11-20)Fix missing values for facilities lists (causingNonein REST views filters)
Seehttps://github.com/collective/collective.solr/issues/366[laulaz]Fix last upgrade steps: when run from command line, we need to adopt admin
user to find private objects
[laulaz]WEB-4003 : Fix missing TextField mimetypes
[laulaz]1.2.1 (2023-10-29)SUP-33128 : Fix eea.facetednavigation : Hide items with 0 results
[boulch, laz]Refactor less and js compilation + Add compilations files
[boulch]1.2 (2023-10-25)WEB-3985 : New portrait / paysage scales & logic.
We have re-defined the scales & sizes used in smartweb.
We let the user crop only 2 big portrait / paysage scales and make the calculation behind the scenes for all
other smaller scales.
We also fixed the cropping information clearing on images changes.
[boulch, laulaz]1.1.9 (2023-08-28)WEB-3974 : Add new registry key (imio.smartweb.common.log) to activate logging in smartweb / auth sources products
[boulch]Fix AttributeError in case of instance behaviors attributes that are not on all objects
[boulch]1.1.8 (2023-08-09)WEB-3960 : Clean unhautorized xml chars out of text when added or modified contents
Temporary patch. Waiting for this fix :https://github.com/plone/plone.app.z3cform/pull/167[boulch]WEB-3955 : Authentic sources : Crop view on Image type should not return scales
[boulch]1.1.7 (2023-05-22)Change banner scale to have infinite height
[laulaz]Migrate to Plone 6.0.4
[boulch]1.1.6 (2023-04-14)Don’t use image_scales metadata anymore (Fix faceted)
[boulch, laulaz]Update object modification date if cropping was removed/updated
[boulch, laulaz]1.1.5 (2023-03-14)WEB-3862 : Patch (Remove select2) eea.facetednavigation jquery
[laulaz, boulch]1.1.4 (2023-03-13)Allow to add portal messages when content images are too small for cropping.
This can be done dynamically on a view call with a single line of code:show_warning_for_scales(self.context, self.request)[laulaz]Migrate to Plone 6.0.2
[boulch]1.1.3 (2023-02-22)WEB-3852 : Fix atom/syndication registry keys
[boulch]1.1.2 (2023-01-30)Call@@consent-jsonview on navigation root (instead of context)
[laulaz]Ensure Ajax requests are always uncached
[laulaz]1.1.1 (2023-01-12)Allow to choose language for vocabulary term translation
[laulaz]Use bootstrap dropdown-toggle for fieldsets collapse icon on edit forms
[laulaz]Fix TinyMCE menu bar and format menu
[laulaz]Updatewidget.ptoverride fromplone.app.z3cform.templates[laulaz]Improve monkeypatch to fix TTW resource calling
[laulaz]Update buildout to get Plone 6.0.0 final
[laulaz]1.1 (2022-12-20)Add monkeypatch to fix TTW resource calling
Seehttps://github.com/plone/Products.CMFPlone/issues/3705[laulaz]Uninstall collective.js.jqueryui
[boulch]Remove faceted deprecated bundles
[boulch]Migrate to Plone 6 : remove dexteritytextindexer, use new simplified
resources registry, fix TinyMCE configuration and images scales,
manual minimized js
[laulaz, boulch]1.0.10 (2022-11-22)Ignore batch related query parameters forsearch-filtersendpoint
[laulaz]1.0.9 (2022-11-15)Add helper method to get language from smartweb REST requests
This is needed for multilingual authentic sources
[laulaz]Allow to translate vocabulary terms titles in search-filters endpoint
This is needed for multilingual authentic sources
[laulaz]1.0.8 (2022-08-08)MWEB-54 : Update TinyMCE : Add non breaking space option
[boulch]1.0.7 (2022-06-13)Add connection link in colophon
[laulaz]1.0.6 (2022-06-07)Add ban_physicalpath method (taken from policy)
[boulch, laulaz]1.0.5 (2022-05-16)Refactor rich description to retrieve html on a any description
(from context or from other ways)
[boulch]1.0.4 (2022-05-03)Limit uploaded files sizes to 20Mo with JS (without reaching the server)
[laulaz]Add help text on lead image field also on edit forms
[laulaz]1.0.3 (2022-05-02)Hide faceted actions
[boulch]1.0.2 (2022-04-25)Hide unwanted upgrades from site-creation and quickinstaller
[boulch]Add local manager role and sharing permissions rolemap
[boulch]Add help text on lead image fields
[boulch]Fix privacy views JS calls (sometimes called on Zope root instead of Plone root)
[laulaz]Add Subject keywords to SearchableText index
[laulaz]1.0.1 (2022-03-16)Allow readers, editors and reviewers to see inactive (expired) contents
[laulaz]1.0 (2022-03-08)Avoid traceback if @@get_analytics is called outside Plone site
[laulaz]1.0a11 (2022-02-21)Load Analytics via JS call to avoid non-privacy aware caching
[laulaz]Change privacy views permissions to zope.Public
[laulaz]1.0a10 (2022-02-10)Hide ical import related actions
[laulaz]1.0a9 (2022-02-01)Update buildout to use Plone 6.0.0a3 packages versions
[boulch]Remove unneeded override: it has been included in plone.app.z3c.form
Seehttps://github.com/plone/plone.app.z3cform/issues/138[laulaz]1.0a8 (2022-01-24)Change colophon copyright position
[laulaz]Change cookies viewlet / overlay logic. We now show (simplified) overlay only
to see detailed options about cookies because viewlet allows to Accept / Refuse
all cookies directly
[laulaz]Add Cookies preferences link in colophon
[laulaz]Change some cookies-related texts
[laulaz]Fix iframes transform with existing classes or when there are several iframes
[laulaz]1.0a7 (2022-01-19)Update buildout to use Plone 6.0.0a2 released version
[laulaz]Remove portal messages from cookies settings overlay
[laulaz]1.0a6 (2022-01-13)Add cookies opt-in support for analytics and iframes
[laulaz]Override colophon viewlet to display legal mention, accessibility info and
copyright links (dependency on imio.gdpr)
[laulaz]1.0a5 (2021-12-16)Fix vocabulary term translation (missing lang)
[laulaz]1.0a4 (2021-11-23)Add utility to get a vocabulary
[boulch]1.0a3 (2021-11-16)Avoid traceback if configure_faceted is called on non-configured type (ex: on
default collections at Plone install)
[laulaz]1.0a2 (2021-11-05)Fix setup.py classifiers & URLs
[laulaz]1.0a1 (2021-11-05)Initial release.
[boulch]