Jump to content

ceberlin

Members
  • Posts

    533
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by ceberlin

  1. Thank you very much for this in-depth explanation. This hepls a lot. Maybe I have a problem with the database but this is strange: Setup: /de/file with checkbox menu (autojoin) /en/file with checkbox menu (autojoin) /es/file with checkbox menu (autojoin) This is funny, has_parent only works in 1 language, although I am sure, the settings are identical (cloned): $pages->find('has_parent=/de/, menu=1, include=all) - OK $pages->find('has_parent=/en/, menu=1, include=all) - no result $pages->find('has_parent=/es/, menu=1, include=all) - no result The rootParent way (good to know about the rootParent, I thought this was for something else): $page->rootParent->find('menu_btn_to_footer2=1' - OK only for /de/ - same as above. This works (but it is not what I want, because /de/ could be parent or also grand parent. $pages->find('parent=/de/, menu=1, include=all) - OK $pages->find('parent=/en/, menu=1, include=all) - OK $pages->find('parent=/es/, menu=1, include=all) - OK Can this be stopwords, or is the search string to short for a reliable result? Or can this be a problem with the database? Everything was cloned from the /de/ tree.
  2. >What is the silver admin bar? Is this the AdminBar module or something different? Yes, this is the AdminBar module, I believe. It feels so natural to use it, I thought this is part of PW
  3. check_access, include ...shouldn't they go into the offiicial documentation? - I think they are pretty important!
  4. Same situation here: I have built a structure with language trees. home/de/page1/page2 home/en/page1/page3 I am almost always selecting from the, what I call - local_index page, like /de/ to find pages in the same language tree. $local_lang_url = "/de/"; // (example) //search 1 (works, 2 searches): $blocks = $pages->get($local_lang_url)->find('page_key=block_m-help-legal'); //search 2 (does not work): $blocks = $pages->get($local_lang_url)->children('page_key=block_m-help-legal'); //search 3 (does not work) $blocks = $pages->get("has_parent=" . $local_lang_url . " , page_key=block_m-help-legal"); //search 4 (works best): $blocks = $pages->find("has_parent=" . $local_lang_url . ", page_key=block_m-help-legal"); For my curiosity, I wonder what is wrong with search 2 and 3: What is the problem with children() and get() in this context? And how it is with the speed if I do a get(), narrowing the search with a find() - instead of using find() with an AND selector? And my last question is, whether there is a better way to declare the local_index file as homepage and root for searches? At the moment I stick with search 4, although I thought, find() is slow.
  5. I tried the latest dev and had trouble (which I had not before) with certain serarches: 1. the admin search: clicking on the number-link at the headline of a template editing page (showing the pages that use that template) gave empty results; 2. Switching to Edit this page (from the silver admin bar) gave an empty search page instead of the page with the edit overlay.
  6. Since this is a calculated comparison, I would love a feature where uniqueness starts after the language tree. So that i can have unique fields within a language but I can still copy the whole language tree and copy the "unique" fields over. /de/file-with-uniquefield#1 /en/file-with-uniquefield#1
  7. Only problem with foundation: It is not tolerant at all to older browsers. From our stats still more than 20% of the users come from IE 8 and older. That is a real pain.
  8. If you get a compile error (Error 500) when updating a module (for example with the ModuesManager), this could be for a likely but not so obvious reason. I want to share this. Example alert (Maintenance Module update example): Compile Error: Cannot redeclare class MaintenanceMode (line 3 of /.../site/modules/MaintenanceMode/MaintenanceMode.module) This looks like an attempt to declare the same module class twice. What had happened here was this: When dragging a module over an ftp client to the modules folder, it got placed inadvertedly into another module folder and not in the modules root. - So the module became "invisible" (hidden) on your ftp client at first glance. The funny thing was that the misplaced module was still working alright. No alarm bells rang. Trouble came after we tried to update the module (by ftp or by the modules manager) months later. Then the infamous error 500 appeared. So, before wasting time looking closely at database entries and module codes, maybe check first whether there is a duplicate of the updated module buried in the modules folder somewhere.
  9. Anyone checked the new version TinyMCE 4 already? It's currently in late beta. The new version looks soooo cool and clean! I cannot wait to see this in PW!
  10. I like the drupal codings standards a lot. Very clear and comprehensive: https://drupal.org/coding-standards
  11. Yes I used the dev-version for some reason but I did not expect that to be the cause of the issue. Thank you very much for the quick fix, Ryan!
  12. What I did: Right now an editor (who is not a superuser) only sees PAGES and ACCESS. I thought I move a page into admin which has all rights set for any editor. This NOTIFICATION page should be accessible in the black admin menu. The purpose is to give the editors some statistics and notes. What happened: Obviously this is an unintended setup. When calling the file as non-superadmin, i get an error 500. Error: Call to a member function has() on a non-object (line 50 of /xxxxxxxx/wire/core/Role.php) I there anything I can do to fix this?
  13. I like the module a lot. Thank you for this! One idea: I would find a 2 step maintenance extremely useful: a) EMERGENCY - Leave only the Superadmin in (as it is now) - good for updates and for working on the database. b) NORMAL MAINTENANCE - apply a new Permission "bypass_maintenance" to a role which is given access to the backend next to the Superadmin. - good for developing.
  14. Solved - In the settings I had set the limit up to "300", Redirects "5". Refreshed. Then it stopped working after having read in exactly 10 modules. Resetting the limit down to "200" (and refreshed) brought the module back to life again.
  15. Yes please! Uninstalling the module would mean: have the current abstraction replaced with the last known real link. Done by the module uninstaller, if possible. In a second step an admin could run a classic link checker online to identify broken links and fix them manually. - Is this thinking correct?
  16. Hi, I like this very much! My only concern: The numbers in the flie lists are on the right and to o far away from the files. What is hard already (identifying files with children) will be much harder this way. (I would really appreciate a different icon actually, if there are children. None of the templates I tried has that.)
  17. Modules found on modules.processwire.com (10) ACE Text Editor Stable 1.0.0 InputfieldAceEditor Admin Helpers, Input Fields adamkiss 2012/12/20 - Admin Hot Keys Beta 0.0.7 AdminHotKeys Admin Helpers soma 2013/04/27 installed: 0.0.7 edit AdminBar Stable 1.0.0 AdminBar Admin Helpers apeisa 2013/03/20 installed: 1.0.0 edit After Save Actions Beta 0.0.6 AfterSaveActions Admin Helpers, Process Modules nik 2013/02/09 installed: 0.0.6 edit Ajax Page Search Stable 1.1.0 AjaxSearch Markup Generation, Other Modules soma 2012/12/02 installed: 1.1.0 edit Appy Beta 1.0.0 AppyAdminTheme Admin Themes almonk 2012/12/22 - download Auto Upgrade Alpha 1.0.3 AutoUpgrade Admin Helpers nico 2012/10/25 - download Batcher Beta 1.0.3 ProcessBatcher Admin Helpers, Process Modules wanze 2013/03/28 - download BBCode Text Formatter 1.4.5 TextformatterBBCode Text Formatters ryan 2013/04/22 - download Blog Profile There is a ModulesManager.cache file existing. After a refresh still 10 are shown, the cache file was updated correctly (show current time) and has 13KB - last entry Blog Profile
  18. Hi, out of the sudden the Modules Manager only shows an incomplete list of modules (10 alltogether, no filtering applied). That was after I manually uploaded the Thumbnails module. Deleting cache files from Assets or deleting the Thumbmail modules files did not help. I am running 1.07 and the limits are set to 300 files 6 redirects. Just in case.
  19. Solved. Anyway, I am always interested to expand my PW network. ...There will be more projects soon. Let me know if you are interested to join in.
  20. Hi, thank you for pointing that out. I was wondering what the problem was. I think I have a direction for a solution which is not too difficult to implement, I believe: http://processwire.com/talk/topic/2700-new-pw-project-notification-and-approving-page-changes/#entry32930 It is basically just a copying of contents under a conditions that the user has a role to see the copy button? We don't need to have this too complicated, the editors are adult members of the same company, and not unknown users.
  21. I am looking for an experienced PW developer who helps to setup a site with PW and add liquid design/mobile features. multilingual design is ready content will be maintained by a editors role (editors/translators/SEO) and moderated by a supervisor role (boss, legal dept., whatever): A module needs to be added, introducing approval of changed content (this module could end up as sponsored open source here) Language for developing: German or English. I want to do this project as soon as possible - thats the main point actually, so time is an issue and I need s.o. who is already familiar with the bells an whistles of PW. Code needs to be of a good quality, well doumented and as secure as possible. Project is under NDA More projects to come; we are just starting the switch from Drupal and static webpages. Next project: Connecting a PW site with the cool new xenforo Forums...
  22. I did this manually already but I wanted to drop my thought here about a subtle re-structuring... As default we have PAGES | SETUP | MODULES | ACCESS What I think is useful is adding MAINTAIN: ADMIN / PAGES | MAINTAIN | SETUP | MODULES | ACCESS Under MAINTAIN I move things I need to check on a frequent base while running the site such as: Comments Manager Changelog Piwik Modules Manager Logs ... content related reports and update information (while SETUP has the settings when working on the structure). MAINTAIN would be a new home for the mentioned modules and others which do reports.
  23. same here... Removing ProcessPreview fixed it.
×
×
  • Create New...