Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2018-01-31 08:04:22

gavnosis
Member
From: Milton Keynes, UK
Registered: 2005-03-12
Posts: 151
Website

Replace existing files

Maybe I’ve never tried to do this on the current version of Textpattern (and I can’t find any other reference to this in this forum, so it could be me/my server).

If I browse to replace a file in a TXP site, I am unable to actually replace it. I can click replace, but it doesn’t update to the latest.

Anyone else seen this?

Offline

#2 2018-01-31 08:48:07

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,615
Website

Re: Replace existing files

Hi Gavin, can you give any indication of:

  • your Textpattern version
  • perhaps whether the filename (existing or new) might have anything to do with it, e.g. funny characters, spaces etc.
  • whether your files folder is writable

TXP Builders – finely-crafted code, design and txp

Offline

#3 2018-01-31 08:55:16

gavnosis
Member
From: Milton Keynes, UK
Registered: 2005-03-12
Posts: 151
Website

Re: Replace existing files

Hello

‘Files’ has permissions of 755
Filename has nice underscores: charging_policy.pdf

And possibly my bad (oops!):
Textpattern version: 4.6.0

Hang on whilst I update…

Offline

#4 2018-01-31 09:01:48

gavnosis
Member
From: Milton Keynes, UK
Registered: 2005-03-12
Posts: 151
Website

Re: Replace existing files

Actually, it does update the file, but not the file name

Edit
Replace file
Condition
ID#
Name <This isn't updated

Offline

#5 2018-01-31 09:14:11

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,293
Website GitHub

Re: Replace existing files

This is something on our list for when we refactor the Files panel code – probably next version now.

For now, try adi_file_tab which does this and (of course) more. With his blessing, I was planning to borrow some of Adi’s code and merge it with core for some of the excellent features in this plugin.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Online

#6 2018-01-31 12:32:55

gavnosis
Member
From: Milton Keynes, UK
Registered: 2005-03-12
Posts: 151
Website

Re: Replace existing files

Thank you – not something I’ve done wrong then! I’ll try adi_file_tab like you suggest…

PS I love hanging out here because there are helpful and useful answers in record time. Shame I can’t post questions about other software on this forum, too ;-)

Offline

#7 2018-01-31 20:46:35

gomedia
Plugin Author
Registered: 2008-06-01
Posts: 1,373

Re: Replace existing files

Bloke wrote #309000:

With his blessing, I was planning to borrow some of Adi’s code and merge it with core for some of the excellent features in this plugin.

Blessings be upon you.

Offline

#8 2018-01-31 21:20:17

gavnosis
Member
From: Milton Keynes, UK
Registered: 2005-03-12
Posts: 151
Website

Re: Replace existing files

What’s happed to the bit in the admin interface where I could enable/disable plugins?

I thought I’d installed it, but…

It’s been a while, but Adi’s plug-in doesn’t seem to have any controls like I used to remember…

Offline

#9 2018-01-31 21:46:13

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,293
Website GitHub

Re: Replace existing files

gavnosis wrote #309017:

What’s happed to the bit in the admin interface where I could enable/disable plugins?

Should be in the Plugins panel in the Active column. If you can’t see the Yes/No/Options thingies, try force-refreshing / flushing the browser cache. Might be an old textpattern.js file lurking.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Online

Board footer

Powered by FluxBB