Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-01-12 20:58:00

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

lam_accordion_section (for admin area)

yah yah i know, boo accordion boo web 2.0 etc.!

just did this as a request from this thread

download here: lam_accordion_section v0.2

install, enable, head over to your presentation->sections tab and voila.

(sorry the styling is my own theme. you will see your regular, friendly neighbourhood yellow/grey on yours)

i doubt i’ll be doing any more work on this so feel free to modify as you will.

changelog

v0.2 – updated for TXP 4.08

simple modifications: you can easily get rid of the annoying slide/toggle animations and instead of accordion where you can only have one slide open at a time, you can minimize/maximize as many sections as you wish. pretty simple to figure out but if you need help modifying the plugin to do so, just say so.

mod #1: for those who just want a simple hide/show effect with no animation, PLUS the ability to keep more than one section exposed at a time (as opposed to the accordion effect only keeping one section open), you can also download lam_nonaccordion_section)

things it will not do: one thing i didnt do was enable correct toggling of the + and – signs to signify whether its expanded or not so i just tacked on both. i’m sure someone else can figure it out. it will also not KEEP the expanded section open once you press save. they will all just collapse again. i have a feeling you’d need to do some form of cookie magic for this and i’ve no interest in going that far.

warning: may act funny if you’re using some other admin theme that probably changes the structure of your backend somehow

Last edited by iblastoff (2009-06-06 09:48:08)

Offline

#2 2008-01-12 21:16:52

lee
Member
From: Normandy, France
Registered: 2004-06-17
Posts: 831

Re: lam_accordion_section (for admin area)

Thanks ibo, be a nice addition if the section name was clickable as well.

Offline

#3 2008-01-12 21:19:53

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: lam_accordion_section (for admin area)

lee wrote:

Thanks ibo, be a nice addition if the section name was clickable as well.

i tried that. i couldn’t get that particular table area to react to clicking of the function. no idea why. i’m definitely new to js and jquery so if anyone wants to mod it, go for it.

Last edited by iblastoff (2008-01-12 21:20:43)

Offline

#4 2008-01-12 21:56:42

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: lam_accordion_section (for admin area)

Excellent. Thanks Steve.

Offline

#5 2008-01-12 22:44:18

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: lam_accordion_section (for admin area)

I hope you’re happy with yourself. Adding all that terrible bloat to the TXP UI. ;)

Excellent! Thanks.

Offline

#6 2008-01-12 22:53:16

creativesplash
Member
From: Coimbatore, India
Registered: 2005-01-19
Posts: 283
Website

Re: lam_accordion_section (for admin area)

Amazing Steve, Now I don’t have to scroll till eternity to view my sections! Awesome job!


“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”

— Albert Einstein

Offline

#7 2008-01-13 02:41:05

kus
Member
From: madiun, Indonesia
Registered: 2007-03-15
Posts: 64
Website

Re: lam_accordion_section (for admin area)

Thanks very usefully. BTW your TxP Admin theme looks nice too :D

Offline

#8 2008-01-14 11:44:25

Niconemo
Member
From: Rhône-Alpes, France
Registered: 2005-04-18
Posts: 557

Re: lam_accordion_section (for admin area)

I have a site with about 30 sections. You’ve saved my life ! :-D


Nico

Offline

#9 2008-01-14 15:21:57

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: lam_accordion_section (for admin area)

just added lam_nonaccordion_section for those who don’t want the accordion effect and want to be able to expand more than one section at a time. see first post under modifications

Offline

#10 2008-01-14 17:59:31

kemie
Plugin Author
From: mexico<-->sweden
Registered: 2004-05-20
Posts: 495
Website

Re: lam_accordion_section (for admin area)

geeeeniouuuus! :D


~~~~~~~~~~~~~| monolinea.com | pixilate.com | istockphoto.com/kemie |~~~~~~~~~~~~~

Offline

#11 2008-01-15 06:26:45

creativesplash
Member
From: Coimbatore, India
Registered: 2005-01-19
Posts: 283
Website

Re: lam_accordion_section (for admin area)

Hi Steve, That’s another interesting addition. Thanks a million!

I was just pondering over the idea of a “Save all” button in the sections. That is, it saves all sections simultaneously, instead of clicking the save button for each and every section. Is it achievable with a plugin? Sometimes I edit multiple sections and this might be extremely useful.


“Take a point, stretch it into a line, curl it into a circle, twist it into a sphere, and punch through the sphere.”

— Albert Einstein

Offline

#12 2008-01-18 02:29:10

Alfie
Member
Registered: 2007-11-06
Posts: 40

Re: lam_accordion_section (for admin area)

This is cool, any plans on doing a similar menu for the front end based on categories (as you cant do much with menus and cant nest sections yet)

Would be awsome!!

Alfie

Last edited by Alfie (2008-01-18 02:30:36)

Offline

Board footer

Powered by FluxBB