Separating content to display in different areas. (4 posts)

  1. kfawcett
    Posted 5 years ago #

    I'm loving the plugin, but I was looking into trying to separate the content so that I can display different parts of the list in different areas other than in the box format that hRecipe provides.

    It's looking to be very difficult to restructure since all of the html formating is in the JS file. I'm sure you had a good reason to do it that way, but it's making it extremely hard to customize.

    BTW... I notice a print.css file, but there's nothing in it. :( Hopefully that's planned for the future.

  2. Dave Doolin
    Plugin Author

    Posted 5 years ago #

    @kfawcett -

    If you want to reorder the elements, that's pretty simple.

    It wouldn't be that hard to write a new handler for the entry form, create an option to choose handlers, then do what you want with the recipe data. I might have some time for in a week or two, let me know what you think.

    Also, if you could describe in detail what you want, that be very helpful as well.

  3. kfawcett
    Posted 5 years ago #

    I would like to be able to separate where each area goes (ingredients, instructions, prep/cook time, etc), so if each one was in it's own div I could structure them.

    Like how this site does it.

  4. Dave Doolin
    Plugin Author

    Posted 5 years ago #

    @kfawcett -

    Two things:

    - What you want is totally doable, it's just a matter of programming. That said, there's a couple of key steps I would need to write some proof-of-concept code for, which takes some time. What I might do in the mean time is add an option for block element, allowing you to choose between <div> and <p> internally.

    - Your example doesn't validate as a rich snippet: http://www.google.com/webmasters/tools/richsnippets?url=http%3A%2F%2Fculinaryculture.com%2Frecipe%2FBahn_Mi-by-Mischa_DeHart%2Fr%2C4D&view=

    Not the end of the world, of course, but some testing on that structure would need to be done as well. I won't knowingly ship an hrecipe which doesn't emit a valid rich snippet.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • hRecipe
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic