User Guide & Reference Manual

Content

At the heart of any website is its content - the blog posts, static pages of text/images, perhaps tables of statistics, lists, etc. However, not every websites content is the same. So, Hero allows you to define custom content types and build each content type's database with custom fields. For example, a site about hiking in Canada may have content types like "regions", "trails" (linked to regions), "reviews" (linked to trails), "blog posts", and "static pages".

Developers: This is the same custom field engine that powers all other custom fields in Hero. If you require a fieldtype for your content that is not already in the system, create a new custom fieldtype.

Defining Content Types

It's very easy to define new content types. You do it right within the control panel, at Publish > Content Types.

Before you specify your content fields, you must configure the following:

After the main details of the type are configured, you can add an unlimited number of custom fields to the content type. These fields can be textareas, WYSIWYG HTML editors, text fields, select dropdowns, content relationships, file uploads, checkboxes, and any other fieldtype (there are tons!) configured in the custom fieldtype engine.

Publishing Content

Each content type, once created, creates a "Manage X" linked under the Publish tab in the control panel (where X is your content type). Here, you can view all content of this type, or publish new content.

Content can always be easily edited or deleted after publishing.

Delayed Content Publishing

By default, the content sets its publish date/time as the current date when you go to publish a piece of content. However, you have the option of specifying a date/time in the future by simple configuring this date and time in the publish window. If you do so, the content will not appear anywhere on the website (except the control panel, of course), until that date/time is reached.

Content URLs

When publishing standard content, you can specify a URL path to map this piece of content to. For example, this allows you to put an About Us page at yourdomain.com/about_us, or a blog post at yourdomain.com/blog/why-my-site-is-awesome.html.

All URL conflicts with other content will be avoided by appending numbers to the end of the URL (e.g., "_1", "_2", etc.). However, if you specify a URL that conflicts with another module (e.g., "/user", or "/store"), this will override and hide that URL.

WYSIWYG Editor

As mentioned above, one of the fieldtypes you can use when specifying the custom fields for a content type is the WYSIWYG editor. The WYSWIYG editor gives you total control over the HTML for your content without the need for you to know any HTML at all. You can upload and place images, videos, tables, and formatted text in the content box with ease.

Displaying Content

There are a variety of ways for displaying your site's content. First, it can be loaded into blogs and RSS feeds. Second, it can be dynamically loaded into any template by using a variety of standard template tags.