Clicking on it will take you to the entry index. If you have at least one section, there will be an Entries menu item in the primary control panel navigation. The available translation methods are covered in the custom fields documentation. Most localization behavior is determined by section and field settings, but the translation of titles and slugs is governed by entry types. Unlike the other section types, singles only ever have one entry associated with them, meaning their URIs can be static (like contact-us) rather than parameterized (like news/ # Translation Settings Singles are used for one-off pages or content objects that have unique requirements, such as… # Section TypesĬraft has three different types of sections: # Singles To create a new section, go to Settings → Sections and choose New Section. Which sites are enabled by default when creating new entries.Which sites entries in the section should target.If your project has multiple sites, your Section can define these additional settings: What types of entries should be available in the section, and which fields each of those entry types should have.Which template should get loaded if an entry’s URL is requested.What the entries’ URLs should look like.Whether entries in the section have URLs.In each Section you can define the following: # Sectionsīefore you can create entries, you must create Sections to contain them. Also like other elements, entries can have their own URLs, or be fetched from anywhere via element queries.Ĭontent authors also get access to a powerful drafts and revisions system, allowing them to stage different versions of content and preview it alongside the current live entry.Įntries are one of Craft’s built-in element types, and are represented throughout the application as instances of craft\elements\Entry (opens new window). Each entry has Title, Author, a Post Date, an Expiration Date (if desired), a Status (enabled or disabled), and-like other element types-flexible content defined via custom fields. Their contents get passed directly into the redactor() jQuery plugin, so you can paste the examples in there verbatim.Ĭraft comes with two Redactor configs by default: # Simple.Entries are the primary container for content you want to display on your web pages. json files stored in craft/config/redactor, which contain JavaScript objects that define Redactor config settings (opens new window). Note that this is meant to be be used when accepting input in a Rich Text field from un-trusted sources. Purify HTML? – Whether the field should run submitted data through HTML Purifier (opens new window) before getting saved to the database, removing any potentially malicious code.Clean up HTML? – Whether Craft should run through some HTML cleanup routines when the field is saved, including removing all tags, empty tags, and most style attributes.To use the default Redactor settings, just choose “Default”. Config – The config file for Redactor to use (see below).Rich Text fields have the following settings: Rich Text fields give you a Redactor-powered WYSIWYG editor, which stores HTML.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |