Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Adriana Cerqueiro 38 posts 177 karma points
    Aug 01, 2018 @ 08:08
    Adriana Cerqueiro
    0

    TemplateId returns a value even without a template

    Hi community!

    I am having a weird problem or maybe it's something that now works this way.

    I am working with 7.11.0 and at some point, a Doctype had an approved template. Then a few days down the road, we decided that it didn't need the said template so I cleared the approved templates list.

    Nevertheless, if I click on the backend link in a node with that Doctype, it renders the template that it used to have assigned. Also, if I request TemplateId it returns said template Id. Shouldn't it return 0?

    Thank you for any help or insight you can share

    Have a great day! =)

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Aug 01, 2018 @ 08:13
    Alex Skrypnyk
    0

    Hi Adriana

    I think you have to resave each node, without an assigned template. Can you try?

    Thanks,

    Alex

  • Adriana Cerqueiro 38 posts 177 karma points
    Aug 01, 2018 @ 08:35
    Adriana Cerqueiro
    0

    Hi Alex, I already did thay and also I republished the entire site just to be safe.

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Aug 01, 2018 @ 08:44
    Alex Skrypnyk
    0

    And what is the result?

  • Adriana Cerqueiro 38 posts 177 karma points
    Aug 01, 2018 @ 10:44
    Adriana Cerqueiro
    0

    Sorry! I thought I finished the sentence! It didn't work. It is still detecting the template, despite that on the "Info" tab on the "Template" property it says "Choose..." and there is nothing to choose from.

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Aug 01, 2018 @ 12:48
    Alex Skrypnyk
    0

    so if you save node with "Choose..." selected - node returns Id of a template?

    How do you call templateId?

  • Adriana Cerqueiro 38 posts 177 karma points
    Aug 01, 2018 @ 13:08
    Adriana Cerqueiro
    0

    Correct, it returns Id of a template. That template is currently being used by other Doctypes

    @Model.Content.TemplateId
    
  • Adriana Cerqueiro 38 posts 177 karma points
    Aug 16, 2018 @ 16:27
    Adriana Cerqueiro
    0

    Any ideas? =(

Please Sign in or register to post replies

Write your reply to:

Draft