-
Posts
11,214 -
Joined
-
Last visited
-
Days Won
373
Everything posted by adrian
-
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?
-
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?
-
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.
-
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.
-
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?
-
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?
-
Try: foreach($page->children("sort=sort") as $form)
-
-
For a fee: https://insight.io/pricing
-
This might be useful to you: https://processwire.com/blog/posts/processwire-core-updates-2.5.14/#multiple-templates-or-parents-for-users
-
I get the metaphor I was after the specifics of what additional functionality you are looking for!
-
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?
-
Module idea: index + search file-contents
adrian replied to dragan's topic in Module/Plugin Development
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.- 7 replies
-
- 1
-
-
- file-search
- uploads
-
(and 2 more)
Tagged with:
-
OT, but an FYI - you don't need to make $wire global, just use $this->wire()
-
Module idea: index + search file-contents
adrian replied to dragan's topic in Module/Plugin Development
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- 7 replies
-
- 2
-
-
- file-search
- uploads
-
(and 2 more)
Tagged with:
-
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.
-
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?
-
What exactly is level 2
-
You are mixing PHP and HTML incorrectly. Close PHP with ?> at the end of the first line - that way it won't throw the error on the opening <div on the second line.
-
@benbyf - not sure whether you mean real content, or dummy/placeholder, but if the latter, then maybe you want to check out:
-
Thanks again @sodesign - I have added that on that line, and also a few others. Please test the latest version.
-
If you do try Dynamic Roles, please check out this: https://github.com/ryancramerdesign/DynamicRoles/issues/14 It's a super easy fix, but I don't really understand why no-one else seems to have noticed this - maybe it's just me somehow
-
No worries - thanks for reporting and helping to debug. I have committed a new version with this fix.