kolber / stacey

Cheap & easy content management
http://staceyapp.com
MIT License
1.04k stars 132 forks source link

Asset Display Order #157

Open JonahRT opened 7 years ago

JonahRT commented 7 years ago

Is there a way to change how assets (images, movies, html, etc.) are displayed?

For example, in a project folder there are three JPEGs, one HTML file, and one MOV (see screenshot). They are numbered in the order that I would like them displayed; however, the images files always appear first on the page.

How can I control how all types of assets are displayed? Another, more extreme example... If I would like to display two images, a movie, another image, and then an html file on a single page in that order.

Thanks for your help!

screen shot 2017-05-17 at 15 15 50

pbatts commented 7 years ago

If you look at the projects.html template you will see that the partials/assets/media.html template is being included.

The order in which the assets appear is being dictated by the partials/assets/media.html template.

You can create templates so that assets appear in a particular order for a given page.