이 컴포넌트를 사용하면 카테고리 페이지에 "카테고리 미리보기"를 추가하여, 실제 카테고리에 접근 권한이 없는 사용자에게 해당 카테고리가 존재한다는 사실을 보여줄 수 있습니다. 미리보기는 표준 카테고리와 유사한 형태로 보이지만, 사용자가 접근 권한을 얻는 방법에 대해 안내받을 수 있도록 지정된 페이지로 링크할 수 있습니다.
아래에 간단한 예시를 포함했지만, 이 컴포넌트를 구성하는 방법은 매우 다양합니다. 테마 설정에 포함된 모든 정보를 반드시 읽어 주시기 바랍니다.
Oh, I like this, we just implemented special interest groups this week and we’ve had questions on how people would be able to find them. We do use box category styles, so would request that for sure.
Anon users will not be able to see inside the real, restricted category. They will only see the category preview. Staff can see/access everything. Here’s a breakdown of a hypothetical category list:
Staff User (always sees both)
Restricted Category
Restricted Category Preview
Public Category
Anon User (only ever sees the preview)
Restricted Category Preview
Public Category
Logged-in User with access to restricted category (preview not needed, so never shown)
Just here to confirm that this works great with sites that have categories available to anonymous users, and others for logged-in users only. You can use the previews as a push to sign up.
Hmm, I’m not getting the same behavior. I just tried running through the demo steps and everything appears to be working properly:
Just to be clear, the demo on our theme-creator site is just a demonstration of a use-case. You will need to install it on your own site using the installation steps at the end of the OP.
So now, can you explain how use that please. English is not my native langage so its complicated.
Lets say i want to convert a public category in restricted category. Its possible ?
So can you give an example to put instead “Add item…”. Tell me if i right ?
category-slug : Name of category we want restricted
Preview name : Example : My restricted category
Preview Description : Exemple : “This a a restricted category”
URL : https://example.com/c/category-slug /12
Group : Its for group name who access to the restricted category.
If it helps, here is what I have in my theme setting for the demo:
junk~restricted category preview~This category is only available to members of the "joinable-group" user group. Select for more information.~https://theme-creator.discourse.org/pub/logged-in-user-access~joinable_group
And how it relates to the description of the theme setting:
Theme Setting Part
Value
category-slug
junk
Preview Name
restricted category preview
Preview Description
This category is only available to members of the "joinable-group" user group. Select for more information.
1 : How build URL ?
2 : When we write the settings close to “category previews” after i confirm that. Its finish ?
3 : I did that but impossible to see the private category. I need to create that manually or not ?
Groupe privee가 이미 생성된 카테고리라고 가정할 때, 해당 카테고리의 슬러그(slug)를 찾아서 사용해야 합니다. 아마도 group-privee와 같은 형태일 것입니다. Groupe privee 카테고리로 이동하여 브라우저의 주소 표시줄을 확인하면 이를 검증할 수 있습니다. 예를 들어, 여기 Mete의 Customization > Theme 카테고리에서는 theme를 슬러그로 사용합니다:
If i understand correctly, the category must be created earlier ? I tried with existing category and same thing, nothing happen.
Yeah, i spoke about of URL in the categroey preview. How we build this URL ? Or if we need to create the category before, so i take the URL which is created by discourse.
Your forum is using boxed categories, so it will not work. From the original post:
The first part of your setting (Group privee) needs to be the slug of an existing, public category. The preview will display above this category. It should not be the name of the category you are trying to preview.
It doesn’t look like URL you are using (https://forum.objectifhijra.com/pub/logged-in-user-access) is a real published page. You would need to create a published page using the instructions at Page Publishing and use the generated link to that page.
Make sure you actually have a group with the name groupe_joignable
Unfortunately, I’m not sure how much more I will be able to help you. It’s fairly difficult to explain on its own and I think our language barrier isn’t helping. What I might recommend is posting in our Marketplace category to see if you can hire someone to log into your site and help you directly.
I just learned about this theme component and am excited that it may streamline some workaround hacks I’d been using. A couple questions that I couldn’t tell if were just beyond my understanding of how things work, or haven’t been created yet:
Should anonymous (not logged-in) users be able to see the category preview item in the /categories listing? I was hoping that they might see what’s available to encourage them to create an account, but in my tests so far I haven’t been able to make that happen.
Are admins able to see the category preview even if they’re in the specified group that shouldn’t see it? I am in group-x as specified in the string, but am still seeing it above the actual restricted category.
Absolutely, that’s one of the most important scenarios this component should be covering! Can you make sure you are using the slug of the category the preview should appear above? In case it’s helpful, this post breaks down the settings a bit more than the OP.
Yes, I wanted to make sure staff (mods/admins) always see the preview so they are always aware of it’s existence and placement. It’s best to use a test user account when testing out component.