Alternate content list

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
melix

Alternate content list

Post by melix »

Hi,

I am working with a rather large amount of pages. If found it very hard to work with the "classical" page list (listcontent.php), so I created an alternate view. Note that its usage is slightly different from the original CMS view, but maybe some of you could tweak it in order to make it work in more usages. I had to remove the page move feature because it was just much too slow. I'll have to find an alternate way of doing it.

For now, I assume that pages must be created under a section header (which acts as a folder). Therefore, the view is now a delightful hierarchical tree view :

Image

In order to install it, you'll have to add the following lines at line 106 of the addcontent.php file :

After

Code: Select all

	$contentobj->mLastModifiedBy = $userid;
Insert

Code: Select all

	if (isset($_GET["parent_id"])) {
    $contentobj->mParentId = $_GET["parent_id"]; // quick and dirty patch
  }
Then, rename listcontent.php to listcontent.old.php, and copy the content of the provided ZIP file into your admin directory (it will replace the listcontent.php file, and create a subdirectory called addons with some resources). Note that the attached file must be renamed to .zip.



[attachment deleted by admin]
melix

Re: Alternate content list

Post by melix »

Hi,

I have installed the beta version, and just seen the new view. This is quite similar, although I would tune up some things (like my own view in fact) :

- collapse all by default (otherwise this view is quite useless)
- remove paging (the main problem with the classic view is that you have to search through 30 pages to find a single element : just awful ;))
- allow direct creation of a page under another one (my "quick and dirty hack")

BTW, does the beta version change the DB structure ? When I use my old DB (without importing anything : I have a DB for my production site and another one for the beta) in the config.php file, collapsing and expanding does not work for my site (more than 300 pages), although it works on the provided pages.
Last edited by melix on Sat Nov 05, 2005 11:53 am, edited 1 time in total.
iNSiPiD

Re: Alternate content list

Post by iNSiPiD »

Hi melix,

These are all worthwhile changes which we have been discussing in other threads for some time. My site also has over 200 pages and the 0.10 listcontent view was impossible to navigate.

I also asked wishy/sGj if they would put a dropdown list (or something in prefs) to allow people to display as many pages as they want per page. Personally I think ALL pages should appear at once.

Thanks!
melix

Re: Alternate content list

Post by melix »

Well, in fact my first attempt was to do a hierarchical view which displayed all pages at once. Unfortunately, when you have 300+ pages, the resulting HTML page was more that 2MB ! Not to think about the memory used by the browser (main issue with FF 1.0x).

Then I tuned up things to have a hierarchical view which only showed open nodes. That's what you have here, and I really think this is much more efficient than the upcoming view (in 0.11b4) as far as I have seen : the new view is based on the same concept from where I started (load the whole tree, collapse with Javascript), apart from the paging (which seems to cause problem with expanding/collapsing nodes, from what I have seen).

My POV is that the new view should be some kind of mix between my own and the new one : the design of the new one seems to be cleaner in, but it is still, IMHO, unusable.
Ted
Power Poster
Power Poster
Posts: 3329
Joined: Fri Jun 11, 2004 6:58 pm
Location: Fairless Hills, Pa USA

Re: Alternate content list

Post by Ted »

I've modified current svn to not use any pagination.  With the inclusion of the collapsible nodes, it works very nicely.

Thanks for the advice.
melix

Re: Alternate content list

Post by melix »

Great news. Can't wait for b5 ;)
!ALeN

Re: Alternate content list

Post by !ALeN »

Hi,

I have installed the beta version, and just seen the new view
Working  ;D
biffs

Re: Alternate content list

Post by biffs »

!ALeN wrote: Hi,

I have installed the beta version, and just seen the new view
Working  ;D
but why bother?  Isn't this functionality already included in current 1.0.x versions?
Locked

Return to “Modules/Add-Ons”