reference

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2019 License: BSD-3-Clause, BSD-3-Clause Imports: 9 Imported by: 0

README

Reference

A Ponzu addon to embed a reference to a content type from within another content type in the CMS.

Documentation

Overview

Package reference is a Ponzu addon to enable content editors to create references to other content types which are stored as query strings within the referencer's content DB

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Select

func Select(fieldName string, p interface{}, attrs map[string]string, contentType, tmplString string) []byte

Select returns the []byte of a <select> HTML element plus internal <options> with a label. IMPORTANT: The `fieldName` argument will cause a panic if it is not exactly the string form of the struct field that this editor input is representing

func SelectRepeater

func SelectRepeater(fieldName string, p interface{}, attrs map[string]string, contentType, tmplString string) []byte

SelectRepeater returns the []byte of a <select> HTML element plus internal <options> with a label. It also includes repeat controllers (+ / -) so the element can be dynamically multiplied or reduced. IMPORTANT: The `fieldName` argument will cause a panic if it is not exactly the string form of the struct field that this editor input is representing

Types

This section is empty.

Jump to

Keyboard shortcuts

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