Editing the article's author, date, and timestamp

Return to top
Have more questions? Submit a request

53 Comments

  • Merav B

    Hi Jessie,

    I am told we are on a plan called "Plus"

     

    0
  • Laura Hippert

    Hi Merav, Plus would be the Support plan that you have, what you would be looking for would be the Guide plan. However - if your Help Center is heavily customized, it's quite possible you would not see all the same features. This is a more recently released feature that would be only be available on newer Copenhagen themes. Once you have customized your theme, in an effort to not break your changes, we will not make updates to your theme. 

    If you want to see the feature, you can create a new test theme and view the options there!

    0
  • Merav B

    Hi Laura,

    OK, got it. Would you be able to please tell me how do I find out what "Guide" plan I am on?

    thanks!

    0
  • Heather Rommel
    Community Moderator

    It should be under Admin -> Settings -> Subscription  

    0
  • Abdul A

    Hi Team,

             How can I remove my name from the KB articles? When I use the search option within help center, I get the list of articles but each article has my name as an author? Please help.

     

    0
  • Nicole S.
    Zendesk Community Team

    Hi Abdul -

    Did you follow the steps in the article above? If you did and it didn't work, can you tell us more about where you got stuck?

    0
  • Abdul A

    Hi Nicole,

          I have used <1--     --> tag to disable the whole section (name and avator), but the page after a refresh is still showing my name. I removed this code section and still page is showing my name.

     

    0
  • Dan Ross
    Community Moderator

    Hi Abdul - do you have a sample public page that we could look at? If you removed the code entirely from the article template, that should remove it from the Guide.

    Are you working on the live copy or have you published your changes from a sandbox theme?

    EDIT: It looks like the comment formatting for Guide is different than standard HTML.

    Try {{!-- ... --}} instead.

     

    Thanks

    0
  • Abdul A

    Hi Dan,

             I updated the search_page.hbs page by commenting out the author and date sections to disable author name and date created in the search results and that was my main question. In the article, I do not see my name as an author, which is good.

            The support page is not live at this time but I was able to confirm the changes from a sandbox theme.

    Regards, Abdul

    0
  • Danny Koss

    Hello! On the article page, is it possible to replace the author's name with the name of the agent who last edited the article?

    0
  • Brett Bowser
    Zendesk Community Team

    Hey Danny, 

    It looks like Sebastiaan replied to your other post here.

    Hope this helps!

    0
  • Nicky Lilja

    Hi everyone, I am hoping you can help me out. 

    My Team wants us to have not only last updated time ago. But the actual date when it was updated.

    Especially, for our Service Status articles where we post service incidents. 

    Currently we have:

    But would like to have last updated 13 July 2019. Is this possible? 

    I have searched around on the community but not found anything? 

    0
  • Sebastiaan Wijchers
    Community Moderator

    Hello Nicky,

    When you edit 'article_page.hbs' as described in this article, you'll find this around line 53 (when using the default Copenhagen theme):

                  {{#is article.created_at article.edited_at}}
    <li class="meta-data">{{date article.created_at timeago=true}}</li>
    {{else}}
    <li class="meta-data">{{date article.edited_at timeago=true}}</li>
    <li class="meta-data">{{t 'updated'}}</li>
    {{/is}}

    You can remove the two occurrences of 'timeago=true' to display an absolute date, instead of a relative one.

    You can also modify the format as documented here, so you can have it include the time when you choose 'long' or 'full'.

    With kind regards,

    Sebastiaan
    Sparkly ⭐

    0
  • Elena Barmina

    Hi,

     

    I'm currently on a task to change the article page (article_page.hbs) so that it displays "date edited" timestamp below the title.

    What I'd like to do is to add a line that would hold this variable, so that the top of the article page looks like, for example, this very page but without the author's avatar and name:

    We using a customized theme that does not have the <div class="article-author"> from the default theme. I tried adding it back by copy-pasting it from the Copenhagen theme but got an error that "settings.show_article_author cannot be accessed" (probably, due to customizations?). I believe the changes cannot be saved with the errors in effect. But I don't really need the author information, just the date.

    Can someone with the the knowledge of the "theme customization" magic guide me through this, at least at a high level? Bullet points for what needs to be done to get this working?

    0
  • Simon Celen
    Community Moderator

    Hi Elena Barmina

    You're right that the settings.show_article_author bit doesn't work due to that particular setting not being in your customized theme. The error prevents the changes from being saved.

    If you don't need the article's author then you can just take a part from code you copied from the Copenhagen theme:

    <ul class="meta-group">
    {{#is article.created_at article.edited_at}}
    <li class="meta-data">{{date article.created_at timeago=true}}</li>
    {{else}}
    <li class="meta-data">{{date article.edited_at timeago=true}}</li>
    <li class="meta-data">{{t 'updated'}}</li>
    {{/is}}
    </ul>

    It doesn't use any new features so you should be able to simply paste it in under your article title. However, the text would be different from your screenshot, f.e. for an updated article:

    You also will need to make CSS changes and/or change the class on the UL element above for it to look right. It depends on your specific theme.

    To get the text exactly like your screenshot you could instead try using:

    <div class="article-updated meta-data">Edited {{date article.updated_at timeago=true}}</div>

    However the "Edited" word would not be translated. If you need translation I would suggest to use:

    <div class="article-updated meta-data">{{t 'updated'}} {{date article.updated_at timeago=true}}</div>

     

    Hope that helps!

    1
  • Elena Barmina

    Simon Celen

    Thank you very much! Really appreciate the level of detail.

    I went with a separate div suggestion - worked perfectly.

    ~Elena

    0
  • Sarah Crespo

    Hello,

     

    I tried editing using this syntax {{date edited_at timeago=true}} but our search result is still showing the time the article was created not updated. How do I address this?

    0
  • Trapta
    Community Moderator

    Hi @Sarah, try replacing edited_at with created_at and let us know if it helps.

    Team Diziana

    0
  • Sarah Crespo

    I tried created_at. It is still not working.

    0
  • Sarah Crespo

    Second follow up on my issue. Please help.

    0
  • Sebastiaan Wijchers
    Community Moderator

    Hello Sarah,

    Is your Help Center publicly available? If so could you link it so we can have a look at it as 'end user'?

    With kind regards,

    Sebastiaan
    Sparkly ⭐

    0
  • Bradley Weismann

    We have the code configured as shown in the article above for an internal-facing Help Center, however it's pulling in the Agent/Author aliases instead of their profile names. We have "enable alias" disabled under Gather Settings as well. 

    0
  • Marie Capy

    Hello, 

    My articles still show with the creation date, whereas I checked the code and it seems to show the Update date : 

    My article (Updated today) :

     

    My code, in article_page.hbs: 

     

    Can you help ?

    Thanks!

    Marie

    0

Please sign in to leave a comment.

Powered by Zendesk