Textpattern Forum

You are not logged in. Register | Login | Help

#91 2011-03-23 22:05:21

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,188
Website

Re: smd_where_used: help keep your admin side tidy

Els wrote:

Couldn’t you just search for </txp:article>?

Funny how we never think of the simple solution!


My Plugins

Piwik Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#92 2011-03-24 00:53:22

johnstephens
Plugin Author
From: Harrisonburg, VA
Registered: 2008-06-01
Posts: 834
Website

Re: smd_where_used: help keep your admin side tidy

Els, you are the mirror that shows a normal man that he is a clown. Thank you!

Offline

#93 2011-03-24 12:07:22

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: smd_where_used: help keep your admin side tidy

Stef, does it make sense to add a filter ‘closing tags’?

Last edited by merz1 (2011-03-24 12:07:40)


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#94 2011-07-10 17:07:12

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 5,908
Website

Re: smd_where_used: help keep your admin side tidy

I’m considering adding ‘search/replace’ functionality to this plugin — and give the ability to resave articles for those that want to regenerate the HTML en-masse from Textiled markup — but I want it to work in a specific way. My ideas are here and here (not set in stone).

I’m a bit stuck on how to factor this into the interface workflow though. Please, if anybody has any thoughts on this, design ideas, mockups, stuff like that, feel free to post/send me anything you have. The answer’s probably reasonably simple but it’ll require a GUI guru to point me in the right direction. Thanks!

Last edited by Bloke (2011-07-10 17:22:21)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Offline

#95 2011-07-10 19:25:34

stephan
Plugin Author
From: Bochum, Germany
Registered: 2004-07-26
Posts: 196
Website

Re: smd_where_used: help keep your admin side tidy

Hi Bloke,

when I toyed around with Movable Type search & replace was actually one of the features I really liked. In case you have never seen their UI, here is a quick intro:

This is the standard search mask. It is pretty straight forward and allows you to define the content type in which to look and also date ranges and regex.

Once you have performed the search you are able to replace the search string in one or more of the hits:

Maybe this serves as some kind of inspiration.


Yoko for Textpattern – A free blog themeMinimum Theme – If all you want to do is write.
Note: I am currently not actively using Textpattern, so I am not in the forums very often

Offline

#96 2011-07-10 19:46:00

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 5,908
Website

Re: smd_where_used: help keep your admin side tidy

Thanks stephan. That sorta looks like the direction I was considering. I’d need to simplify it a bit since the search is ‘global’ and results are in columns spanning content types. So I’d probably try and strip it down to this:

  1. initially, the interface appears pretty much as you see it today on tab load
  2. search for something / orphan with associated attributes (regex, exact, include, blah blah)
  3. results appear with checkboxes next to each matching item
  4. new widget row also appears below / alongside the Search results heading with ‘Actions…’ dropdown (last action remembered) and a ‘Go’ button. The actions I can currently think of are:
    1. replace
    2. delete
    3. re-save (articles only)
  5. depending on chosen action, a further input box may appear alongside the dropdown if you choose ‘replace’ (in all other cases, there is no additional input box to reduce screen clutter)
  6. when you click ‘Go’, your chosen action is applied to all checked resources in the result set and you are returned to the original search screen to perform your next find operation

Not sure if that workflow is ideal, but that was my first stab. I’d look to finding some way of making multiple checkbox selections simple — like TXP’s multi-edit facility (but perhaps not as feature rich, as I’m not sure how I’d squeeze it in). My opening gambit was simply a select all/none toggle facility if you clicked the heading in one of the columns.

If anyone has any improvements or ideas, please share them.

Last edited by Bloke (2011-07-10 19:49:34)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Offline

#97 2011-07-10 22:34:00

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 685
Website

Re: smd_where_used: help keep your admin side tidy

Very useful ideas (I’ve just had the need to save a bunch of articles again to rebuild internal links after moving from a subdirectory). I’d just make a call for a “feedback” message after point 6 and before the new blank search screen. Especially with actions on multiple records, it may help to know that everything has gone fine (or not). Not sure if that could be shown in the same screen with a new blank search operation, but a nice feedback message is always a bless for me as a user…

Offline

#98 2011-07-10 22:38:16

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 5,908
Website

Re: smd_where_used: help keep your admin side tidy

Zanza wrote:

I’d just make a call for a “feedback” message after point 6 and before the new blank search screen

Yeah, that’d probably appear in the usual message area, e.g. 311 replacements made. Will that do? Or are you talking about a complete report on what was done?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Offline

#99 2011-07-11 07:50:26

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 685
Website

Re: smd_where_used: help keep your admin side tidy

It depends on the actual task, I suppose. What if some task are successfully done only on a part of the record set? Or if a part of the task is ok and part can’t be done? I admit I don’t know if the case is realistic, because I don’t know mysql well, how often db connection could be lost, so maybe this is just a paranoid thought. You are a betted judge than me. The point is that I have some piece of software in mind (mailing sender) that fails to communicate the point at which a big task has been suspended, to resume it. That kind of problem. Maybe not a problem at all in your plugin, and usual message fits. Just in case, consider it!

Actually, I’m sure you were already considering it. Only a paranoid attack from my part… :)

Offline

#100 2011-07-11 07:58:38

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 5,908
Website

Re: smd_where_used: help keep your admin side tidy

Zanza wrote:

What if some task are successfully done only on a part of the record set?

Perhaps the ability to have a report would be best then. I’d probably make it optional (like in smd_tags) so you could see the results of the last action.

Actually, I wonder now if it might make sense to not take you back to the search screen again but leave the same results set from the previous search selected. That would allow you to perform multiple search/replace actions on the same group of results. The ability to start a new search is always available from the top of the panel so I don’t think we’d lose functionality. Will see how it pans out when I get round to looking at it.

If anyone has any further ideas, do shout.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern.

Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB