Lista de temas (legacy)

Esto ahora es un Componente de Tema, el plugin está obsoleto

El nuevo tema es Vista previa de temas en el componente de tema - tema - Discourse Meta

GitHub-Mark-32px Repositorio: obtén el código aquí

Ver más aquí: Pavilion

sandbox Ejemplos: consulta la lista más abajo.

:raising_hand_woman: Solicita una función

:bug: Reporta un error

:heart: Donar: estamos revisando nuestro sistema de donaciones. Por favor, vuelve más tarde :).

:man_technologist: Mantenedores: @merefield

Resumen

Vista previa de temas te permite:

  • Agregar imágenes, extractos, botones y estadísticas de temas a los elementos de la lista de temas; y

  • Cambiar el diseño y el estilo de los elementos de la lista de temas

  • Agregar temas “Destacados” encima de las listas de temas y los propios temas.

  • Agregar el Muro de Usuario a la página de actividad del usuario (también conocida como función “Portafolio”).

Estos ajustes pueden aplicarse a todas o a listas de temas seleccionadas, de forma general para todo el sitio o específica por categoría.

Este conjunto de funciones flexibles te permite crear una variedad de estilos de lista de temas diferentes, incluyendo

Estilo Básico

Ajustes relevantes
  • miniatura de la lista de temas
  • extracto de la lista de temas
  • acción de la lista de temas

Estilo Pinterest (Masonry) alias “baldosas”

Ajustes relevantes
  • baldosas de la lista de temas
  • miniatura de la lista de temas
  • extracto de la lista de temas
  • acción de la lista de temas
  • ancho de la miniatura de la lista de temas
  • alto de la miniatura de la lista de temas

Imágenes destacadas

Ajustes relevantes
  • etiqueta de imágenes destacadas de la lista de temas
  • número de imágenes destacadas de la lista de temas
  • ancho destacado de la lista de temas
  • alto destacado de la lista de temas
  • título destacado de la lista de temas
  • extracto destacado de la lista de temas
  • orden destacado de la lista de temas

Los ajustes principales y de Descubrimiento están en Ajustes → Plugins. Los equivalentes por categoría están en los Ajustes de cada Categoría.

Ejemplos en la naturaleza :seedling:

Más información:

Hay mucha más información disponible en: Pavilion

Colaboradores :raised_hands:

Muchas personas han contribuido al desarrollo de este plugin tanto mediante comentarios como con trabajo de desarrollo directo. En particular:

107 Me gusta
What plugins do you recommend?
Topic list custom view
Display images with topics list
Embed.ly support
2018: The Year in Review
Is there a 'reddit' style discourse theme / plugin?
Discourse as Homepage/Main
News Plugin :newspaper:
The topic list doesn't need a category column
Move tag to a column
Creating a "Featured Categories" homepage banner
Images in posts versus topic-list-previews
Topic content previews
Image miniatures
Sam's Simple Theme
Inbound links don't show up when topic ID is not included
How would I able to list topics as boxes
Discourse as a simple personal blog engine
2019: The Year in Review
How to have topic description on top page
Alter placement of currently selected Top Menu item
Unable to replace topic-list-item.raw.hbs / topic-list-item.hbr on mobile
This theme (or component) msg doesn't go away
Problems with thumbnails from Soundcloud and YouTube oneboxes
Incomplete topic titles beginning with a number can have odd behavior
Visual Video Forum
Onebox topic previews in the topic list
After updating to 2.8.0.beta8, nothing shows as "read" anymore
MD Topic List component
Deals type website UX
Featured Tiles
Show hearts icon from categories view on each topic
Possible to create a news site with pics and videos
Blog Post Styling
Is there a 'reddit' style discourse theme / plugin?
Unofficial plugins management during updates
Facebook-like User Wall?
2020: The Year in Review
How to access Category custom fields in Plugins
Rotating banners
Using Discourse as a social media platform
Update problem help pls
Heeeelp, blank website after rebuild
Error: PG::UndefinedColumn. Custom field not creating column
Displaying Views in Topic view (with no replies)
Discourse Retort
How can I make a Discourse forum as "reddit like" as possible
Pin your favourite topics to the top
Sam's Simple Theme
Category-specific message or pinned topic
Our solution for blurring NSFW content
How do you add the Category column?
Profile, Feature and Explorer grid galleries and friend option
Facebook-like Feed?
Best way to implement Excerpts in topic list?
Changing sidekiq job urgency
Latest view broken on tablet
Is there a media library for looking at all uploaded Images and their URL?
Set the image used for social network sharing?
Set the image used for social network sharing?
Events Plugin :calendar:
Broken images move to tombstone
Need Help imitating a Theme
In-post links to topics - no longer update to the initial posts title
Discourse Setup for KDE
Migrating from FB Groups to Discourse - help with features/functions
Auto-quoting early posts and why its so needed for big communities
How to make a discourse forum look like forum.glamour.de
How do I show a topic description in category view?
How to move the category into a column in 'Latest'
Category descriptions display hyperlinks, but About category topic previews do not
[PAID] Discourse developer/designer to redesign homepage (tight deadline!)
How can I save a topic for offline access/archive purpose?
Replacing Slack by Discourse
CMS for Discourse

