Forum Discussion

CarolineS's avatar
2 months ago
Solved

View logged out text keys?

Hi all,

Trying to find the text key for a specific button that only appears for logged-out users (Community Classic). I know how to do the "show text keys", but I only know how to do it when logged in.

I found this thread, but it's not helpful: View logged out text keys | Atlas

Specifically, I'm looking for the text key for the "Comment" link that appears on blog posts when not signed in. I found the key for "You must be a registered user to add a comment..." text, since that's easy enough to search for. But the "Comment" link is basically impossible to search for since the word "Comment" is so generic.

I'll file a support case too, as I suspect this may require their help.

Cheers!

  • Confirmed w/ support that there's no way to view the text keys for things that are only visible to logged-out users.

    Support did go the extra mile to find the text key for us (by painstakingly searching the available keys & testing, just like I would have had to). This specific text key is: blog.articleactions.comment-on-this-button.title. HOWEVER - note that the same text key is used for "Comment" buttons/links for both anonymous and logged-in users.

10 Replies

  • CarolineS's avatar
    CarolineS
    Boss
    2 months ago

    Thanks Claudius! I agree that that would be over-the-top… but I’m tempted :)

    We did come up with some wording that works ok with “comment” as the link. Better than the default words at least!

     

  • Claudius's avatar
    Claudius
    Boss
    2 months ago

    Unfortunately, the ability to Set the scope of a text key doesn't allow scoping for user state.

    A bit over-the-top handling of this would be to create a component "wrapper" by overriding this comment component and output your desired message for anonymous users:

    <#if user.anonymous>
        <#-- custom message (and panel HTML)-->
    <#else>
        <@delegate />
    </#if>

      

  • CarolineS's avatar
    CarolineS
    Boss
    2 months ago

    Now I'm trying to display different text for logged-in and logged-out users using just one text key. Not sure if this is possible. 

    Tried a couple of variants of:

    blog.articleactions.comment-on-this-button.title = #if $user.anonymous\n Sign in\n #else \n Comment\n \#if

    But it doesn't work; I guess only variables / scoping syntax can be used in text keys?

    Ha, I don't think this would go over well. Or maybe our (generally techie) users would get a kick out of it :)

     

  • LarryI's avatar
    LarryI
    Khoros Expert
    2 months ago

    CarolineS We are working on this right now for Aurora, actually. It's going to be a screen in the Designer > Community Text page that will allow you search for the text and update it.

    For Classic, we won't improve upon the existing experience unfortunately but it is planned for Aurora to release in Q2 2025.

    For anyone seeing this that is still on Classic having trouble finding a text key, please submit a support case and we will help you find what you need quickly!

  • Thanks for the confirmation, Shaun. Seems kind of silly that we have to do this, but I don't imagine anyone will improve it on Classic. Perhaps Aurora will have a better system (either now or in the future!)

  • Shaun's avatar
    Shaun
    Khoros Staff
    2 months ago

    I've only ever been able to do this via searching. If it exists in multiple places, then I have to see if each location has a unique text key name, and trying and extrapolate based on this name. Then I would need to change it on Stage and test the result via trial and error. 

  • Confirmed w/ support that there's no way to view the text keys for things that are only visible to logged-out users.

    Support did go the extra mile to find the text key for us (by painstakingly searching the available keys & testing, just like I would have had to). This specific text key is: blog.articleactions.comment-on-this-button.title. HOWEVER - note that the same text key is used for "Comment" buttons/links for both anonymous and logged-in users.

  • CarolineS's avatar
    CarolineS
    Boss
    2 months ago

    Hi jonesannak -

    Yes, I did try that - and there are so many results with "Comment" that I wasn't sure which one it would be (and also hoping for a key that's specific to the anonymous user messaging 🤞)

    Cheers!

  • Hi CarolineS ,

    Have you tried searching by the term in Studio using Text Editor --> Community Text --> Search for a text key ?

    Unfortunately, I suspect that the text key on the logged out page is the "general.Comment" text key, and you'd probably need to localize it to change it:

    This is just a guess though - other folks and/or Khoros support may have more suggestions.  It's a little less precise than the "show text keys" option.


    Thanks!