Commit Graph
56 Commits
Author SHA1 Message Date
Hermes Sbicego 9644ceda1f self closing divs ar not a W3C valid markup: Self-closing syntax (/>) used on a non-void HTML element. Ignoring the slash and treating as a start tag. (#8738) 2023-11-17 21:44:27 +01:00
Hermes Sbicego 4e73190ae5 Makes upgrade to Mailkit fully backward compatible 2023-11-10 08:49:36 +01:00
Hermes Sbicego a4be7c68cb Fixes null culture (#8723)
Fixes null culture bug and prevents to query the database if the requested culture is null or empty
2023-09-29 08:42:13 +02:00
Hermes Sbicego ba0daf3cb0 Improve Orchard.Layouts UX (#8721) 2023-09-01 10:23:36 +02:00
Hermes Sbicego d8bb23a4c4 Update SslSettingsPartHandler.cs (#8715)
Adds the OnUpdated handler in order to Invalidate the cache of the settings
2023-07-21 08:03:42 +02:00
Hermes Sbicego 05e3c196aa Feature/tinymce contentlinks plugin (#8679)
* Adds the ability to create links based on orchard contents, calculating href during the display process using tokens

# Conflicts:
#	src/Orchard.Web/Modules/TinyMce/Scripts/orchard-tinymce.js

* Adds Contentmanager.Get Tokens
Adds Content Links plugin to TinyMCE

* Adds settings for TextField and BodyPart in order to specify which content types or part to show in the list

* Settings for Html editors built on BodyParts, TextFields, LayoutParts

* Adds minified version of the plugin.js

* Tests if dependencies are enabled before activating the content links settings

* new .png for TinyMce

* Renamed the token as suggested during last meeting
2023-05-08 09:07:05 +02:00
Hermes Sbicego 6283106c53 Adds the ability to insert/edit snippets of html source code (#8668)
* adds a new tinyMCE plugin enabling editing a piece of html source code

* - Adds the new plugin to the VS project
- Adds js minified version
2023-04-28 08:52:46 +02:00
Hermes Sbicego 028e2e413b Prevent caching GetTaxonomy Action (#8628)
That action is called by LocalizedTaxonomyField editor view and need to not serve cached data
2022-10-21 12:06:37 +02:00
Hermes Sbicego 0234738573 8620 Adds filehash to static resources (#8621)
fixes #8620
2022-09-23 08:05:17 +02:00
Hermes Sbicego d0bd8d0af0 Create unique HTML element ids for boolean fields edited via radio buttons (#8598) 2022-07-08 16:49:56 +02:00
Hermes Sbicegoanddependabot[bot] f2ec2a70cd Fix/newtonsoft.json 13.0.1 (#8596)
* Bump Newtonsoft.Json from 12.0.3 to 13.0.1 in /src/Orchard

Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 12.0.3 to 13.0.1.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/12.0.3...13.0.1)

---
updated-dependencies:
- dependency-name: Newtonsoft.Json
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump Newtonsoft.Json from 12.0.3 to 13.0.1 in /src/Orchard.Azure.Tests

Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 12.0.3 to 13.0.1.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/12.0.3...13.0.1)

---
updated-dependencies:
- dependency-name: Newtonsoft.Json
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Updates Newtonsoft.Json from 12.0.3 to 13.0.1

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-05 09:30:08 +02:00
412a21873a GetPhysicalPath returns error if url contains '?' (#8526)
* GetPhysicalPath returns error if url contains '?'

Fixes

* Update ResourceDefinition.cs

Co-authored-by: Sébastien Ros <sebastienros@gmail.com>
Co-authored-by: matteo.piovanelli <matteo.piovanelli@laser-group.com>
2022-01-14 10:53:43 +01:00
Hermes Sbicego d51418b2c1 Sets SSL redirection as permanent for SEO reasons (#8503)
Fixes #8502
2021-09-16 10:03:00 -07:00
Hermes Sbicego 4e69612d90 Projection default settings (#8497)
* added settings in projection part
* read settings into driver
* commit files setting
* add logic of filter query
* added logic of filter query setting
* managed import/export
* fixed migration
* added message information
Co-authored-by: elena.lampugnani <elena.lampugnani@laser-group.com>
2021-09-03 09:03:27 +02:00
Hermes Sbicego 230dfc30da Bypass cache for XSRF Tokens (#8470)
Fixes #8469
2021-05-14 10:01:43 +02:00
Hermes Sbicego 6d0a29af53 Upgrades YamlDotNet from 9.1.3 to 11.1.1 because 9.1.3 is not more available as nuget package (#8472) 2021-05-12 17:59:16 +02:00
Hermes Sbicego 1d8c589055 Show disable action for deprecated features even if they are categorized as "Core" (#8468) 2021-04-22 10:03:46 -07:00
Hermes Sbicego 089bc1d068 Prevents throwing exception when Href is null (#8461) 2021-03-19 08:13:06 +01:00
Hermes Sbicego c5240678bd Feature/upgradable libraries (#8457) 2021-02-18 10:06:24 -08:00
Hermes Sbicego 0c34ca3dd5 Feature/8445 libraries update (#8446) 2021-02-04 10:05:50 -08:00
Hermes Sbicego 700b029a34 target framework 4.8 to all projects (#8444) 2021-01-07 10:07:38 -08:00
Hermes Sbicego 3ceda381c5 Fix/8392 remeber me model state exception (#8410)
@sebastienros this fixes the possible NRE that would happen for absent models from merged #8393 
(see your comment there https://github.com/OrchardCMS/Orchard/pull/8393#issuecomment-686630198)
2020-09-04 09:12:10 +02:00
Hermes Sbicego c566e12abd Fixes Boolean Conversion error (#8393) 2020-09-03 10:07:47 -07:00
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 c1374f9be9 Reuse Settings_ShellDescriptorRecord during an http request (#8355) 2020-04-30 10:05:57 -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 21cb531949 Fixes errors during Indexing (#8349) 2020-04-16 10:17:56 -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