Images in title and character length of title


#1

Is it possible to show images in title? Is it possible to increase title character length to more than 255? If not, then how can those be achieved? Plugin, core modification, any ideas? Thanks.


(Joshua Rosenfeld) #2

Are you talking full jpg/png images in the title? That would be a plugin for sure, and likely quite complicated. Depending on where you want this image to display, you may be looking for the Topic List Previews plugin.

That would also need to be a plugin - but this one is simple. See GitHub - jomaxro/discourse-plugin-site-setting-override for an example of how to override a site setting.

Important Note: See Régis’s reply below. This is not a simple plugin anymore due to the size limit in the database.


(Régis Hanol) #3

It’s limited to 255 in the database, so the plugin would have to run a migration and change all places where we made the assumption the title will never be longer than 255 characters.

The real question is: why? Why do you need titles to be longer than 255 characters?