Forum

Thread tagged as: Blog

Blog Input Template Variants?

Hi, I have a site with a blog all up an working but want to set up a set go posts that have additional fields for input. The blog functionality seems to be the best way (unless there's a better way...).

Here what I need to have: standard blogs are entered in the usual way with Title, Post content and Summary.

The "Review" posts need to have an additional set of "rating" fields.

Is that possible?

I'm considering using categories to section out the posts using perch_blog_custom() to define the correct category for the page.

Should I just add the additional entry fields into the standard blog template and ignor them for standard blogs OR is there a way to define an alternative blog template?

Thanks in advance and sorry to be a bit rambling :(

Steve Counsell

Steve Counsell 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Copy templates/blog/post.html as templates/blog/posts/review.html and add your extra fields.

On the post edit page, use the new field to pick which template to use.

Drew McLellan said:

Copy templates/blog/post.html as templates/blog/posts/review.html and add your extra fields.

On the post edit page, use the new field to pick which template to use.

Hey Drew

Brilliant :)

Thanks for the info.

Regards Steve