Will you provide header/footer on an article template?

3 Comments

  • Ryan McGrew
    Comment actions Permalink

    Hey Mary,

    You may want to consider adding this directly to the article_page.hbs template in your theme to make it more centrally managed. 

    Beyond that we are currently working on functionality right now to create blocks of content that are reusable across articles to make it easier to manage scenarios like your own. We are hoping to have more information about that in the next few months. But in the mean time, working with your theme is probably the most efficient way to achieve what you're looking for. Some example code might look something like lines 72 to 74

    Thanks!

    1
  • Mary Paez
    Comment actions Permalink

    I'm asking for a more global setting for ALL articles.  It doesn't make sense to do this one article at a time.  It would be nice to have a header and footer template that you could apply to all existing articles. New ones would get the header/footer from an article template with KCTemplate label.

     

    Would this have to be done using the API?

     

    0
  • Ryan McGrew
    Comment actions Permalink

    Hey Mary,

    Placing this into your theme would apply it to all articles on your site. You won't need to use the API, but it does require you to edit your theme and customize some of the HTML in the template. I gave a very simple example in the code snippet above. You can even use multiple article templates if you'd like to have different headers or footers across different articles.

    As I said, we're also working on re-usable snippets of content that can be used across articles as well. This will be accessible in the editor and will allow you to embed these blocks of contents into many articles. We'd eventually want to integrate templating functionality as well but the suggestion above of a theme customization might be the most expedient method for you and your team right now.

     

    Thanks!

    0

Please sign in to leave a comment.

Powered by Zendesk