Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Admin - Sections page very slow loading
Hi
I’m building a pretty large website and have at present 150-200 sections.
It takes an age to load the Sections page after adding or updating.
I use lam_accordion_section which helps to make things more readable after the page loads.
Is there anyway to make the way that lam_accordion_section finally lists the Site Sections standard? (You can only update one Section at a time – so why output all the details for every Section?)
For larger websites this would be far better than all details for every section being read from the dB and then sent in a huge list to the browser.
I’m not a txp expert so I’m not sure if a plugin could do what I want … if it can, perhaps lam_accordion_section could be adapted?
Last edited by geoff777 (2008-06-18 14:24:52)
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline
Re: Admin - Sections page very slow loading
Hi geoff777,
maybe this plugin is helpful: sed_section_fields by net-carver.
It lets you set some preferences for the Sections tab, although I don’t know if it avoids loading all the sections on the DOM.
Anyway… 150-200 sections? I can’t really imagine that… please, when finished, I would like to see the site!
Offline
#3 2008-06-18 14:57:03
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: Admin - Sections page very slow loading
I may be wrong, but I think even with accordion_section the whole section table needs to be pre-loaded, it just hides unneeded sections.
With over 150 sections any plugin will probably slow down the display of the section tab noticeably, so the best approach regarding speed might be the one chriloi did with his section tree plugin: he builds a linked section list at the top of the section tab and inserts id’s in each section, so that you can quickly skip down to the desired section.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#4 2008-06-18 15:02:45
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: Admin - Sections page very slow loading
maniqui wrote:
maybe this plugin is helpful: sed_section_fields by net-carver.
It lets you set some preferences for the Sections tab, although I don’t know if it avoids loading all the sections on the DOM.
Sorry, no. My plugin just does some jQuery manipulation in the browser to re-arrange and hide parts of what the server has already churned out.
However, the latest version does have a live filter that will help you track down the sections you want to edit pretty quickly.
— Steve
Offline
Re: Admin - Sections page very slow loading
I think the best solution will be to handle the section tab similar to other tabs: not showing all info for all sections on one page. This is a work in progress :)
Offline
Re: Admin - Sections page very slow loading
maniqui wrote:
Hi geoff777, maybe this plugin is helpful: sed_section_fields by net-carver. It lets you set some preferences for the Sections tab, although I don’t know if it avoids loading all the sections on the DOM. Anyway… 150-200 sections? I can’t really imagine that… please, when finished, I would like to see the site!
It’s a Portal / Website for The Rock of Gibraltar – 450/500 forms so far too … 3+ for each page/section
I didn’t expect so many Sections either – but the Shopping Section/Page alone has the following sections and it’s not yet complete:-
Supermarkets, Fruit-Vegetables, Cameras-Lenses, Laptops, Flat-Plasma-TVs, Mobile-Phones, iPods, Games-Consoles, Xbox, Nintendo-Wii, Playstation, Cigars-Cigarettes, Alcohol Sales, Jewellery, Fashion-Jewellery, Diamonds-Gems, Gold-Silver, Cosmetics, Perfume, DVD-Sales, DVD-Rentals, Mother-Baby, Toy-Stores, Gift-Shops, Souvenir-Shops, Clothing, Fashion, Designer-Labels, Shoes, Bags, Jeans-Denim, Childrens-Clothes, Maternity-Clothes, Menswear, Sportswear, Workwear, Sports-Equipment, Angling-Supplies, Florists, Health-Shops, Curtains-Fabrics-Haberdashery, T-Shirt-Printing, Office-Supplies, Stationery, Printing-Services, Dry-Cleaners, Tool-Hire
The Food & Drink Section is equally huge.
For SEO / Advertising / Organisation I couldn’t think of another way (I explored Categories but for SEO (Meta Data) and Advertising it didn’t work). I’ve got 66% finished and I expect to start adding actual content in a week or two. I’m really pleased with the way it looks.
I’m sure some clever programmer somewhere could have done it all with one page/section/form and six lines of code … but please don’t tell me about it now …lol ;-)
Geoff
I’ll have a look at the plugins suggested
Last edited by geoff777 (2008-06-18 15:23:47)
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline
#7 2008-06-18 15:24:08
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: Admin - Sections page very slow loading
Nice!
For crockery or earlier, Ruud?
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: Admin - Sections page very slow loading
ruud wrote:
I think the best solution will be to handle the section tab similar to other tabs: not showing all info for all sections on one page. This is a work in progress :)
The way lam_accordion_section finally displays the page is perfect.
If it would do that without displaying all the details first ….
You can only add or update one section at a time so why show all the info for every section?
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline
Re: Admin - Sections page very slow loading
@Uli, it’s rather big change, but I suspect before crockery, unless there are very good reasons not to do this (haven’t talked about this with Robert/wet yet). The way it currently works is very different from the other tabs, so I personally think changing it would be good if only to make the interface more consistent.
Offline
Re: Admin - Sections page very slow loading
ruud wrote:
@Uli, it’s rather big change, but I suspect before crockery, unless there are very good reasons not to do this (haven’t talked about this with Robert/wet yet). The way it currently works is very different from the other tabs, so I personally think changing it would be good if only to make the interface more consistent.
Cool anytime soon? (This week?) and What’s ‘Crockery’?
There are 10 types of people in the world: those who understand binary, and those who don’t.
Offline
Re: Admin - Sections page very slow loading
geoff777 wrote:
Cool anytime soon? (This week?) and What’s ‘Crockery’?
Crockery is the dead unstable and unusable version of TXP (4.1).
Offline
#12 2008-06-19 11:17:54
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: Admin - Sections page very slow loading
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline