I’m making an archive page for a magazine. I’m having trouble with adding a field for an editors note for specific tags and for getting the result I want. Help would be very appreciated.
My idea is:
- The user goes on the archive panel page and selects ‘issue 1’ from a drop down, where all the currently available tags are shown.
- Upon selecting ‘issue 1’, a textarea field automatically appears below the dropdown. Here is where the editor can enter a note about the the posts tagged with ‘issue 1’.
- When the user saves the content of this text area, the blueprint automatically updates the archive page on website/archive to include a section that shows all posts tagged with ‘issue 1’, as well as the note that was just added.
- Repeating this with ‘issue 2’ or ‘issue n+’ etc, would add a section to the archive page.
I have so far:
//Shows available tags categories: width: 2/4 label: Issue to Archive type: select options: query query: site.index.pluck("tags", ",", true) //Shows test editornote: label: Editor's Note type: textarea minlength: 10 maxlength: 500 when: //how to show only when a valid tag was picked before hand? categories: query
//loop through all posts that are published <?php $liveposts = $site->homePage()->children()->listed() ?> //Separate posts by tag Im not sure how to do this :( //If post array of tag contains editor's note, then show in template Im not sure how to do this :(