About Guide templating

Have more questions? Submit a request

5 Comments

  • Rona Yang
    Comment actions Permalink

    I'm trying to upgrade my template to V2- I've replaced all of the deprecated helpers, but have the following 3 errors left...  how do I go about fixing this? 

     

     

    0
  • Augusto Silva
    Comment actions Permalink

    Hi Rona,

    Happy to hear you're upgrading to V2.

    In V2, we have improved validation for helpers resulting in these errors.

    To solve this errors, you need to check if you are using these helpers together with a conditional.

    You shouldn't need to use conditionals with these helpers as they render HTML only when available.

    Hope this helps

    0
  • Rona Yang
    Comment actions Permalink

    Hi Augusto Silva - do you mean I should just be able to delete this line of code? It was a developer who created a new template for us, so I don't have any background on what they did. How can I check if these helpers are being used with a conditional? 

    0
  • Augusto Silva
    Comment actions Permalink

    Hi Rona,

    You'll need to remove the {{#if in those lines. You can check the Copenhagen theme template as an example.

    I would also suggest reaching out to the developer to see if there's a new version of the theme using V2 or if they can help you out with the upgrade.

     

    0
  • Chen Arbel
    Comment actions Permalink

    Hi Augusto Silva, in continue to Rona's question.

    I removed the "if"/"isn't" to resolve the errors, but isn't if affect the theme's logic somehow?

    Additionally, Some CSS is breaking on the new version, are you aware of CSS bugs? I.e 'follow' button on the new version has the SAME CSS as in the old one, but it looks like it doesn't apply.

     

    Thanks! Chen

    0

Please sign in to leave a comment.

Powered by Zendesk