Textpattern CMS support forum

You are not logged in. Register | Login | Help

#71 2018-04-16 12:05:11

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

Re: Testers needed: flat development (4.7+ only)

Hi Patrick, thanks!

Pat64 wrote #311064:

Do you project to rename this css.php file (into asset.php for example) and/or the <txp:css /> tag itself now that it can handle all kind of text file content?

Rename we can not (the backwards compatibility…), but a new name would be fine and easier to manage. But this requires a new Assets pane, new strings, some extra coding/testing, hence extra time. So consider this flat functionality as experimental atm and don’t rely on it in production.


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

Offline

#72 2018-04-16 12:51:50

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 6,768
Website

Re: Testers needed: flat development (4.7+ only)

Hi Oleg,

I am testing this and works wonderfully. I can fully understand the problem re big changes for now. Hopefully the semantics of the functionality will be included in 4.8.


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github

Offline

#73 2018-04-27 05:40:20

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 6,768
Website

Re: Testers needed: flat development (4.7+ only)

The Reset button in the images seems slightly confusing before first use. Is it possible to have it hidden before an image for upload is selected?


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github

Offline

#74 2018-04-27 06:57:12

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 3,049
Website

Re: Testers needed: flat development (4.7+ only)

The upload button could also be hidden until something is selected IMO.

Offline

#75 2018-04-27 07:08:33

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 6,768
Website

Re: Testers needed: flat development (4.7+ only)

philwareham wrote #311461:

The upload button could also be hidden until something is selected IMO.

The Upload button is not as much of a UI problem to me as it indicates that the image will be uploaded only after it is selected and the button is clicked. Without it, some may think that the image will be uploaded on selection…

These are of course very minor observations and after a single use, these functions become very apparent.


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github

Offline

#76 2018-04-27 08:18:34

philwareham
Core designer
From: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 3,049
Website

Re: Testers needed: flat development (4.7+ only)

colak wrote #311462:

The Upload button is not as much of a UI problem to me as it indicates that the image will be uploaded only after it is selected and the button is clicked. Without it, some may think that the image will be uploaded on selection…

OK, good point.

Offline

#77 2018-04-27 08:19:55

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 1,502
Website

Re: Testers needed: flat development (4.7+ only)

philwareham wrote #311461:

The upload button could also be hidden until something is selected IMO.

I agree with Colak on this. It makes the sequence of actions clear. The “Reset” button… hmm, maybe, not so sure though. After a first (batch of) upload, the input field still keeps the data, so it should be possible to clear it.

Offline

#78 2018-04-27 09:51:16

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

Re: Testers needed: flat development (4.7+ only)

colak wrote #311460:

The Reset button in the images seems slightly confusing before first use. Is it possible to have it hidden before an image for upload is selected?

philwareham wrote #311461:

The upload button could also be hidden until something is selected IMO.

Wrong thread, gentlemen! :-) Still, the Reset button is a standard <input type="reset" /> that applies to the whole upload form, not only fileinput. I’d leave its management with browsers.


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

Offline

#79 2018-04-27 13:19:04

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 6,768
Website

Re: Testers needed: flat development (4.7+ only)

etc wrote #311469:

Wrong thread, gentlemen! :-) Still, the Reset button is a standard <input type="reset" /> that applies to the whole upload form, not only fileinput. I’d leave its management with browsers.

Fair enough…. And you are right… It is the wrong thread! Apologies.


Yiannis
——————————
neme.org | hblack.net | LABS | State Machines | NeMe @ github

Offline

#80 2018-05-10 20:44:58

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

Re: Testers needed: flat development (4.7+ only)

To continue testing flat resources (css, js etc) output in 4.7, you need to activate the following plugin:

# Name: etc_easter_eggs v0.4 
# Type: Admin/Public/AJAX plugin
# 
# Author: 
# URL: 
# Recommended load order: 5

# .....................................................................
# This is a plugin for Textpattern CMS - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# .....................................................................

