Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-12-05 03:13:39

mwaldtha
Archived Plugin Author
From: Colordao
Registered: 2006-04-02
Posts: 19
Website

[plugin] [ORPHAN] tsw_sec_list

The tsw_sec_list plugin is a simple plugin to display information about the sections defined in your Textpattern system.

tsw_sec_list allows you to display each section name or title as a hyperlink with a corresponding hyperlinked image, or any combination of the two. If you just want a listing of each section, you can do that. If you just want to display an image for each section you can do that too. Or you can display both the section text and an image. If you select to include an image, the image file must be named the same as the section, except in all lowercase (e.g. Section name: Books, Image name: books.png).

tsw_sec_list also allows you to sort your sections by name or by title, and you can choose to omit any sections from the output. If you include the ‘default’ section you can also choose to rename it and/or pop it to the front of your list of sections. (For example, this comes in handy when you want to rename the default section to ‘Home’, but also want it to come first in your list of sections for easier navigation.) Please see the help documentation for a description of all the features and attributes.

Update: version 0.4.1 now includes the ability to specify a separate class attribute for the current section. Updated information and the new download file can be found below.

Update: version 0.5 now includes the ability to display either the name or the title of each section, instead of just the name. This version also includes the ability to specify a list of sections that will be excluded from the output. Updated information and the new download file can be found below.

Download tsw_sec_list
More Details

Last edited by mwaldtha (2007-03-28 14:53:47)

Offline

#2 2006-12-15 17:21:27

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

Re: [plugin] [ORPHAN] tsw_sec_list

This is nice. Useful. How about a “selected” class/id when you are in the current section. Other than that it’s a nice replacement for the shelved rdt_dynamenus

Offline

#3 2006-12-16 02:45:46

mwaldtha
Archived Plugin Author
From: Colordao
Registered: 2006-04-02
Posts: 19
Website

Re: [plugin] [ORPHAN] tsw_sec_list

Very good suggestion. It’s supposed to be cold and snowy here, so I’ll try adding that in this weekend.

Thanks for the nice comment. :-)

- Marc

Done! See the original post for more information and a new download file.

Last edited by mwaldtha (2006-12-16 04:52:04)

Offline

#4 2006-12-17 11:02:27

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [plugin] [ORPHAN] tsw_sec_list

it’s a nice replacement for the shelved rdt_dynamenus

Nice :)

Thanks Marc

Offline

#5 2006-12-17 17:11:59

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

Re: [plugin] [ORPHAN] tsw_sec_list

Magnifico, mrColorado! Many thanks.

So I guess it’d be greedy for me to throw out another idea… I guess that would depend on how much snow you have.

Ok, how about an attribute to specify whether the list is produced displaying “name” or “title”.

Thanks again.

[edit] Also an option to exclude specified sections from the list would be nice.

Last edited by mrdale (2006-12-17 17:24:56)

Offline

#6 2006-12-18 02:20:50

mwaldtha
Archived Plugin Author
From: Colordao
Registered: 2006-04-02
Posts: 19
Website

Re: [plugin] [ORPHAN] tsw_sec_list

Well, we didn’t end up getting any snow here, so I guess you’re out of luck. ;-)

I can add those two requests, no problem. Just to be sure I understand, you’d like to be able to choose what text to display for each section, either ‘name’ or ‘title’ right?

Also, thanks to soulship for your nice comment too.

- Marc

Offline

#7 2006-12-18 05:03:13

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

Re: [plugin] [ORPHAN] tsw_sec_list

Yep Marc, you got it.

  1. the ability to specify ‘name’ or ‘title’
  2. the ability to exclude comma delimited set of sections.

These would be super useful. “I’m dreaming of a white Xmas” in Colarado. (just kidding).

Offline

#8 2006-12-18 14:32:01

mwaldtha
Archived Plugin Author
From: Colordao
Registered: 2006-04-02
Posts: 19
Website

Re: [plugin] [ORPHAN] tsw_sec_list

Great, I just wanted to make sure before I began working on something.

I’m hoping to get to this sometime this week, before all of our holiday activities start up, but don’t hold your breath. :-)

- Marc

Offline

#9 2006-12-18 16:01:57

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

Re: [plugin] [ORPHAN] tsw_sec_list

Forgot to say Thanks in #7. not holding breath. Happy Holidays.

Offline

#10 2006-12-22 03:53:15

mwaldtha
Archived Plugin Author
From: Colordao
Registered: 2006-04-02
Posts: 19
Website

Re: [plugin] [ORPHAN] tsw_sec_list

Well, you must have wished pretty hard, because we just got about 27 inches of snow with drifts even deeper. (I’ve posted a few photos on my site if anyone is interested.)

Anyway, I was able to add the features you requested. I hope they work the way you were expecting. See the original post for more information and to download the new file.

If you have any questions or problems with the new plugin please let me know. Happy holidays to you too. :-)

- Marc

Offline

#11 2006-12-22 16:13:51

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

Re: [plugin] [ORPHAN] tsw_sec_list

Big Thanks.
Just what I needed. Happy Holidays Marc.

Now, snow… you may melt at your leisure.

[edit] belay that order, snow. exclude works but displaying title seems does not. At least for me.

I’m caling it thusly;

<txp:tsw_sec_list disptext='title' wraptag='li' curclass='selected' exclude="found,testimonials" orderby='title' />

Thoughts.

Last edited by mrdale (2006-12-22 16:34:30)

Offline

#12 2006-12-22 16:44:46

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

Re: [plugin] [ORPHAN] tsw_sec_list

Oh, and there’s a small error in the plugin help.

Under insec the example should read incsec="1" and not incdef="1"

Cheers mate. Sorry to pester.

Last edited by mrdale (2006-12-22 16:45:47)

Offline

Board footer

Powered by FluxBB