Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
admin interface: changeable order of body and excerpt textareas?
Since my very first web project with Textpattern the order of the textareas for the body and the excerpt confused me. I usually use the excerpt as the first introductive paragraph of an article. The body itself does not repeat the content of the excerpt. It’s a usage very similar to newspapers, where the first paragraph is used as abstract of the article. In article lists, I usualy just use the excerpt and link to the full article with excerpt and body text.
By now the order of textareas in the admin interface looks like this:
[title]
[body]
[excerpt]
The way I use bodies and excerpts the following order would fit more:
[title]
[excerpt]
[body]
Would it be possible to create an admin preference to customize the order of these textareas? Something like:
Show body before excerpt? [x] yes [ ] no
Offline
#2 2006-08-22 19:04:31
- steventer
- Member
- Registered: 2004-12-03
- Posts: 56
Re: admin interface: changeable order of body and excerpt textareas?
This is one of the things I find most irritating about TXP in my day-to-day use. It just makes sense to start with a title, enter the excerpt and then move on to the body of the article.
Offline
Re: admin interface: changeable order of body and excerpt textareas?
Has anybody found a solution to this issue? I would really appreciate it. A hack too could be useful…
Thanks
Happily served with Txp: Strampelli.net, Brain Essence, NicolaTranfaglia.com…
Offline
Re: admin interface: changeable order of body and excerpt textareas?
Either edit the textpattern.css stylesheet to reposition the textareas (not sure exactly how, but I think it’s possible) or write a admin side plugin that uses javascript to swap the textareas or (but this is not recommended) hack /textpattern/include/txp_article.php and swap it there.
Offline
Re: admin interface: changeable order of body and excerpt textareas?
I find that the title>body>excerpt order is more logical as, semantically thinking, without the body there can be no excerpt.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: admin interface: changeable order of body and excerpt textareas?
BACK UP YOUR OLD TXP_ARTICLE.PHP! this is for textpattern 4.0.5
shuffles around the Write area like so:
[title]
[excerpt]
[body]
played around and did it with css but it messes up the tab indexes since they’re hardcoded in. so heres a hacked txp_article.php that shuffles around the Write area and preserves the tab indexing (had to add some inline styles in order to push down the text/preview/html tabs)
Last edited by iblastoff (2007-09-18 01:24:10)
Offline
Re: admin interface: changeable order of body and excerpt textareas?
iblastoff wrote:
BACK UP YOUR OLD TXP_ARTICLE.PHP! this is for textpattern 4.0.5
shuffles around the Write area like so:
[title]
[excerpt]
[body]played around and did it with css but it messes up the tab indexes since they’re hardcoded in. so heres a hacked txp_article.php that shuffles around the Write area and preserves the tab indexing (had to add some inline styles in order to push down the text/preview/html tabs)
Thank you iblastoff,
I am currently using your hacked txp_article.php on my site, and I must say i prefer it. Good job!
@Colak:
Yes, the classical order is more logical, semantically speaking. But, i find more useful this inverted order, as normally excerpts contain something that has to be read before the body (even though it’s been written after), like the first paragraph/s of the article, an intro, etc. This way, it’s easier to read/edit the whole post in the admin, as the first part (excerpt) comes before the second (body).
Last edited by vittorio (2007-11-03 15:31:16)
Happily served with Txp: Strampelli.net, Brain Essence, NicolaTranfaglia.com…
Offline
#8 2007-12-25 23:53:08
- Sono Juventino
- Member
- From: Skedsmo, Norway
- Registered: 2007-12-22
- Posts: 81
Re: admin interface: changeable order of body and excerpt textareas?
I agree with you, vittorio. Thank you very much, iblastoff. Nice plugin.
And btw. Il Bianconeri per sempre.
Last edited by Sono Juventino (2007-12-25 23:53:44)
Offline
Re: admin interface: changeable order of body and excerpt textareas?
that wasn’t a plugin but just a simple hack to a core file. a plugin would be preferred (so core files wouldn’t have to be altered) but i can’t be arsed to write one for this :P
Offline
#10 2007-12-26 03:05:29
- Sono Juventino
- Member
- From: Skedsmo, Norway
- Registered: 2007-12-22
- Posts: 81
Re: admin interface: changeable order of body and excerpt textareas?
Ofc not. If something works, why fix it? ;)
Offline
#11 2008-03-16 18:03:42
- Sono Juventino
- Member
- From: Skedsmo, Norway
- Registered: 2007-12-22
- Posts: 81
Re: admin interface: changeable order of body and excerpt textareas?
Does this still work on 4.0.6?
Offline
Re: admin interface: changeable order of body and excerpt textareas?
Sono Juventino wrote:
Does this still work on 4.0.6?
yes it does. but backup the original files, just in case… ;)
Happily served with Txp: Strampelli.net, Brain Essence, NicolaTranfaglia.com…
Offline