Number of Comcode pages
|
Posted
#79389
(In Topic #16167)
|
|
|---|---|
|
Fan in training |
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 |
|
Posted
|
|
|
ocStaff (admin) |
The fix for this will be in v8. https://github.com/chrisgraham/ocPortal/commit/1fb2cf81b7fdbc4926c61dde2a6334e39a2d9f5e If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Fan in training |
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 |
|
Posted
|
|
|
ocStaff (admin) |
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). If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Fan in training |
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 |
|
Posted
|
|
|
Community saint |
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. |
|
Posted
|
|
|
ocStaff (admin) |
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. If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource. |
|
Posted
|
|
|
Fan in training |
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 |
1 guests and 0 members have just viewed this: None
Control functions:








