0

Learning Craft currently. Wondering if there's any plugin that simplifies the curation of the home page by allowing pinning a post, highlighting a post, reordering a post etc (non chronologically)

Here's a reference of a equivalent Wordpress plugin: https://github.com/10up/curator

THanks

3

You could create a matrix content field for the homepage with a child entry selection field. You can add as many matrix blocks as you'd like, and select the entries you would like within them.

You can read more about Matrix fields here.

Likewise you can checkout entry field types here.

So your code for index.twig might look like:

{% for block in entry.calloutBlocks %}
  <article>
    {{block.title}}
    {{block.body}}
    <a href="{{block.url}}">Read more</a>
  </article>
{% endfor %}
2
  • Thanks @rob Will try out what you suggested. So there's no plugin I presume at the moment.
    – RDMD
    Nov 14 '15 at 4:24
  • That's whats great about Craft; a lot of features don't require plugins. A lot of it can be done with core functionality out of the box. This has tons of benefits: 1. You can write the exact markup you need, 2. You can use the exact styles you need without any extra bloat, 3. You know exactly how something functions, without any magical undocumented functions. Nov 16 '15 at 15:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.