Stile dei post del blog

Definitely following. Being able to add a rich visual experience, without losing the ‘to business’ functionality of a Discourse forum will greatly improve our user engagement.

Adding a tag to a post to set it to blog mode seems like a logical and simple way to go.

4 Mi Piace

hi I met some problems, that our blog categaory is not blog-116 but blog/116, so I cannot apply this theme to my forum.
How should i set this set problem?
and this my forum link:https://www.agora.io/cn/community/forum/c/blog/116

1 Mi Piace

Have you tried just blog yet? That should work.

We have a much better way of defining categories now in theme settings. I’ll get the setting updated at some point. Unfortunately, switching to the new method will disable the component until the setting is re-adjusted. I will make sure to warn everyone here when that change is coming.

1 Mi Piace

Yeah I also tried blog but it still doesn’t work, quite strange. And now its blog but still doesn’t show the right one.

1 Mi Piace

That is strange. I just checked my test site and the component is working fine using the slug name. I wonder if it has to do with your subfolder setup. I haven’t ever tested the component in that environment.

Do you see any errors in your browser’s javascript console when you try to visit a topic in the category? You would want to check after setting the blog category theme setting to blog. And are you certain you have added the component to your main theme?

1 Mi Piace

Yeah I’m pretty sure I have added the component to my main theme and settle blog already

2 Mi Piace

Does it work correctly if you set the slug to blog? When I dropped the /116 off the URL, it does take me to blog/116.

Does it work if you disable this theme component? You have 2 theme components where neither one is working. :thinking:

Hi Taylor!

Thank you for this lovely component! I love it.

I was just wondering if the tag component has been added yet?

Cheers

4 Mi Piace

Hey! It has not, but I will bump it up in my priorities. I’ll make sure it gets added in the next couple weeks. I may even have a little time tomorrow next week :crossed_fingers:

EDIT: I have tags working now on my local computer, but have found a few unrelated things I’d like to address before pushing the changes. Thanks for your patience :slight_smile:

5 Mi Piace

You likely already found out a long ago, but it is extremely likely this one: Topic List Thumbnails Theme Component

1 Mi Piace

Looking for the same here. We post from our blog in all categories and we can’t allow a category in order to display posts with blog style.

That theme-component looks very solid and I hope that TAG feature could be finished soon :sunglasses:

3 Mi Piace

Update!

I just pushed a commit that adds Tag support and improves a few styling related things :tada: Please let me know if you notice any issues after updating the component.

Small note - tags you use for blog posts must be visible to all users (not hidden through tag groups). You can alway hide the tag with CSS if absolutely necessary.

cc @Drew-ART @sofi.pocketful @satonotdead

9 Mi Piace

Nice!

On updating on the hosted instance with the default theme the following errors are popping up:

Error: Undefined variable: "$blog-tag". on line 80 of mobile.scss >> $values: $blog_tag; -----------^
Error: Undefined variable: "$blog-tag". on line 77 of desktop.scss >> $values: $blog_tag; ---------^

Doesn’t seem to have broken previous functionality though

Edit add: This went away after I added a tag, now the blog post styling is working but the image is not appearing, I earlier thought this was an issue with private tag groups, but doesn’t seem to be the case.

2 Mi Piace

This is an odd bug in core we’ve been meaning to look into. For some reason there seems to an issue where it’s expecting a - instead of an _ in the variable name. The workaround at the moment is to make an adjustment to the theme settings as you figured out.

Thanks for reporting this! There was a flaw in the logic that was preventing the tags from being fully evaluated. It should be fixed if you update again.

4 Mi Piace

Wow, that’s a very cool toy i’m going to spend today playing with. Thank you for your great work :slight_smile:

3 Mi Piace

I spotted a bug where, if I use either the category or tag based system,
If within a <div align="center"></div> tag there are uploaded images (not hotlinks, hotlinks work) then they are rendered in the preview but not after posting, sometimes they appear for a couple of seconds after posting but disappear soon after

2 Mi Piace

That’s an interesting edge case! It should be fixed with:

Let me know if you happen to notice any issues after updating.

4 Mi Piace

Works, thanks a ton! Wishing you a great time!

3 Mi Piace

Quando abilité “nessuna immagine”… ho perso 1 immagine nel mio post.

1 Mi Piace

Sembra che questo componente del tema non venga aggiornato molto in questi giorni e l’elenco delle cose da fare sembra includere il mio problema (DiscoToC), ma ho pensato di menzionarlo comunque nella speranza che ispiri alcuni aggiornamenti qui. :grin:

Sembra che Blog Post Styling e DiscoTOC siano fondamentalmente incompatibili, almeno con la larghezza del sito che ho. Il ToC si sovrappone al testo e non ho trovato un modo chiaro per affrontare questo problema solo con CSS (anche se sono tutt’altro che un esperto di CSS!).

Ho provato a usare il tema predefinito e a rimuovere le mie personalizzazioni CSS e il problema persiste. Ma non appena disabilito Blog Post Styling, si risolve e il ToC appare nel posto giusto. Mi piacerebbe molto poter usare entrambi insieme, però.

Ho disabilitato DiscoToC per ora, ma puoi vedere il mio sito (con tema personalizzato) qui, se può essere utile:
https://garden.oshyan.com/
Se può essere utile che io riattivi DiscoToC in modo che tu possa vedere questo accadere dal vivo, fammelo sapere.

2 Mi Piace