Textpattern CMS support forum

You are not logged in. Register | Login | Help

#11 2018-11-08 10:33:09

etc
Developer
Registered: 2010-11-11
Posts: 2,936
Website

Re: Image uploading (Single and Multiple)

Okay, that was funny to do. Now dragging files on article body uploads them as images and inserts txp tags at the last cursor position. You still need to save the article.

I have only tested it in FF, feedback welcome.


etc_[ query | search | pagination | date | tree | cache ]

Offline

#12 2018-11-08 19:01:10

svecis
Member
Registered: 2018-11-04
Posts: 10

Re: Image uploading (Single and Multiple)

etc wrote #315077:

Okay, that was funny to do. Now dragging files on article body uploads them as images and inserts txp tags at the last cursor position. You still need to save the article.

I have only tested it in FF, feedback welcome.

Yeah, this is a working example and it’s great. Thanks @etc. This is really what I was hoping for.
Now you could perhaps add settings for how multiple images can be shown in a row, but I’m totally satisfied with how it works for now. It’s resposive too. The max width is always body width, so this works too.

And if you ask me, than your plugin should be not only a plugin, it should be core for the next version. this is really something, which is fundemental in my eyes for blog posting cms be it lightweight or not.

@etc you have done a great work, I cannot thank you enough…

Offline

#13 2018-11-08 20:31:37

etc
Developer
Registered: 2010-11-11
Posts: 2,936
Website

Re: Image uploading (Single and Multiple)

svecis wrote #315101:

Now you could perhaps add settings for how multiple images can be shown in a row

A nice thing is that you can configure the upload (currently only by editing the plugin) in any way you like. Say, create some image galery form with any layout you desire, and the plugin could insert on upload something like

<txp:images id="[uploaded_images_ids]" form="galery" />

But you need to learn few Textpattern tags and a bit of CSS to be at ease.

And if you ask me, than your plugin should be not only a plugin, it should be core for the next version. this is really something, which is fundemental in my eyes for blog posting cms be it lightweight or not.

The problem with the core code is the future backward compatibility. If you don’t plan it well enough, it’s a pain to change once it is released. But many plugins are partially or totally absorbed by core after a thorough testing.

@etc you have done a great work, I cannot thank you enough…

I’ve learnt few funny things, thanks for the idea.


etc_[ query | search | pagination | date | tree | cache ]

Offline

#14 2018-11-09 07:59:38

Destry
Moderator
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,009
Website

Re: Image uploading (Single and Multiple)

svecis wrote #315101:

This is really what I was hoping for . . . @etc you have done a great work, I cannot thank you enough…

Oh, I’m sure you can, and it will go to the right place.


The text persuades, the *notes prove。

Offline

Board footer

Powered by FluxBB