blog

package
v0.0.0-...-19d7934 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2025 License: GPL-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAppConfig

func NewAppConfig() *apps.DBRequiredAppConfig

Types

type BlogContext

type BlogContext struct {
	ctx.ContextWithRequest
	Page pages.Page
}

type BlogImage

type BlogImage struct {
	models.Model `table:"blog_images"`
	OrderableMixin[*BlogImage]
	ID       int64
	Image    *images.Image
	BlogPage *BlogPage
	Content  blocks.ListBlockData
}

func (*BlogImage) FieldDefs

func (b *BlogImage) FieldDefs() attrs.Definitions

func (*BlogImage) GetContentBlock

func (b *BlogImage) GetContentBlock() *blocks.ListBlock

func (*BlogImage) UniqueTogether

func (b *BlogImage) UniqueTogether() [][]string

type BlogPage

type BlogPage struct {
	models.Model `table:"blog_pages"`
	Page         *pages.PageNode `proxy:"true"`
	Image        *mediafiles.SimpleStoredObject
	Editor       *editor.EditorJSBlockData
	Thumbnail    *images.Image
	Document     *documents.Document
	User         users.User
}

func (*BlogPage) FieldDefs

func (n *BlogPage) FieldDefs() attrs.Definitions

func (*BlogPage) ID

func (b *BlogPage) ID() int64

func (*BlogPage) Reference

func (b *BlogPage) Reference() *pages.PageNode

func (*BlogPage) SearchableFields

func (n *BlogPage) SearchableFields() []search.SearchField

func (*BlogPage) ServeHTTP

func (b *BlogPage) ServeHTTP(w http.ResponseWriter, r *http.Request)

type CantSelectField

type CantSelectField struct {
	attrs.Field
}

func (*CantSelectField) AllowDBEdit

func (f *CantSelectField) AllowDBEdit() bool

func (*CantSelectField) CanMigrate

func (f *CantSelectField) CanMigrate() bool

func (*CantSelectField) ForSelectAll

func (f *CantSelectField) ForSelectAll() bool

type OrderableMixin

type OrderableMixin[T attrs.Definer] struct {
	Reference T
	Ordering  int
}

func (*OrderableMixin[T]) BindToEmbedder

func (m *OrderableMixin[T]) BindToEmbedder(embedder attrs.Definer) error

func (*OrderableMixin[T]) FieldDefs

func (m *OrderableMixin[T]) FieldDefs() attrs.Definitions

func (*OrderableMixin[T]) IsModelMixin

func (m *OrderableMixin[T]) IsModelMixin()

func (*OrderableMixin[T]) ObjectFields

func (m *OrderableMixin[T]) ObjectFields(object attrs.Definer, base_fields *attrs.FieldsMap) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL