From 9345907a5c1737c6c2c1f8eba52a568035b08493 Mon Sep 17 00:00:00 2001 From: haturatu Date: Sat, 22 Feb 2025 23:20:55 +0900 Subject: fix: all hange s\/github.com\/ponzu-cms/github.com\/haturatu\/g --- docs/build/Interfaces/Item/index.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'docs/build/Interfaces/Item/index.html') diff --git a/docs/build/Interfaces/Item/index.html b/docs/build/Interfaces/Item/index.html index dd6bd99..d3834c7 100644 --- a/docs/build/Interfaces/Item/index.html +++ b/docs/build/Interfaces/Item/index.html @@ -120,7 +120,7 @@ - +
@@ -167,7 +167,7 @@ - +
@@ -1519,7 +1519,7 @@ the functionality of the content in your system and how it interacts with other components inside and outside of Ponzu.


Interfaces

-

item.Pushable

+

item.Pushable

Pushable, if HTTP/2 Server Push is supported by the client, can tell a handler which resources it would like to have "pushed" preemptively to the client. This saves follow-on roundtrip requests @@ -1556,7 +1556,7 @@ for the field names must be URL paths, and cannot be from anoth


-

item.Hideable

+

item.Hideable

Hideable tells an API handler that data of this type shouldn’t be exposed outside the system. Hideable types cannot be used as references (relations in Content types). The Hide method, the only method in Hideable, takes an http.ResponseWriter, *http.Request @@ -1578,7 +1578,7 @@ content in specific cases.


-

item.Omittable

+

item.Omittable

Omittable tells a content API handler to keep certain fields from being exposed through the JSON response. It's single method, Omit takes no arguments and returns a []string which must be made up of the JSON struct tags for the type @@ -1609,7 +1609,7 @@ containing fields to be omitted and an error value.


-

item.Hookable

+

item.Hookable

Hookable provides lifecycle hooks into the http handlers which manage Save, Delete, Approve, and Reject routines. All methods in its set take an http.ResponseWriter, *http.Request and return an error.

@@ -1895,7 +1895,7 @@ The same logic applies to all of these interface methods that return an error - the error defines the behavior.


-

item.Identifiable

+

item.Identifiable

Identifiable enables a struct to have its ID set/get. Typically this is done to set an ID to -1 indicating it is new for DB inserts, since by default a newly initialized struct would have an ID of 0, the int zero-value, and BoltDB's starting key per bucket is 0, thus overwriting the first record. Most notable, Identifiable’s String method is used to set a meaningful display name for an Item. String is called by default in the Admin dashboard to show the Items of certain types, and in the default creation of an Item’s slug. Identifiable is implemented by Item by default.

@@ -1933,7 +1933,7 @@ the CMS, and to customize slugs.


-

item.Sluggable

+

item.Sluggable

Sluggable makes a struct locatable by URL with it's own path. As an Item implementing Sluggable, slugs may overlap. If this is an issue, make your content struct (or one which embeds Item) implement Sluggable and it will override the slug created by Item's SetSlug method with your own. It is not recommended to override SetSlug, but rather the String method on your content struct, which will have a similar, more predictable effect. Sluggable is implemented by Item by default.

@@ -1963,7 +1963,7 @@ Content item slug, but try first to override the String() method fo
-

item.Sortable

+

item.Sortable

Sortable enables items to be sorted by time, as per the sort.Interface interface. Sortable is implemented by Item by default.

Method Set
type Sortable interface {
@@ -2051,7 +2051,7 @@ is undefined.

- + -- cgit v1.2.3