Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Write screen: moving section and category selects to the top
ied_hide_in_admin finds and replaces things using the DOM-structure rather than any jquery-like find and replace so it is prone to ‘breaking’ with the slightest change to the structure of the admin area, but you can rejig by correcting the DOM paths it contains.
I agree that section could be more obvious but arranging them beneath each other is not very economic with space, particularly when you have a truck-load of custom fields…
For what it’s worth, guiguibonbon was even more radical with the section area – see backend2 in this xpattern thread.
TXP Builders – finely-crafted code, design and txp
Offline
#17 2008-07-08 14:37:21
- masa
- Member
- From: North Wales, UK
- Registered: 2005-11-25
- Posts: 1,095
Re: Write screen: moving section and category selects to the top
jakob wrote:
I agree that section could be more obvious but arranging them beneath each other is not very economic with space, particularly when you have a truck-load of custom fields…
But the cfs would stay on the left hand side.
The problem with not stacking the selects is that long category names cause them to grow, so I don’t think placing them on the same line would work too well.
I’m not convinced that mixing them into the central content area (headline, body, excerpt) is a good idea. As it is now things are clearly separated.
Offline
Re: Write screen: moving section and category selects to the top
But the cfs would stay on the left hand side.
Sorry, my error (I’ve changed my own installations around and have got so used to it I forgot).
The problem with not stacking the selects is that long category names cause them to grow, so I don’t think placing them on the same line would work too well.
You can use css to force the width of the select drop-downs (think it works in most/all browsers). You still see the entire text when the drop-down opens.
TXP Builders – finely-crafted code, design and txp
Offline
#19 2008-07-08 19:20:37
- masa
- Member
- From: North Wales, UK
- Registered: 2005-11-25
- Posts: 1,095
Re: Write screen: moving section and category selects to the top
jakob wrote:
You can use css to force the width of the select drop-downs (think it works in most/all browsers). You still see the entire text when the drop-down opens.
Good point!
Although now that it seems as if it would break ied_hide_in_admin my idea is flawed, unless someone took over development of the plugin and made the necessary changes and of course the devs would consider making the changes in the first place.
It does seem though that there’s enough interest in having the selects organised differently.
Sorry, my error (I’ve changed my own installations around and have got so used to it I forgot).
I can relate to that, since I usually apply some minor modifications to the core, too.
How do you handle this when upgrading?
At the moment I keep a text file with all the modifications and simply apply them again by copy&paste after the upgrade, very tedious.
Last edited by masa (2008-07-08 19:23:48)
Offline
Re: Write screen: moving section and category selects to the top
How do you handle this when upgrading? … very tedious
Yes, that sums it up, I’m afraid. A little voice in the back of my mind keeps saying there’s got to be a clever way of doing it but for the moment I also note what files I have changed and the basic modifications I have made, just the purpose not the actual code. Where I make a modification to the source I flag it with a searchable comment such as // MOD JR - brief reason for change so that I can at least find them again fairly easily.
You can use a diff program to compare the source code of two files against each other and restore (or adapt) your change to the new source. If you know which files you messed with and why and can discern your own modifications from other changes to the code, that narrows down the work a little.
Although now that it seems as if it would break ied_hide_in_admin my idea is flawed …
ied_hide_in_admin is not impossible to adapt (at least I managed it a while ago) – it’s basically counting out the nodes (sort of like 1 across, three down) and changing the number of steps (e.g. to 1 across, 2 down or whatever) to fit your new arrangement. It’s been a while but think I used the DOM explorer in the IE toolbar to get a better idea of the node structure.
TXP Builders – finely-crafted code, design and txp
Offline
#21 2008-07-08 20:32:02
- masa
- Member
- From: North Wales, UK
- Registered: 2005-11-25
- Posts: 1,095
Re: Write screen: moving section and category selects to the top
Thanks Jakob for your tips – very much appreciated!
Offline