Commit Graph
11 Commits
Author SHA1 Message Date
Andrea Piovanelli 81570fab35 Internal page links validation for LinkField (#8805)
Compile / Compile client-side assets (push) Has been cancelled
Compile / Compile .NET solution (push) Has been cancelled
* Added page internal references management in LinkField valid urls (e.g. field.Value = "#someId")

* Code refactoring to check LinkField value.
2024-10-29 09:14:13 +01:00
Andrea Piovanelli 6e4fefd873 Content Item published before Custom Form submit event triggers (#8795)
* Moved content item publish before triggering form submit events.
Refreshed the content item passed in the context of rules manager and workflow manager.

* Added version to content manager get call after conditionally publishing the content item.
2024-05-17 09:33:45 +02:00
Andrea PiovanelliandBenedek Farkas fc8b681b4e Ambiguity in LocalizedTaxonomyController action names (#8785)
* Removed ambiguity to LocalizedTaxonomyController actions.

* Properly added ApplyPreRequest to the action.

* Code refactoring

* Code autoformatting

* Sorting using

* Overriding GetTaxonomy action

* Calling base GetTaxonomy action

* Removing ApplyPreRequest function

* Removed ApplyPreRequest function

* Added virtual keyword to GetTaxonomy action in LocalizedTaxonomyController

---------

Co-authored-by: Benedek Farkas <benedek.farkas@lombiq.com>
2024-05-16 17:16:43 +02:00
Andrea Piovanelli 8b9b5fb2ee Minor syntax fix on TaxonomyFieldList.cshtml (#8780)
* Update TaxonomyFieldList.cshtml

Missing closing brackets after providing data for the ajax call

* As requested, added an empty line at the end of file
2024-04-11 21:43:58 +02:00
Andrea Piovanelli e243e8e547 Incorrect NOLOCK position in queries where there is no table alias (#8783)
"WITH(NOLOCK)" is positioned before the where clause if there is no alias for the table.
2024-04-11 20:27:03 +02:00
Andrea Piovanelli 2d7ce45d1e TermsPart.Record usage made before the delegate to avoid accessing a scope which is already disposed. (#8766) 2024-03-15 08:55:07 +01:00
Andrea Piovanelli 35f1c8d570 Corrections on media resizing process (#8762)
* Added checks to GetImageProfileUrl function to avoid trying to resize files with no ImagePart. If no content item is passed as a parameter, file gets to be processed anyway (throwing and logging exception is the file isn't processable - e.g. is a svg file)

* Added reference to Orchard.MediaLibrary.
2024-02-29 19:39:32 +01:00
Andrea Piovanelli 90dc993e83 Using content item's ContentManager for lazy field loading instead of the injected one (#8761) 2024-02-29 19:37:54 +01:00
Andrea Piovanelli eb09ab7f95 Added data annotation to have a proper validation on MenuText length based on its maximum length on database. (#8757) 2024-02-21 11:21:13 +01:00
Andrea Piovanelli d46f26d4c7 Added chain to Slug token to enable TextTokens for Autoroute configuration. (#8755) 2024-02-21 11:18:33 +01:00
Andrea Piovanelli 417af34b4e Added checks to properly display CustomForm content items at front end (#8751)
* Display CustomForm_Wrapper shape only if shape type is Detail.
Publish button has to be visible only if content is draftable AND is set to show the publish button

# Conflicts:
#	src/Orchard.Web/Modules/Orchard.CustomForms/Drivers/CustomFormPartDriver.cs
#	src/Orchard.Web/Modules/Orchard.CustomForms/Views/Item/Create.cshtml
#	src/Orchard.Web/Modules/Orchard.CustomForms/Views/Parts.CustomForm.Wrapper.cshtml

* Added EditorBuilderWrapper.
2024-01-26 09:12:09 +01:00