🗃 Category List Widget

I’m confused about the options for custom links:

Add custom links to the category sidebar.
Format (comma seperated): name, icon url, link url, options
Options (colon seperated): location: 'above' or 'below', default: 'above';
new_tab: 'true' or 'false', default: 'false';

I want the custom link to appear below the category list, but it’s appearing above the list and it doesn’t open in a new tab.

How should the options be written?

In that case you’ll want

Label,/icon.png,/path,location:below;new_tab:true

hm, yes the instructions are not the best. What change to the instructions would you recommend there to better convey what’s needed?

Great that works, thanks!

Maybe “options separated by semicolon, variables separated by colon” with the example you gave here? The example is helpful.

4 posts were split to a new topic: [Category List Widget] Custom lock icon and Pavilion sidebar style

Any idea if the Category List Widget is compatible with this Theme Component?

https://meta.discourse.org/t/category-previews/155296

I’m after a way for users to know of the categories that they cannot access (and how to get access), but that leverages the awesomeness of this Layouts Widget.

How could I hide custom links from unregistered users?

@Zup

You can add this CSS:

html.anon {
  .layouts-custom-link {
    display: none;
  }
}

Another way is to limit the Widget to trust_level_0 in the Layout settings - this means you don’t have to hack the CSS.

image

I don’t want to hide the entire widget, I only want to hide specific custom links in the category list widget.

Bug - double hover

This happens when the CLW is full left and minimised:

image

Was impossible to get a screenshot of! Yay for mobile phones, eh