Jump to content

lpa

Members
  • Posts

    185
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Helsinki, Finland

Recent Profile Visitors

7,122 profile views

lpa's Achievements

Sr. Member

Sr. Member (5/6)

23

Reputation

  1. Thanks! Seems to be too complicated for my needs. How about a simple hook for the sorting phase of the admin tree?
  2. How could I define that the subfolders of a page are shown first and the children of the page then in the admin page tree? Now the children are shown first and if there are many pages inside a folder, the subfolders are shown on the last page.
  3. The articles are edited in an editorial system and we only want to preview them before they are finally ready to be published. Bernhards advice on using Nette was the chosen solution for us.
  4. This is a journal site where the content of articles is edited in an editorial system. The writer wants to see the preview of the article during the editing phase. The article is saved to the site only when it is ready to be published. We don't want the article to be saved before it is ready to be published.
  5. We need to create a preview of a page with data retrived through an external api without saving the page. The page consists of text, images and embeded HTML-items (youtube video, twitter feed-item etc). The preview is never saved as a page as it is only for preview purposes. Is it possible to create a new PageImage object in the memory, do cropping and resizing and show the new manipulated image on the preview page purely in memory?
  6. Well, now it works. I was expecting a file to be generated in the root, but then I realised it is dynamic. When you access domain.com/sitemap.xml, it is generated on the fly. Now my only concern is if I check the "Include hidden or unpublished pages", are really all the hidden and unpublished pages included? If I have some pages hidden because they won't be in the main navigation, I would like those to be included in the sitemap. But never any unpublished pages.
  7. Yes, I found that out and it fixes the problem. But the next problem is that no sitemap.xml is generated and no options are shown in the templates settings for the sitemap.
  8. I tried to install this module for the first time, but it gives me this error, when saving the settings: Fatal Error: Uncaught TypeError: Return value of MarkupSitemap::removeSitemapCache() must be of the type bool, null returned in site/modules/MarkupSitemap/MarkupSitemap.module.php:257 And no sitemap.xml file is generated.
  9. Could you disable the rebuildAll() call for a moment in PagesParents.php, or would it break something? Will it rebuild the indexes after it would be reenabled?
  10. Yes I agree. But we are doing a big restructuring of our content and to have the redirections handled by PW page history, we are moving the pages using the API. Unfortunately we have thousands of pages to move to archive and it will take time....
  11. OK, thanks. And there seems to be no solution yet for this problem. Or how could I use transactions?
  12. I am having slow performance when moving pages to a new location using api. What could be the reason that moving one page takes 3-4 seconds with this code? I think it should move many pages per second. Could it be the page path history, that takes so long to save? $to = $pages->get('/path/to/'); $articles = $pages->get('/path/from/')->children(); $i = 0; $c = $articles->count(); foreach ( $articles as $item ) { $item->of(false); $item->original_category = $item->parent->title; $item->original_path = $item->url; $item->parent = $to; $item->save(); $i++; printf("%d/%d %s \r", $i, $c, $item->url); }
  13. I am using the DumpsRecorderPanel because I can't get the DumpsPanel showing up when trying to put bd() in PadLoper.module. What would be the reason when the Dumps Panel does not show up from a call in a module?
  14. Well, yes, it has over 300 items and some of those have array titles: How can I clean the cache of the DumpsRecorderPanel? Edit: Just found out how: removing the dumps.json in the TracyDebugger cache.
  15. The whole dump is like this: ErrorException: Array to string conversion in ../www/site/modules/TracyDebugger/tracy-2.8.x/src/Tracy/Helpers.php:80 Stack trace: #0 ../www/site/modules/TracyDebugger/tracy-2.8.x/src/Tracy/Helpers.php(80): Tracy\Bar->Tracy\{closure}(8, 'Array to string...', '/Users/lpa/www/...', 80, Array) #1 ../www/site/modules/TracyDebugger/panels/DumpsRecorderPanel.php(24): Tracy\Helpers::escapeHtml(Array) #2 ../www/site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-2.8.x/src/Tracy/Bar/Bar.php(149): DumpsRecorderPanel->getTab() #3 ../www/site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-2.8.x/src/Tracy/Bar/Bar.php(122): Tracy\Bar->renderPanels('') #4 ../www/site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-2.8.x/src/Tracy/Bar/Bar.php(98): Tracy\Bar->renderHtml('main') #5 ../www/site/assets/cache/FileCompiler/site/modules/TracyDebugger/tracy-2.8.x/src/Tracy/Debugger/Debugger.php(313): Tracy\Bar->render() #6 [internal function]: Tracy\Debugger::shutdownHandler() #7 {main} I think it is now shown up as soon as the panel is loaded. How could I find out the $s value?
×
×
  • Create New...