Content->Page use select menu instead of list

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
iNSiPiD

Content->Page use select menu instead of list

Post by iNSiPiD »

Hi, the current page list menu works fine for smaller sites but for larger ones it becomes impractical and I find myself guessing a lot of the time at which page number I should click in order to find a page.

I've seen a select box used for other CMSs and this works great, particularly if the list is in the same hierarchical order and children are tabbed in using m-dashes or whitespace.

Does anyone think this is a worthy project to tackle? I ask because I don't think I've got the programming skill required to pull it off myself.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: Content->Page use select menu instead of list

Post by Ted »

Interesting idea.  Do you have any examples off the top of your head of a particular CMS that does this.  I'd be interested in seeing it.
User avatar
sjg
Power Poster
Power Poster
Posts: 310
Joined: Thu Jan 27, 2005 5:11 pm
Location: Los Angeles, CA

Re: Content->Page use select menu instead of list

Post by sjg »

Also, the new version allows you to collapse and expand the sections, which could make it easier to find the page you want.
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
iNSiPiD

Re: Content->Page use select menu instead of list

Post by iNSiPiD »

How do you collapse to top level parent? I can't see anyway to do it form the interface in 0.10.3, or did you mean in beta 11?

Also, is this dynamic so that the page reloads and reduces the total page count?

I think a few options on this page would be very handy. Perhaps allowing people to decide how many results to display per page?

wishy, the CMS in question is actually a simple one I helped write (blush). I'm happy to PM you access if you wanted to have a look but be warned that too much laughter can rupture internal organs. ;)

What I like anbout my current system is that it works well for me (obviously) and has the required modules already in place. I'm trying to inetgrate their functionality (starting with the jobs module) into CMSMS now but the Skeleton module was too much hard work at this point.

I've settled for dropping all my horrible code into User Tags and then just calling them in the necessary pages. Unfortunately, this method is limited and doesn't allow me to integrate the module into the CMS admin.
User avatar
sjg
Power Poster
Power Poster
Posts: 310
Joined: Thu Jan 27, 2005 5:11 pm
Location: Los Angeles, CA

Re: Content->Page use select menu instead of list

Post by sjg »

Sorry. You're right. I meant in the beta.

Humble apologies.

To atone for my inaccuracy, here's a hack for 0.10.3.

To change the number of content pages shown in the content list in 0.10.3, edit line 115 of admin/listcontent.php, and change the $limit variable to be the number of pages you wish to show.

Good luck!
___Samuel___
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
iNSiPiD

Re: Content->Page use select menu instead of list

Post by iNSiPiD »

Ah, great! I knew it'd be simple enough. I might even look at the select drop-down myself now. ;)

Actually, I don't think I'll bother. I can see that a lot of the current functionality would be lost. This is a very simple and effective solution. $limit = 100 works like a charm.

I know it's been said before, Samuel, but - you da man! :)
Last edited by iNSiPiD on Tue Oct 18, 2005 11:51 pm, edited 1 time in total.
User avatar
sjg
Power Poster
Power Poster
Posts: 310
Joined: Thu Jan 27, 2005 5:11 pm
Location: Los Angeles, CA

Re: Content->Page use select menu instead of list

Post by sjg »

I'm not sure if there's been feature freeze for 0.11, but since I haven't had time to implement the "Ajax content reordering," the least I could do is add number of content items per pages as an admin preference.
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
iNSiPiD

Re: Content->Page use select menu instead of list

Post by iNSiPiD »

That would be a nice touch.

Ahhh, AJAX. Nothing gets things cleaner. :)
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: Content->Page use select menu instead of list

Post by Ted »

You know, "you da man" just doesn't sound right in my head with an Australian accent.  Oh well...  :)
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm
Location: Saskatchewan - Canada

Re: Content->Page use select menu instead of list

Post by Greg »

Seen this?
Greg
iNSiPiD

Re: Content->Page use select menu instead of list

Post by iNSiPiD »

Whoa! Sexy frames. The source of the retrieved URL doesn't even show up in the source.

Not sure what it has to do with this post but I like it. :)
Post Reply

Return to “Developers Discussion”