Creating and editing articles in the knowledge base

Return to top

40 Comments

  • Ifra Saqlain
    Community Moderator
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    Hi Tim Fischer,  you can try this, wrap your images inside an anchor tag and add a download button:

    <a href="/hc/article_attachments/13813591750036" target="_blank" rel="noopener"> 
        <img src="/hc/article_attachments/13813591750036" alt="Dew drop">
      </a>
      <br>
      <a href="/hc/article_attachments/13813591750036" download="Q1"> 
        <button type="button">Download</button> 
      </a>


    Screenshot for the same:



    Note:
    href="/hc/article_attachments/13813591750036",
    src="/hc/article_attachments/13813591750036"


    this path (/hc/article_attachments/13813591750036) creates automatically when you insert the images into article, just copy this and update your code as I shared above and then replca emy path with your copied path.

    Q1 : Q1 is name of the image which is downloaded via button.

     

    Try this and let me know if it solves you query.

    Thanks :)

    0
  • Pete Graner

    Is it possible for code blocks to have a copy button that will copy the text of the code block and put it on the system clipboard. We have numerous steps for troubleshooting on the command line and our customers are asking for a one click button so the can paste into their command line.

    Thanks

    0
  • Ifra Saqlain
    Community Moderator
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    Hi Pete Graner,

    To add a copy button for code blocks, you can try this:

     

    Copy the given code snippet and paste it to your template where you wanna add code blocks.

    <pre>

    <h1>Title of the document</h1>

    <button onclick="copyTextOne()">Copy</button>

    <script>
    function copyTextOne() {
    /* Copy text into clipboard */
    navigator.clipboard.writeText(`<h1>Title of the document</h1>`);
      }
    </script>

    </pre>

     

    The given code is for one code blocks just a demo. you can create more pre tags with your code but every time your copyTextOne() function will not be same name, it should be copyTextTwo(), copyTextThree(), etc..

     

    happy to help :)

    Thank You

     

    0
  • Pete Graner

    Hi Ifra Saqlain,

     

    Thanks for the prompt reply. Unfortunately doing that for each code block will be a real pain for 100's of articles. I was hoping for something that could be put in the site theme or some similar method.

    Looking at the raw html view it seems the code blocks use the <pre></pre> tags. I was hoping for some something like Zendesk has in the Guide Admin Interface -> Settings ->Search Settings->Crawlers -> Edit crawler  on the Meta Tag field. Just a simple button that would copy the text.

     

     

    0
  • Ifra Saqlain
    Community Moderator
    Most Engaged Community Member - 2022
    Most Engaged Community Member of The Year - 2021

    Okay, I'll give it a try and let you know soon :)

    0
  • Ani

    Hi, I am trying to publish this french article (see screenshot). It shows as 'published' but I am unable to view it as a non-logged in user. As you can see the setting is visible to everyone and I don't see any errors in the article settings. Why is the article not visible then? Please help.

    0
  • Arianne Batiles
    Zendesk Customer Care

    Hi Ani,

    I created a ticket on your behalf, and I’ll continue to assist you from there. Kindly check your email for updates. Thank you!

    1
  • Mary Paez

    Did you also check the Managed by Setting as well as Visible to property?

    1
  • Jane M Langschied

    A few questions: 

    1. Can 2 people edit articles at the same time? 

    2. Will there be an alert/message that pops up when multiple people are trying to edit the same article?

    3. Will there be an alert/message that pops up when someone clicks on save > publish and there is another person editing that article?

    0
  • Arianne Batiles
    Zendesk Customer Care

    Hi Jane M Langschied,

    1. Can 2 people edit articles at the same time? Yes but we don't recommend since this can cause conflict.

    2. Will there be an alert/message that pops up when multiple people are trying to edit the same article? No 

    3. Will there be an alert/message that pops up when someone clicks on save > publish and there is another person editing that article? No, but if there's a conflict between users, it's possible that the changes won't be saved (ex. when two users saved changes at the same time). 

    0

Please sign in to leave a comment.

Powered by Zendesk