Commit Graph
31 Commits
Author SHA1 Message Date
Hermes Sbicego 87477518fa Fix wrong behaviours and exceptions when blog is unpublished. (#8389)
* Fix wrong behaviours and exceptions when blog is unpublished. More details there #8388.
2020-07-10 08:31:11 +02:00
Hermes Sbicego cf1d91f0b2 Prevent loosing contentId when Model has errors (#8358) 2020-05-14 10:30:47 -07:00
Hermes Sbicego 8a327cf887 Removes useless and case sensitive check (#8352)
That check was useless because we use a int.TryParse. Morevoer queryString.AllKeys.Contains() is case sensitive.
2020-04-23 10:11:07 -07:00
Hermes Sbicego b54d2fadc0 CustomForms throws an error when used within a Widget (#8338) 2020-04-02 10:12:55 -07:00
Hermes Sbicego e4b251b9ce - Moved condition of ContentType not null in a try catch statement to handle the case the ContentItem was destroyed (#8335) 2020-03-19 12:05:53 -07:00
Hermes Sbicego 5015809444 Adds a link "View" in "Admin/Index.cshtml" to see how it looks the Taxonomony on the front-end (#8323)
Fixes #8322
2020-02-13 12:09:35 -08:00
Hermes Sbicego e47aca5914 Making messages of register.cshtml consistent with the User settings (#8301) 2019-12-19 12:25:45 -08:00
Hermes Sbicego 96ffefd078 Placement's path condition now strips the Tenant/Site UrlPrefix (#8222)
Fixes #6962
2019-07-11 21:09:13 +02:00
Hermes Sbicego bb87e47bc3 Contents: Adding redirects to overridden routes in AdminController and ItemController (#8224) 2019-07-11 21:08:39 +02:00
Hermes Sbicego 9955d92485 [8192] Fix permissions check for taxonomies, terms and widgets during translations (#8193) 2019-05-16 12:30:32 -07:00
Hermes Sbicego d63068026a Null check in Localization.ContentTranslations.Edit.cshtml (#8197) 2019-05-16 12:29:21 -07:00
Hermes Sbicego a542efbe8d [8194] Find translations for Localizaed Terms (#8195)
Fixes #8194
2019-05-10 12:13:58 -07:00
Hermes Sbicego c7f9cddb76 Fixes #8181: Prevent placement info loss (#8182)
Fixes #8181
2019-04-18 12:09:04 -07:00
Hermes Sbicego a02323572d Style.Include and Script.Include register the wrong resource key in debug mode (#8177)
Fixes #8176
2019-04-04 12:11:03 -07:00
Hermes Sbicego 6ec5793982 The CultureNeautral Settings of a field defined within a Part was not saved on settings update (#8144)
Fixes #8144
2018-12-06 12:04:07 -08:00
Hermes Sbicego 9a308335bf Editor placement on admin only 2018-08-09 12:15:05 -07:00
Hermes Sbicego d44120ff3a Fixes #8090 - Weird ManageMenu Permissions (#8092) 2018-08-09 12:10:55 -07:00
Hermes Sbicego 73316590ac Update ClientStorageController.cs (#8059)
Fixes an issue caused by replacing a media file by another file with a different fileName that resulted in a wrong filename for the new file.
2018-05-24 12:09:47 -07:00
Hermes Sbicego de52d82955 [8030] Adds "Create content" permission (#8048)
Fixes #8030
2018-05-11 12:19:49 -07:00
Hermes Sbicego afb04c7d45 Update media-library-picker-admin.css (#7947) 2018-01-25 12:09:19 -08:00
Hermes Sbicego 28c53efb09 New feature "Orchard.MediaLibrary.LocalizationExtensions" (#7935)
* New feature "Orchard.MediaLibrary.LocalizationExtensions":
- MediaLocalizationMigrations: Adds LocalizationPart to all Media stereotyped types
- MediaLibraryPickerFieldLocalizationExtensionHandler: Updates the media items within the field according to field settings
- Settings for translation behaviours for MediaLibraryPickerField
- Adds warning on localizing media items
- form filter media by culture

"MediaLibrary" feature:
- Implemented Cloning methods of all medias PartDrivers
- MediaPartHandler: Adds a check to prevent file system media deletion when the file is referenced by other medias
- ClientStorageController: Adds a check to prevent file system media deletion when the file is referenced by other medias

"Localization" feature:
- Adds a logic to propagate returnurl parameter to the redirection url
- ILocalizationService: Adds a new method to set the culture of a content and at the same time the master content of it
- Propagate returnurl parameter if necessary

"Search" feature:
- updated json of media items called via ajax
2018-01-18 12:36:13 -08:00
Hermes Sbicego 9ac21b837b Fixing duplicate media items
Fixes #7934
2018-01-18 12:35:42 -08:00
Hermes Sbicego 5800e18324 Implements #7921 extend query to support latest versions (#7923)
* - Adds the column LatestValue to all type of FieldIndexRecord
- Adds Indexes to increase performances in queries
- Adds Handler to store LatestValue during Update event
- Adds Service to Get and Set the LatestValue of a field
- Adds heavy projections index tables update to the Upgrade module

* - Adds a new Transaction foreach content update in order to prevent tables locks during import

* - Adds Index over FieldIndexPartRecord_Id

* - Adds Column ScopeVersion to QueryPartRecord and manage it during the part's lifecycle
- Manage Queries using ScopeVersion informations

* - Manage the scope of the query within Fields

* - Manage the sort criterion for fields based on the VersionScope of the query

* - Adds the source QueryPartRecord which generates the IHqlQuery to FilterContext and SortCriteriaContext: used in ProjectionManager
- Adds a method which returns the columnName to Sort/Filter to FilterContext and SortCriteriaContext: used in ContentFieldsSortCriteria
- Externalize the logic to calculate the column to index
- Merge Update 4 and 5
- Modified the label "Query Version Scope" into "Content's version"

* - Batch upgrade for LatestValue

* - async ajax call in order to prevent freezing UI

* - Created a context for lambda diversification
2018-01-04 12:20:51 -08:00
Hermes Sbicego 5dc0003f25 Adds the Unpublished Event and the Unpublish Task to workflows (#7929)
Fixes #7902
2018-01-04 12:18:16 -08:00
Hermes Sbicego 044f079e28 [#7729] Text tokens enhancements (#7730)
Fixes #7729
2017-06-22 12:25:39 -07:00
Hermes Sbicego 3bda4acee1 [#7396] Implements UnassignRoleActivity (#7414)
Fixes #7396
2016-12-08 13:05:18 -08:00
Hermes Sbicego bc66cdb36c [Fixes #7413] Refactor taxonomies and terms permissions (#7456)
Fixes #7413 

* Taxonomies:
 - AdminController: Added Actions to AdminController in order to manage Create/Edit: Only Users with Permission.CreateTaxonomy can Edit/Create a Taxonomy
 - Views/Admin/Index.cshtml: Conditional display of ActionLink Create/Edit in Admin/Index.cshtml based on Permission.CreateTaxonomy
 - Views/Admin/Index.cshtml: Conditional display of ActionLink Delete in Admin/Index.cshtml based on Permission.ManageTaxonomies
 - TaxonomyPartHandler: Adding context.Metadata.EditorRouteValues for Taxonomy
Terms:
 - Paring Action/Permission based on existing Permissions
 - Views/TermAdmin/Index.cshtml: Conditional display of ActionLink Create/Edit/Move/Delete based on right Permissions
 - TermPartHandler: Adding context.Metadata.EditorRouteValues for Taxonomy
AdminMenu:
 - The AdminMenu was shown only if a User had ManageTaxonomies Permission; In that way, Roles who have the Create/Edit/Delete Term Permission could not access Index/Edit forms: specializing permissions on Navigation grants access to users belonging to those Roles.

* Removed redundant check over SiteOwner permission
2016-12-08 12:48:25 -08:00
Hermes Sbicego 46c3fe6e79 [Fixes #6196] Added attachments logic (#7338)
Fixes #6196
2016-12-01 13:09:48 -08:00
Hermes Sbicego 8a328902fd ProjectionManager Extension (#7417)
- Defined a new interface IProjectionManagerExtension that inherits from IProjectionManager
- ProjectionManager now implements IProjectionManagerExtension, so we can pass a part to GetCount and GetContentItems
- GetCount and GetContentItems transform the part into a Content token, so you can filter data with informations contained in the Projection itself
2016-12-01 13:00:13 -08:00
Hermes Sbicego 4299239482 Implements what described in #6688 (#7356)
Fixes #6688
2016-11-17 13:02:54 -08:00
Hermes Sbicego b931b79115 [Feature #5790] Adding cache key generation extensibility (#7334) 2016-10-27 13:11:50 -07:00