YToxMTp7czo0OiJuYW1lIjtzOjE1OiJldGNfZWFzdGVyX2VnZ3MiO3M6NjoiYXV0aG9yIjtz
OjA6IiI7czoxMDoiYXV0aG9yX3VyaSI7czowOiIiO3M6NzoidmVyc2lvbiI7czozOiIwLjQi
O3M6MTE6ImRlc2NyaXB0aW9uIjtzOjA6IiI7czo0OiJjb2RlIjtzOjE3MTY6ImlmICh0eHBp
bnRlcmZhY2UgPT0gJ2FkbWluJykgew0KICAgIGV0Y19wcmVmcygpOw0KICAgIGFkZF9wcml2
cygncHJlZnMuYWR2YW5jZWQnLCcxLDInKTsNCiAgICByZWdpc3Rlcl9jYWxsYmFjaygnZXRj
X3ByZWZzX2luc3RhbGwnLCdwbHVnaW5fbGlmZWN5Y2xlLmV0Y19lYXN0ZXJfZWdncycpOw0K
fSBlbHNlIHsNCiAgICByZWdpc3Rlcl9jYWxsYmFjaygnZXRjX3ByZWZzJywgJ3ByZXRleHRf
ZW5kJyk7DQogICAgcmVnaXN0ZXJfY2FsbGJhY2soJ2V0Y19yc3MnLCAncnNzX2hlYWQnKTsN
CiAgICByZWdpc3Rlcl9jYWxsYmFjaygnZXRjX3JzcycsICdyc3NfZW50cnknKTsNCiAgICBy
ZWdpc3Rlcl9jYWxsYmFjaygnZXRjX3JzcycsICdmZWVkX2ZpbHRlcicpOw0KfQ0KDQpmdW5j
dGlvbiBldGNfcnNzKCRldmVudCwgJHN0ZXAgPSBudWxsKSB7DQogICAgcmV0dXJuIHBhcnNl
X2Zvcm0oJGV2ZW50KTsNCn0NCg0KZnVuY3Rpb24gZXRjX3ByZWZzX2luc3RhbGwoJGV2ZW50
ID0gbnVsbCwgJHN0ZXAgPSBudWxsKSB7DQogICAgaWYgKCRzdGVwID09ICdkZWxldGVkJykg
ew0KICAgICAgICBzYWZlX2RlbGV0ZSgndHhwX3ByZWZzJywgIkZJTkRfSU5fU0VUKG5hbWUs
ICdhc3NldHNfbWltZXR5cGVzLHR4cF9ldmFsd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c2V0c19taW1ldHlwZXMnLCAkcHJlZnNbJ2Fzc2V0c19taW1ldHlwZXMnXSA9DQonO2Nzcz0i
dGV4dC9jc3MiDQpqcz0iYXBwbGljYXRpb24vamF2YXNjcmlwdCINCmpzb249ImFwcGxpY2F0
aW9uL2pzb24iDQpzdmc9ImltYWdlL3N2Zyt4bWwiDQp4bWw9ImFwcGxpY2F0aW9uL3htbCIN
CnR4dD0idGV4dC9wbGFpbiINCmNzdj0idGV4dC9jc3YiDQpodG09InRleHQvaHRtbCINCmh0
bWw9InRleHQvaHRtbCInLA0KICAgICAgICAnYWR2YW5jZWQnLCBQUkVGX0NPUkUsICdsb25n
dGV4dF9pbnB1dCcsIDIwMCwgUFJFRl9HTE9CQUwpOw0KfSI7czo0OiJ0eXBlIjtzOjE6IjUi
O3M6NToib3JkZXIiO3M6MToiNSI7czo1OiJmbGFncyI7czoxOiIwIjtzOjQ6ImhlbHAiO3M6
MDoiIjtzOjM6Im1kNSI7czozMjoiNGE1ZDc1MjJhOTk5MTA2NmU3NWYzMTZkZTA2ZWZiODAi
O30=

DISCLAIMER: we hope to “officially” integrate this functionality in 4.7.2+, but probably in a different way. So please be ready for changes if you use it now.

Last edited by etc (2018-08-06 13:57:47)


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

Offline

Board footer

Powered by FluxBB