Skip to content
Tomasz Dziuda edited this page Sep 27, 2013 · 5 revisions

Article format is an useful functionality which can be used to achieve own article hTML structure . Currently you can use the article formats in the default article wrapper.

You can create own article formats in the article_formats directory inside the widget catalog. Your file with the article format must have the .format file extension.

Below there is presented the test article format which uses all tags available in the wp data source:

ID: {ID}<br />
URL: {URL}<br />
TITLE: {TITLE}<br />
TEXT: {TEXT}<br />
IMAGE_FULL: {IMAGE_FULL}<br />
IMAGE_LARGE: {IMAGE_LARGE}<br />
IMAGE_MEDIUM: {IMAGE_MEDIUM}<br />
IMAGE_THUMBNAIL: {IMAGE_THUMBNAIL}<br />
CATEGORIES: {CATEGORIES}<br />
AUTHOR_ID: {AUTHOR_ID}<br />
AUTHOR_NAME: {AUTHOR_NAME}<br />
AUTHOR_URL: {AUTHOR_URL}<br />
DATE: {DATE}<br />
COMMENT_COUNT: {COMMENT_COUNT}<br />
COMMENTS: {COMMENTS}<br />

You can use the available tags in the following structure:

<h3>
	<a href="{URL}">{TITLE}</a>
</h3>
<p>{TEXT}</p>

You can select the article format in the article layout settings tab:

Article layout selector

Clone this wiki locally