Vor Kurzem aufgerufene Suchen


Keine vor kurzem aufgerufene Suchen

Bruce Michelsen's Avatar

Bruce Michelsen

Beigetreten 15. Apr. 2021

·

Letzte Aktivität 26. Apr. 2023

Folge ich

0

Follower

0

Gesamtaktivitäten

21

Stimmen

0

Abonnement

1

AKTIVITÄTSÜBERSICHT

Neueste Aktivität von Bruce Michelsen

Bruce Michelsen hat einen Kommentar hinterlassen

Community-Kommentar Q&A - Help center and community

In Confluence, try resetting the image to its original size, then entering the desired size in pixels. Avoid using the small, medium, or large sizer buttons.

Kommentar anzeigen · Gepostet 26. Apr. 2023 · Bruce Michelsen

0

Follower

0

Stimmen

0

Kommentare


Bruce Michelsen hat einen Kommentar hinterlassen

Community-Kommentar Feedback - Help Center (Guide)

Katarzyna Karpinska In my case, images did not display due to permissions but because the images could not be attached.

In our system, we are using a third-party app to sync our content to Zendesk. Unfortunately, the app does not replace attachments but creates new attachments on each sync. (I've logged an issue with the sync app provider to replace attachments rather than always adding new attachments with each sync.)

When Zendesk began enforcing an attachment limit, we started seeing pages where the images did not display. It turns out, the images didn't display because they were never uploaded by the sync app to the pages, due to the attachment limit.

Because you cannot select and remove images in bulk when editing an article in Help Guide, I wrote API scripts to determine which pages are over the attachment limit and remove their attachments. (We had to remove all or enough of the attachments so the pages could be re-synced and include the new attachments.)

In my case, the images did not display because the images were not attached.

Kommentar anzeigen · Gepostet 19. Jan. 2022 · Bruce Michelsen

0

Follower

0

Stimmen

0

Kommentare


Bruce Michelsen hat einen Kommentar hinterlassen

KommentarGuide basics

Ouch! These article attachment limits are making it so images do not appear in many of our pages.

Kommentar anzeigen · Gepostet 14. Jan. 2022 · Bruce Michelsen

0

Follower

0

Stimmen

0

Kommentare


Bruce Michelsen hat einen Kommentar hinterlassen

Community-Kommentar Feedback - Help Center (Guide)

End users cannot see images in pages but admin users can see images in pages. What needs to happen so end users can see the images?

Kommentar anzeigen · Gepostet 14. Jan. 2022 · Bruce Michelsen

0

Follower

0

Stimmen

0

Kommentare


Bruce Michelsen hat einen Kommentar hinterlassen

Community-Kommentar Discussion - Tips and best practices from the community

Ashleigh,

  • You're right about the wrapping.
    My editor was complaining unnecessarily or I had made some syntax error that I fixed in tightening this up.
  • Good to see that your script would work if I were using the latest version.
  • I did get this working using my workaround.

Thanks.

Kommentar anzeigen · Gepostet 06. Dez. 2021 · Bruce Michelsen

0

Follower

0

Stimmen

0

Kommentare


Bruce Michelsen hat einen Kommentar hinterlassen

Community-Kommentar Discussion - Tips and best practices from the community

In using this, due to how the code block wrapped lines above, I removed spaces and returns in several lines. For example, I changed this:

var next_url = document.getElementsByClassName("pagination-next-link")[0]
.getAttribute('href');

... to this:

var next_url = document.getElementsByClassName("pagination-next-link")[0].getAttribute('href');

I'm seeing an issue with getting the links in the pagination pages.

  • Using pagination-next-link, I get an error: Uncaught TypeError: Cannot read properties of undefined (reading 'getAttribute')
  • When I inspect the element, I see the class is "pagination-next" rather than "pagination-next-link". (Perhaps this is due to my using an older template.)
  • Using pagination-next for the next_url in the document and in the response, I get a 404 error that next_url is null: https://myhostname/hc/en-us/sections/null

Is the problem that getElementsByClassName has to look at an element within the link tag?

When inspecting the page, I see the following where the class is in the li.

 

If I use the following, then I can get the href out of the a tag within the li with class="pagination-next" for the document:

var list = document.getElementsByClassName("pagination-next")[0];
var next_url = list.getElementsByTagName("a")[0].getAttribute('href');

... and for the response:

var nextlink = next_page.response.getElementsByClassName("pagination-next")[0];
var next_url = nextlink.getElementsByTagName("a")[0].getAttribute('href');

Kommentar anzeigen · Bearbeitet 02. Dez. 2021 · Bruce Michelsen

0

Follower

1

Stimme

0

Kommentare


Bruce Michelsen hat einen Kommentar hinterlassen

Community-Kommentar Q&A - Help center and community

Kommentar anzeigen · Gepostet 09. Nov. 2021 · Bruce Michelsen

0

Follower

0

Stimmen

0

Kommentare


Bruce Michelsen hat einen Kommentar hinterlassen

Community-Kommentar Q&A - Help center and community

Sizing can be done using the style.css file. In my example, I used class="home-page-images". Edit the style.css and search for that. Then you can set width and height. For example:

.home-page-images {
width: 128px;
height: 128px;
}

 

Kommentar anzeigen · Gepostet 01. Apr. 2021 · Bruce Michelsen

0

Follower

0

Stimmen

0

Kommentare


Bruce Michelsen hat einen Kommentar hinterlassen

Community-Kommentar Q&A - Help center and community

You can add images to the categories on the home page by editing the home_page.hbs template file. Look for the

  • inside the {{#each categories}}, then add your code for adding images. 
    For example, here's an excerpt from my code. (Note that I'm using is id instead of is name.)

                



  • {{#is id 360002010174}} {{!-- Getting Started --}}

    {{/is}}
    ...
  •  

  • Kommentar anzeigen · Gepostet 01. Apr. 2021 · Bruce Michelsen

    0

    Follower

    0

    Stimmen

    0

    Kommentare


    Bruce Michelsen hat einen Kommentar hinterlassen

    Community-Kommentar Q&A - Help center and community

    In the home_page.hbs file in your theme, surround the search with if signed_in statements:

    {{#if signed_in}}
    {{search submit=false instant=settings.instant_search class='search search-full'}}
    {{/if}}

    Kommentar anzeigen · Gepostet 18. Sept. 2020 · Bruce Michelsen

    0

    Follower

    1

    Stimme

    0

    Kommentare