OK, all users of Topic List Previews, please take note below.

How to safely update when using our plugins:

Pavilion’s update schedule

Topic List Previews is one of the Pavilion family of open source plugins.

Going forward, Pavilion will focus on ensuring compatibility of a core set of its plugins with Discourse Core tests-passed branch during the first 5 days of every month only.

Any bugs which arise because of an incompatibility will be addressed asap during this ‘supported period’, preferably by the 7th day. Low severity or Beta feature bugs may not be addressed by this date, but obvious things which are ‘breaking’ a forum should be resolved.

This new policy will come into effect 1st May 2020

Why we are introducing this policy

We have no control over changes in Discourse core. That is how it should be. However, as our plugins have grown and become more sophisticated, it is getting more and more burdensome to guarantee they are working with every update of Discourse. It’s becoming untenable to ensure immediate compatibility is maintained.

To give our developers breathing room so they can attend to other priorities in addition to plugin support we will no longer be guaranteeing compatibility with Discourse every day of the month.

This policy should also help you achieve more stability and give you more certainty over when you can more safely update.

How to perform your update

Aim to update your Production Discourse instance (both Discourse core and our plugins) in the first 5 days of every month. Notify us on the relevant Plugin Topic on Meta of any issues you encounter. You will get more focussed support from the Pavilion team on any issues with their plugins during this period.

You update your Production server outside of the first 5 days of the month at your own risk. If you do so and something breaks related to one of our plugins, we urge you to report it and in addition, and if appropriate, uninstall our plugin until it is resolved. Unfortunately we may not get around to fixing it until the next supported period at the beginning of the following month.

For even greater safety

Consider testing your update on your own staging server built from a back-up of your production site. This is especially important if your site is large, popular and/or part of a business.

You can switch this server off for the rest of the month so you don’t get charged for up-time. Use this opportunity to test out all basic functionality to identify any issues with plugins. Report all critical and high issues asap on the relevant plugin topic.

Using a staging site may allow you to have more discretion over when you update, but be aware of the relative lack of support in the latter part of the month.

Thanks for your understanding!

(we will be shortly adding this policy note to all our core plugins and I’ve added it to the OP of this Topic).

8 Me gusta

Is it possible to get the topic list preview thumbnails on ‘latest’ topics in the hybrid view?

1 me gusta

Yes it might be possible by amending this template and adding relevant settings and route support: https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/app/templates/components/latest-topic-list-item.hbs

Because of the lack of space it’s not been prioritised. Recent priority has been to get the known bugs resolved.

That and the fact that I also need to earn a living :wink: It’s not an insignificant amount of work just to keep this plugin operational after breaking changes in core. And the more features you add …

2 Me gusta

OK community, following on from @ozkn’s post would people prefer icons or words for Tiles meta?

ie this as currently:

or update to something more along the lines of this?:

  • Stick with lettering
  • Use icons

0 voters

2 Me gusta

That seems like an obvious trend so …

Can’t promise such a fast turnaround on every new request, but that is done:

image

Enjoy :tada:

I’ve also done some other minor fixes to mobile formatting.

5 Me gusta

