Templates: Junecode: entries

This documentation was updated on Saturday, January 27, 2007 at 10:12 PM

Inserts a list of entries that are in the current category (or the specified directory). This tag should always have a start and end tag. Everything in between will be repeated for each entry.

Each template should almost always have a <junecode:entries> section that does not specify any attributes. See the Categories section of the Options page in your site to specify what displays here by default. If you want to insert additional entries into your page, you can use a second <junecode:entries> tag that includes one or more of the attributes below.

Note that if you specify a page, it will be displayed even if it is marked as hidden. This allows you to insert specific entries in a different location in your template without having them appear in the main listing.

Attributes

dir: optional. The directory of the category to display entries from. The default is to display entries based on the current URL.
limit: optional. The maximum number of entries to display. This can only be used with the dir attribute to display entries from another category. Normally you would set the number of categories per page in the Categories page of the Options section.
page: optional. The page to display within the specified category.
emptytitle: The title to display if no entries were found.
emptytext: The entry text to display if no entries were found.

Example

<junecode:entries dir="{junecode:dir}" page="downloads">
<h2><junecode:entrytitle /></h2>
<junecode:entrytext />
</junecode:entries>

This example will look for an entry with the page name “downloads” in the currently displayed category.

Changes

The limit, emptytitle, and emptytext attributes were added in version 2.1.

You are here: Junecode: about: design templates: junecode: entries
This site was created with Junecode. Copyright © 2010–2023 Junecloud LLC.