danpros / htmly

Simple and fast databaseless PHP blogging platform, and Flat-File CMS
https://www.htmly.com
GNU General Public License v2.0
1.09k stars 264 forks source link

[FEATURE REQUEST] change post type + default image behavior #812

Open Joduai opened 2 months ago

Joduai commented 2 months ago

While adding new content - mostly image posts - I have to set default image right away. Otherwise I cannot save such post.
This led me to conclusion, that without setting featured image in image type of post right away, saving the post should set default image taken from config options (afair htmly logotype is set as default one).

This idea can't of course be added to other type of pages like video, audio etc. but once I wrote some content, and change my mind for type of post, I have to copy the content and start from the beginning with creating new page type. Thus having a possibility to change page type during edit would come in handy. The more, changing it later after publishing would also be nice. Especially between regular and image types of post.
From the other hand until the featured image wouldn't be chosen, saving the image type of post could set its type to regular post.


Second thing, more a quality of life change, is that featured image field is non editable. I need to use "insert img" function, and then I can enter by hand the path to img. Unfortunately when I miss the path or name I can't correct the error in file path because url field is cleared out. Since we got markdown text editor, we got used to entering urls and img paths by hand. Why not having such possibility with image field like video and audio type of pages have?

danpros commented 2 months ago

Have had an idea for a long time to make this easier but it has not been realized. For example, we can simplify it, in regular posts we can or add/remove image, video etc.

Why not having such possibility with image field like video and audio type of pages have?

Yes this is a good idea.

Joduai commented 2 months ago

simplifying the workflow even more by getting rid of page types at start, and just add some kind of a dropdown list in page options to choose from? Like set your preferred featured header: [image][video][audio][quote]"?

If only this wouldn't affect default functions used in themes, that would be great. I mean all loops used to display articles on index/blog page.