Documentation ¶
Index ¶
- Constants
- Variables
- func AreVariablesAllowed(key, format string, fields page_fields.Fields) (allowed bool)
- func IsTmplPage(format string) (yes bool)
- func SanitizeKeyName(input string) (cleaned string)
- type CFeature
- func (f *CFeature) AddContentFileSystems(tags ...feature.Tag) MakeFeature
- func (f *CFeature) AddIndexing(info *feature.EditorFile)
- func (f *CFeature) Build(b feature.Buildable) (err error)
- func (f *CFeature) EditorMenu(r *http.Request) (m menu.Menu)
- func (f *CFeature) FinalizeRenderFileEditor(r *http.Request, eid string, pg feature.Page, pm *matter.PageMatter, ...) (modified *http.Request, err error)
- func (f *CFeature) GetTranslatedLocales(info *feature.EditorFile) (translations map[language.Tag]string)
- func (f *CFeature) GetUntranslatedLocales(info *feature.EditorFile) (locales []language.Tag)
- func (f *CFeature) HasIndexing(info *feature.EditorFile) (indexed bool)
- func (f *CFeature) InfoRenderCheck(info *feature.EditorFile) (p feature.Page, pm *matter.PageMatter, err error)
- func (f *CFeature) Init(this interface{})
- func (f *CFeature) Make() (feat Feature)
- func (f *CFeature) MakePageArchetypeContextFields(r *http.Request, name string) (list page_fields.Fields)
- func (f *CFeature) MakePageContextFields(r *http.Request, archetype string) (list page_fields.Fields)
- func (f *CFeature) NotifyErrors(eid string, printer *message.Printer, errs map[string]error)
- func (f *CFeature) OpChangeHandler(r *http.Request, pg feature.Page, ctx, form context.Context, ...) (redirect string)
- func (f *CFeature) OpChangeValidate(r *http.Request, pg feature.Page, ctx, form context.Context, ...) (err error)
- func (f *CFeature) OpFileCommitHandler(r *http.Request, pg feature.Page, ctx, form context.Context, ...) (redirect string)
- func (f *CFeature) OpFileCommitValidate(r *http.Request, pg feature.Page, ctx, form context.Context, ...) (err error)
- func (f *CFeature) OpFileDeIndexHandler(r *http.Request, pg feature.Page, ctx, form context.Context, ...) (redirect string)
- func (f *CFeature) OpFileDeIndexValidate(r *http.Request, pg feature.Page, ctx, form context.Context, ...) (err error)
- func (f *CFeature) OpFileDeleteHandler(r *http.Request, pg feature.Page, ctx, form context.Context, ...) (redirect string)
- func (f *CFeature) OpFileIndexHandler(r *http.Request, pg feature.Page, ctx, form context.Context, ...) (redirect string)
- func (f *CFeature) OpFileIndexValidate(r *http.Request, pg feature.Page, ctx, form context.Context, ...) (err error)
- func (f *CFeature) OpFilePublishHandler(r *http.Request, pg feature.Page, ctx, form context.Context, ...) (redirect string)
- func (f *CFeature) OpFilePublishValidate(r *http.Request, pg feature.Page, ctx, form context.Context, ...) (err error)
- func (f *CFeature) OpFileTranslateHandler(r *http.Request, pg feature.Page, ctx, form context.Context, ...) (redirect string)
- func (f *CFeature) OpPageCreateHandler(r *http.Request, pg feature.Page, ctx, form context.Context, ...) (redirect string)
- func (f *CFeature) OpPageCreateValidate(r *http.Request, pg feature.Page, ctx, form context.Context, ...) (err error)
- func (f *CFeature) PageRenderCheck(p feature.Page) (err error)
- func (f *CFeature) ParseCreatePageForm(r *http.Request, pg feature.Page, ctx, form context.Context, ...) (dstUri, dstFormat, dstArchetype string, dstInfo *feature.EditorFile, ...)
- func (f *CFeature) ParseFormToDraft(pm *matter.PageMatter, fields page_fields.Fields, form context.Context, ...) (modified *matter.PageMatter, redirect string, errs map[string]error)
- func (f *CFeature) PublishDraftPage(info *feature.EditorFile) (err error)
- func (f *CFeature) ReadDraftPage(info *feature.EditorFile) (pm *matter.PageMatter, err error)
- func (f *CFeature) ReadPageMatter(info *feature.EditorFile) (pm *matter.PageMatter, err error)
- func (f *CFeature) RemoveIndexing(info *feature.EditorFile)
- func (f *CFeature) RemovePage(info *feature.EditorFile, pm *matter.PageMatter) (err error)
- func (f *CFeature) RenderFileEditor(w http.ResponseWriter, r *http.Request)
- func (f *CFeature) RenderFilePreview(w http.ResponseWriter, r *http.Request)
- func (f *CFeature) ServePreparedEditPage(pg feature.Page, ctx context.Context, w http.ResponseWriter, r *http.Request)
- func (f *CFeature) ServePreviewEditPage(pg feature.Page, ctx context.Context, w http.ResponseWriter, r *http.Request)
- func (f *CFeature) SetupEditor(es feature.EditorSite)
- func (f *CFeature) SetupEditorRoute(r chi.Router)
- func (f *CFeature) SiteFeatureMenu(r *http.Request) (m menu.Menu)
- func (f *CFeature) Startup(ctx *cli.Context) (err error)
- func (f *CFeature) UpdateFileInfo(info *feature.EditorFile, r *http.Request)
- func (f *CFeature) UpdateFileInfoForEditing(info *feature.EditorFile, r *http.Request)
- func (f *CFeature) UpdatePathInfo(info *feature.EditorFile, r *http.Request)
- func (f *CFeature) WriteDraftPage(info *feature.EditorFile, pm *matter.PageMatter) (err error)
- func (f *CFeature) WritePage(info *feature.EditorFile, pm *matter.PageMatter) (err error)
- type Feature
- type MakeFeature
Constants ¶
View Source
const Tag feature.Tag = "fs-editor-pages"
Variables ¶
View Source
var ( DefaultEditorType = "page" DefaultEditorKey = "pages" )
Functions ¶
func AreVariablesAllowed ¶
func AreVariablesAllowed(key, format string, fields page_fields.Fields) (allowed bool)
func IsTmplPage ¶
func SanitizeKeyName ¶
Types ¶
type CFeature ¶
type CFeature struct { fs_editor.CEditorFeature[MakeFeature] // contains filtered or unexported fields }
func (*CFeature) AddContentFileSystems ¶
func (f *CFeature) AddContentFileSystems(tags ...feature.Tag) MakeFeature
func (*CFeature) AddIndexing ¶
func (f *CFeature) AddIndexing(info *feature.EditorFile)
func (*CFeature) FinalizeRenderFileEditor ¶
func (*CFeature) GetTranslatedLocales ¶
func (*CFeature) GetUntranslatedLocales ¶
func (f *CFeature) GetUntranslatedLocales(info *feature.EditorFile) (locales []language.Tag)
func (*CFeature) HasIndexing ¶
func (f *CFeature) HasIndexing(info *feature.EditorFile) (indexed bool)
func (*CFeature) InfoRenderCheck ¶
func (f *CFeature) InfoRenderCheck(info *feature.EditorFile) (p feature.Page, pm *matter.PageMatter, err error)
func (*CFeature) MakePageArchetypeContextFields ¶
func (*CFeature) MakePageContextFields ¶
func (*CFeature) NotifyErrors ¶
func (*CFeature) OpChangeHandler ¶
func (*CFeature) OpChangeValidate ¶
func (*CFeature) OpFileCommitHandler ¶
func (*CFeature) OpFileCommitValidate ¶
func (*CFeature) OpFileDeIndexHandler ¶
func (*CFeature) OpFileDeIndexValidate ¶
func (*CFeature) OpFileDeleteHandler ¶
func (*CFeature) OpFileIndexHandler ¶
func (*CFeature) OpFileIndexValidate ¶
func (*CFeature) OpFilePublishHandler ¶
func (*CFeature) OpFilePublishValidate ¶
func (*CFeature) OpFileTranslateHandler ¶
func (*CFeature) OpPageCreateHandler ¶
func (*CFeature) OpPageCreateValidate ¶
func (*CFeature) ParseCreatePageForm ¶
func (f *CFeature) ParseCreatePageForm(r *http.Request, pg feature.Page, ctx, form context.Context, info *feature.EditorFile, eid string, redirect *string) (dstUri, dstFormat, dstArchetype string, dstInfo *feature.EditorFile, dstFS feature.FileSystemFeature, dstMP *feature.CMountPoint, dstExists bool, stop bool)
func (*CFeature) ParseFormToDraft ¶
func (f *CFeature) ParseFormToDraft(pm *matter.PageMatter, fields page_fields.Fields, form context.Context, info *feature.EditorFile, r *http.Request) (modified *matter.PageMatter, redirect string, errs map[string]error)
func (*CFeature) PublishDraftPage ¶
func (f *CFeature) PublishDraftPage(info *feature.EditorFile) (err error)
func (*CFeature) ReadDraftPage ¶
func (f *CFeature) ReadDraftPage(info *feature.EditorFile) (pm *matter.PageMatter, err error)
func (*CFeature) ReadPageMatter ¶
func (f *CFeature) ReadPageMatter(info *feature.EditorFile) (pm *matter.PageMatter, err error)
func (*CFeature) RemoveIndexing ¶
func (f *CFeature) RemoveIndexing(info *feature.EditorFile)
func (*CFeature) RemovePage ¶
func (f *CFeature) RemovePage(info *feature.EditorFile, pm *matter.PageMatter) (err error)
func (*CFeature) RenderFileEditor ¶
func (f *CFeature) RenderFileEditor(w http.ResponseWriter, r *http.Request)
func (*CFeature) RenderFilePreview ¶
func (f *CFeature) RenderFilePreview(w http.ResponseWriter, r *http.Request)
func (*CFeature) ServePreparedEditPage ¶
func (*CFeature) ServePreviewEditPage ¶
func (*CFeature) SetupEditor ¶
func (f *CFeature) SetupEditor(es feature.EditorSite)
func (*CFeature) SetupEditorRoute ¶
func (f *CFeature) SetupEditorRoute(r chi.Router)
func (*CFeature) SiteFeatureMenu ¶
func (*CFeature) UpdateFileInfo ¶
func (f *CFeature) UpdateFileInfo(info *feature.EditorFile, r *http.Request)
func (*CFeature) UpdateFileInfoForEditing ¶
func (f *CFeature) UpdateFileInfoForEditing(info *feature.EditorFile, r *http.Request)
func (*CFeature) UpdatePathInfo ¶
func (f *CFeature) UpdatePathInfo(info *feature.EditorFile, r *http.Request)
func (*CFeature) WriteDraftPage ¶
func (f *CFeature) WriteDraftPage(info *feature.EditorFile, pm *matter.PageMatter) (err error)
func (*CFeature) WritePage ¶
func (f *CFeature) WritePage(info *feature.EditorFile, pm *matter.PageMatter) (err error)
type Feature ¶
type Feature interface { feature.EditorFeature }
type MakeFeature ¶
type MakeFeature interface { feature.EditorMakeFeature[MakeFeature] Make() Feature AddContentFileSystems(tags ...feature.Tag) MakeFeature }
func New ¶
func New() MakeFeature
func NewTagged ¶
func NewTagged(tag feature.Tag) MakeFeature
Click to show internal directories.
Click to hide internal directories.