HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Number of Comcode pages

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#79389 (In Topic #16167)
Avatar

Fan in training

Hello to all

Sorry for my English but I speak French.

I have just over 300 pages and I have a problem in the management of these pages in the administration.

I would like to edit the first page but no longer on the list, when I do a sort, only the last 300 pages are visible.

So I have to go through the pages of my site to edit this page.

Is it possible to configure to display all the pages in the administration because I will have more than 1000 pages on my site, and it's quite difficult to move every time the site to edit a page.

Thank you if you have an answer.
Sincerely.
Francis
Back to the top
 
Posted
Rating:
#79391
Avatar



Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#79406
Avatar

Fan in training

Hello Chris

Thank you for your response.

I can already make changes to the file or do I wait for the release of version 8 (due out in how long?)

Good day.
Cordially.
Francis
Back to the top
 
Posted
Rating:
#79412
Avatar

There is no schedule for v8, it'll just be out when it's done and there's some time to finish polishing it off.

You can apply those changes yourself if you like. The latest cms_comcode_pages.php out of github may work directly, I'm not sure (not tested).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#79415
Avatar

Fan in training

Sorry, this file does not work normally.

Fatal error: Call to undefined function content_validated() in /home/milouch1/public_html/milouchouchou.be/cms/pages/module
s/cms_comcode_pages.php on line 960
Back to the top
 
Posted
Rating:
#79424
Avatar

Community saint

Bonjour Francis,

If I may offer a temporary solution, it would be to use an FTP program such as FileZilla to access your website files and look for your comcode files usually in a subfolder "comcode_custom" and edit with a text editor (notepad++). I personally find this editing method easier and less risky than live editing for several reasons. Some are: The ability to keep several versions at hand; an editor such as notepad++ has many features not available online; an important factor for me is that repeated live editing will cause the Server's CPU to hit the 100% activity mark frequently which can result in instability or force a slowdown of your site for several minutes if there are to many requests at the same time. I would think that if you deal with hundreds of such files that this should be the best way to handle them once they have been created by the system.

I assume here that you are working on your Comcode pages with the disabled WYSIWYG editing option.;)
Back to the top
 
Posted
Rating:
#79426
Avatar

I'll explain the cause of the original issue briefly…

It's not quite a bug, but on seeing this topic I did see it as a problem.

Because Comcode pages aren't stored in the database, we can't rely on the database to efficiently "paginate" them. So we had to have a hard-coded limit of the 300 most recent ones to avoid performance issues when searching the disk.

My change (which was quite complex) was to use the database records for the pages if there are more than 300. Whilst the pages aren't stored in the database, when they have been displayed once they do have database records - and doing this was better than just cutting off at 300. Anyone with over 300 pages is unlikely to have pages that have never been displayed, as non-displayed pages are usually only ones that shipped with ocPortal.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#79463
Avatar

Fan in training

Hello Jean and Chris

That's right Jean, edit with Notepad++ is a solution, you just have to be careful not to make a mistake in the links page.

Chris I saw that the pages are in "hard" on the site, and it would be too much for any show to each query in the admin.

I save the links to edit pages on my hard drive and I use to call each change is much faster than going through my site.

Thank you for your positive response, good day to you 2.

Cordially.
Francis
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: