Jump to content

adrian

PW-Moderators
  • Posts

    10,902
  • Joined

  • Last visited

  • Days Won

    349

Everything posted by adrian

  1. Don't forget to thank @Robin S - it was his idea
  2. But if it doesn't have access to "modules" then you can't use the PW Upgrade module either and I am pretty sure there are a lot of people using that. Sure it may not be the most secure approach, but there will always be some trade-off.
  3. adrian

    Hanna Code

    Pretty comprehensive docs here: http://modules.processwire.com/modules/process-hanna-code/ Not meaning to just palm you off to the docs without support, but your question isn't really that clear - I don't know where the variable is coming from or what you want to do with it
  4. I think there were a couple of really early 2.x bugs and one panel that didn't work, but I think that was it. Anyway, you have moved on now, so no need to worry
  5. It should have worked on 2.8. I tested on 2.7 early on, but now restrict testing to 3.x, but I don't really know why it wouldn't have worked on 2.8 - did you get errors?
  6. Google is your friend in cases like this: https://stackoverflow.com/questions/9575914/table-is-read-only Not sure why you would have gotten in that situation though. Maybe it's the innodb recovery mode setting?
  7. If you are in a function or a loop you can put those negative conditionals first and "return", "continue", or "break" - this can help to reduce nesting.
  8. You might also find https://processwire.com/talk/topic/4865-custom-upload-names/ useful - that way you can control the name of each image on the page and also append an ID to the end of the name using the ### formatting option.
  9. Hi @itsberni - I certainly could add it, but on sites with a lot of users, the interface for selecting allowed users would need careful attention. Is there any reason you couldn't add a new custom role to just the specific user and use that role to provide access?
  10. Bummer Not a fix, but a hint for Tracy - you can simplify that code to: d($page->children->each("id")); Are you sure you don't have any sort rules defined either at the parent page level (on the Children tab) or for the template under the Family tab?
  11. Try: foreach($page->children("sort=sort") as $form)
  12. This might be useful to you: https://processwire.com/blog/posts/processwire-core-updates-2.5.14/#multiple-templates-or-parents-for-users
  13. I get the metaphor I was after the specifics of what additional functionality you are looking for!
  14. Right - yes it is just for the backend, but it would be pretty easy to extend it to support frontend access restrictions as well. Fancy adding that and submitting a PR?
  15. If someone does decide to build this, take a look at the attached pdftotxt file in this post: https://processwire.com/talk/topic/3513-module-site-indexer/?do=findComment&comment=34470 - it's not fancy, but gets the job done. I haven't used it in a PW project yet, but I have it running on an older site for making the site search script return PDFs based on their content.
  16. This part is covered by the Template Resources panel in Tracy. Perhaps it's time to parse the associated docblock and make that available as well - perhaps expandable like I have done in the Captain Hook panel?
  17. OT, but an FYI - you don't need to make $wire global, just use $this->wire()
  18. Take a look at these: https://modules.processwire.com/modules/indexer/ and https://modules.processwire.com/modules/elastic-search/ If these don't do everything you need, and you want to build something different, I would recommend looking at elastica (https://github.com/ruflin/Elastica) and then googling elastic search word/excel/pdf. You might also find some useful code here: https://github.com/pydio/pydio-core/blob/develop/core/src/plugins/index.elasticsearch/src/ElasticSearchIndexer.php https://github.com/pydio/pydio-core/blob/51dd7015831f7d9506fc426d7e81c1ab36e71922/core/src/plugins/index.lucene/Zend/Search/Lucene/Document/Docx.php#L24
  19. Take a look at: https://processwire.com/talk/topic/11499-admin-restrict-branch/ It works relative to pages, rather than templates so you don't need to set up specific templates. It can also be user specific, rather than role specific. It may or may not work out of the box depending on your exact needs, but it might provide a good starting point to create something that does.
  20. Hi @Rudy - I don't have a reason for you, but I just tested with 1506209 characters and everything was saved correctly. I also don't see any truncation settings other than that 80k limit Does it work for you? Maybe something with their browser?
×
×
  • Create New...