Updated admin page to be more streamlined and added the beginning of the blogging features
This commit is contained in:
26
OpenArchival.DataAccess/Models/SearchPageSliderEntry.cs
Normal file
26
OpenArchival.DataAccess/Models/SearchPageSliderEntry.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace OpenArchival.DataAccess;
|
||||
|
||||
/// <summary>
|
||||
/// Used to display sliders of featured artifacts on the search page before a search is entered.
|
||||
/// </summary>
|
||||
public class SearchPageSliderEntry
|
||||
{
|
||||
[Key]
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Title { get; set; } = "";
|
||||
|
||||
public string Description { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// The tags used to find artifacts for the slider
|
||||
/// </summary>
|
||||
public List<ArtifactEntryTag> FilterTags { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// The maximum number of artifact entries that should be pulled for this slider
|
||||
/// </summary>
|
||||
public int MaxCount { get; set; } = 10;
|
||||
}
|
||||
Reference in New Issue
Block a user