Files
Umbraco-CMS/src/Umbraco.Infrastructure/PropertyEditors/GridConfiguration.cs
Nikolaj Geisle 70a34105e0 V11: obsolete legacy data types (#13953)
* Obsolete the grid

* Obsolete the legacy media picker

* Obsolete nested content

---------

Co-authored-by: Zeegaan <nge@umbraco.dk>
2023-03-13 11:33:27 +01:00

32 lines
1.3 KiB
C#

// Copyright (c) Umbraco.
// See LICENSE for more details.
using Newtonsoft.Json.Linq;
namespace Umbraco.Cms.Core.PropertyEditors;
/// <summary>
/// Represents the configuration for the grid value editor.
/// </summary>
[Obsolete("The grid is obsolete, will be removed in V13")]
public class GridConfiguration : IIgnoreUserStartNodesConfig
{
// TODO: Make these strongly typed, for now this works though
[ConfigurationField("items", "Grid", "views/propertyeditors/grid/grid.prevalues.html", Description = "Grid configuration")]
public JObject? Items { get; set; }
// TODO: Make these strongly typed, for now this works though
[ConfigurationField("rte", "Rich text editor", "views/propertyeditors/rte/rte.prevalues.html", Description = "Rich text editor configuration", HideLabel = true)]
public JObject? Rte { get; set; }
[ConfigurationField("mediaParentId", "Image Upload Folder", "mediafolderpicker", Description = "Choose the upload location of pasted images")]
public GuidUdi? MediaParentId { get; set; }
[ConfigurationField(
Constants.DataTypes.ReservedPreValueKeys.IgnoreUserStartNodes,
"Ignore User Start Nodes",
"boolean",
Description = "Selecting this option allows a user to choose nodes that they normally don't have access to.")]
public bool IgnoreUserStartNodes { get; set; }
}