thanks for the quick return @merefield

2 Me gusta

FYI everyone. Assuming there are no bugs discovered that are critical or high in severity this is the last day of the month for supported upgrades.

After today, if you intend to upgrade please check compatibility of this plugin in a staging environment.

We’ll repeat the “supported upgrade” period next month in the same 5 day schedule.

Thanks for your understanding.

4 Me gusta

Discourse has released some significant changes to bring native support for thumbnails. This has broken some existing dependencies.

However, this is a good opportunity to simplify the plugin.

I’ll be working to remediate where possible and integrate the new Discourse platform features.

In the meantime TLP is no longer fully compatible with the very latest tests-passed Discourse.

Please do not update your site until further notice unless you are happy to suffer some minor incompatibilities.

The biggest ones I’ve identified so far are:

  • that the hotlink setting will no longer work so make sure it’s disabled. I’ll be removing this feature as thumbnailing has become native.
  • thumbnail picker can show the wrong preview but seems to ultimately still function.

It may take me a while … I’m hoping to have something to show before beginning of next month, hopefully sooner.

9 Me gusta

Is that why after updating the fields like image_url cannot be found in https://meta.discourse.org/latest.json

image

But when using Data Explorer I found it. So why not stay!

Is there a way to handle it manually while waiting for an update?

1 me gusta

Does switching off Hot-linking help?

Updates may take some time. It is now Pavilion policy we do not support Production outside days 1-5 of the month.

3 Me gusta

FYI guys, I’m working on an experimental Theme Component version of the plugin.

It’s missing some features and there are still various issues. Use it for fun, but it’s not supported (yet!)

7 Me gusta

Yesterday I had to rebuild Discourse for other reasons and an upgrade came with it. Seems to be working so far (we are not using hotlinking).

I like the UI improvements showing views and replies in the tiles, thank you very much. I also like the fact that “hearts” appear in the right places and in the right way. I don’t know exactly what has changed, but before they felt too prominent and visible everywhere.

A suggestion: currently the count of hearts relates to the first post only. Would it be possible to show the total number of hearts in the entire topic? It brings the numbers up, also making more justice to the topic (sometimes the first post might have just 1-2 likes but the discussion is very “liked”). It would be consistent with the data on views and replies, which refer to the entire topic.

Oh, and what about not stretching images beyond their size? Currently big images will be reduced to the max width setting (good), but smaller images are forced to have that max width too, which is probably not desired because pixelation. Having the image centered with its own max size would be better imho.

3 Me gusta

This is great! Does this mean that thumbnails will now be served from S3 CDN urls instead of directly from S3?

Thank you so much for all your work on Topic List Previews!

2 Me gusta

Thank you!

That’s something we need to clarify with the Discourse team.

The Theme Component version is being developed to explore the potential to support the emerging extensions to the core API that David has been discussing here.

It is up to Discourse where these come from and how they are handled, as a Theme Component contains no API.

This new extension to the API exposes thumbnails. Historically these were generated by this Plugin. I will be very happy to retire that logic if at all possible, though there may still be work Discourse will need to do to reach the full level of functionality I’d need it to have to do that.

1 me gusta

Thanks for your nice feedback!

I can’t promise that will be easy or performant, but a nice idea!

For Tiles that won’t work because it would look very strange not to have an image taking up most of the tile width. It would look less blurry, perhaps, but would also look a bit messy as you’d introduce arbitrary new vertical edges on the page.

Another solution, if you have a lot of smaller images, might be to increase the number of columns. You can do that with just CSS.

Alternatively, if you are not referring to tiles view, you could easily use CSS to make the non-tiles view thumbnails appear smaller.

1 me gusta

I don’t know if you’re looking for feedback yet, but this is what it looks like on my staging site :crazy_face: I have TLP and Topic Thumbnails disabled.

3 Me gusta

What if smaller images were centered vertically and horizontally within a box to match the size of other posts?

2 Me gusta

Feel free to experiment with your CSS. If you are using the plugin version you should also be able override the topic list item template too in a theme component.

If you get something looking good please share.

1 me gusta

Featured Images Is it image_url or thumbnails?
So does Theme Component version of the plugin solve the current problem?

1 me gusta