Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-01-23 16:04:14

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

cbe_swap_body_excerpt: as the name suggests (write tab)

I was recently asked to put the Excerpt input field before the Body.
I said yes, thinking that I could easily find such a plugin.
But despite my efforts, I failed.
Whether it already exists or not, I figured out it would be faster to write it. So I wrote it :)

For those who have the same need :

Changelog:
  • 23 Jan 14 – v1.0 – Initial release
  • 24 Jan 14 – v1.0.1 – Fixed: nothing displays if articles don’t use excerpts

Last edited by CeBe (2014-01-24 09:15:45)

Offline

#2 2014-01-23 18:32:35

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: cbe_swap_body_excerpt: as the name suggests (write tab)

The bot_write_tab_customize plugin can do this, and more other things. It’s for me one of the most important plugins.

Offline

#3 2014-01-23 21:22:01

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: cbe_swap_body_excerpt: as the name suggests (write tab)

Yes, I use bot_wtc too to move almost everything around. It is a client-side (javascript) oriented plugin.

Here is the whole story:
This time, I only need to display the excerpt input field before the body and nothing else. I preferred a server-side solution.
Plus: I will reuse the place left by the body to add another block (the help file explains how to do that). I’m not sure I could achieve this with bot_wtc and since I will have to develop a little piece of code and use the pluggable_ui, I thought I’d better completely do it in php :)

Well… it’s all about a matter of choice :)

Offline

#4 2014-01-23 21:39:17

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: cbe_swap_body_excerpt: as the name suggests (write tab)

Hello Claire,

On ’4.6 dev’ I have Body – Excerpt – Body

Offline

#5 2014-01-23 21:51:14

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: cbe_swap_body_excerpt: as the name suggests (write tab)

Ah… Looking into it.

Edit: works perfectly on a fresh install. Probably a clash with another plugin.

Last edited by CeBe (2014-01-23 22:31:47)

Offline

#6 2014-01-24 00:05:45

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: cbe_swap_body_excerpt: as the name suggests (write tab)

CeBe wrote #278411:

I preferred a server-side solution.

This is a significant difference or argument.

Well… it’s all about a matter of choice :)

Yes, you are right.

Offline

#7 2014-01-24 09:17:59

CeBe
Plugin Author
From: Caen - Fr
Registered: 2010-06-25
Posts: 345
Website

Re: cbe_swap_body_excerpt: as the name suggests (write tab)

Quick fix : nothing was displayed if articles don’t use excerpts.

Offline

Board footer

Powered by FluxBB