Jump to content

pwfans

Members
  • Posts

    49
  • Joined

  • Last visited

Everything posted by pwfans

  1. Using page reference field to get some users under certain role: - At input tab, i select "Custom find" to query users under certain roles. Problem is: for user_1 which is not superuser, above field doesn't work, page reference content not displayed. However if i give superuser role to user_1, above field work like expected which of course, i don't want to give superuser role to user_1. I already tried check all permissions available to user_1 and add custom predefined system permissions (user-admin-all, user-admin-[role]), still doesn't work.
  2. On localhost, icon spinner not loading when using option D (dialog editor) in front-end edit, looks like below : This must be path problem to fontawesome css but i can't find which file need to edit.
  3. Yes !, it fixed in this update, Thanks ?
  4. i"m on Win 10 x64, using XAMPP portable x64 7.3.14
  5. Any idea why item suggestion not listed correctly ? ( processwire 3.0.148) On configuration: Result
  6. Great ! i will use this for now, but module will be super great ! easier to maintain. Thanks a lot @Robin S
  7. Hello there, Anyone have solution for simple field type text with dropdown support ? basically i need dropdown field type which can be filled also with custom text like this in html : <input type="text" list="predefined" name="customlist"> <datalist id="predefined"> <option value="option-A"> <option value="option-B"> <option value="option-C"> </datalist> The closest thing is Inputfield Selectize but it is too overkill, and Text Input Awesomplete which not dropdown but autocomplete. Thanks
  8. @kongondo is there any update about how to properly uninstall this module ? i have same error message like @szabesz case. Thanks
  9. For others need this solution using css, no need to use admin custom file module, just make custom admin css file inside template folder, add path to that css to admin.php inside template folder. Original reference :
  10. @bernhard - CSS solution doesn't go, it will need this module which doesn't work on my side , i already read and do what docs said but css just not loading. - Hook solution work !, i'm blank with coding in hook, is there anyway to auto truncate by detecting template and field? no need to re save the page ? if it's need to work that way, it's ok, it's already much better than default, thanks a lot for this hook solution ?‍♂️
  11. One of my clients site is using textarea field for main information, title field is not necessary to use, so when he use texarea in "List of fields to display in the admin Page List", page tree show multiple line with long text. How to force textarea content to single line ?, just like gmail inbox : subject is auto truncate with menu show up at right side when hovering, it would be supernice if admin tree page list can be done like that. Thanks
  12. Confirmed, same error using PW 3.0.123 and 2.1.3 module version, in my case still doesn't work even after uninstalled the module. Fatal Error: Uncaught Error: Call to a member function get() on null in ...\site\assets\cache\FileCompiler\site\modules\ProcessSetupPageName\ProcessSetupPageName.module:129 Stack trace: #0 ...\site\assets\cache\FileCompiler\site\modules\ProcessSetupPageName\ProcessSetupPageName.module(298): ProcessSetupPageName->createFromFormat(Object(ProcessWire\Page), 'parent.title') #1 ...\wire\core\Wire.php(386): ProcessSetupPageName->___SetupPageName(Object(ProcessWire\Page), Array) #2 ...\wire\core\WireHooks.php(723): ProcessWire\Wire->_callMethod('___SetupPageNam...', Array) #3 ...\wire\core\Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessSetupPageName), 'SetupPageName', Array) #4 ...\site\assets\cache\FileCompiler\site\modules\ProcessSetupPageName\ProcessSetupPageName.module(93): ProcessWire\Wire->__call('SetupPageName', Array) #5 ...\wire\core\WireHooks.php(813): ProcessSetupPageName->{closure}(Object(ProcessWire\HookEv (line 129 of ...\site\assets\cache\FileCompiler\site\modules\ProcessSetupPageName\ProcessSetupPageName.module)
  13. really like this, will be complete if can do bulk export too, currently i'm using custom php script in front end for huge data export, but prefer if i can do this in admin area.
  14. Is there anyway to always enable this whether debug mode is on or off ? this is really usefull.
  15. Just install it on 3.0.98, so far didn't found any problem .. yet.
  16. Sure, first pardon for my english ? 1. Create "wireRenderFile('name-of-file')" contain html code <a href='link to page x' target='iframe x'> link AND small size <iframe name="x"> depend on how much text result will be, give css class to a href so it is like any other in admin page button, iframe used here so when a href above clicked, the result will be displayed in iframe, not opening in new page. DO NOT use <form><button></button></form> in this page, it can't be executed. 2. Create new 'page x' and 'template x' file as a href link target in step 1 , processing code will be inside this template file, you can really flexible here by using get URL parameter in step 1, such ?id=something&status=something, example case is in invoice page, you can send different content email notification (unpaid vs paid) using one button. Hope this can help somebody else trying to send mail in admin page edit.
  17. Thank you, what stupid i am ! ? $user->isSuperuser() Yes, this one work ! thank you. if ($user->isSuperuser()) { echo "do this"; } else { echo "do that"; } Mean: if current user login has superuser role, do this.
  18. Is there any builtin session created automatically when admin logged in ? Currently i do this way to detect admin login or not; - Install core module Session Handler Database, i can see in database when admin login/logout - Because i don't know whats API to use to to fetch above data, i'm using $db->query("select .. from .. where") - From query result above i can make if statement admin logged do this, else do that for any page, eg: prevent opening certain page if admin not login. Anyone knows what API to use to handle that process ? thank you
  19. Thank you for developing this useful module, now i can send email to certain user from admin easily, inspired from here : For those who need more explanation: Button is actually <a href> to template which will open new page (yes very ugly behaviour, read below) contain custom php code , not inside <form> action because <form> not allowed inside textarea. To prevent opening new page when click the button, make an <iframe> inside the template as a target button, that's it, beautifully execution like native form in admin page.
  20. Make it compatible to pw 3.x please ..
  21. Unfortunately, still didn't work. End up using alternate solution: using symlink, not really pretty like htaccess but similar result. @szabesz BTW thanks for helping to references, indirectly that refer to alternate solution above.
  22. Yes i'm pretty sure, clean install 3.0.62 , 3.0.96 and 3.0.98 Start from 3.0.96 i can't use : RewriteRule ^(.*)$ /subdirectory/$1 [L] Below code work but not hiding subdirectory in URL RewriteRule ^(.*)$ /subdirectory [L] Yes i have tried all method i found in this forum and stackoverflow, none work yet. Thanks for this, yes it is there.
  23. Hello, 1. Anybody can help, why this htaccess (location in root) doesn't work at 3.0.98 ? it show 404 RewriteEngine on RewriteRule ^(.*)$ /subdirectory/$1 [L] That rule works in 3.0.62 It redirect root request to subdirectory processwire installation and hiding the subdirectory name in url. I have try to uncomment htaccess inside subdirectory processwire installation : RewriteBase /pw/ to RewriteBase /subdirectory/ Doesn't help, still 404 when open the site from root domain. 2. Is there anyway to find processwire version from processwire files ? not from admin login page. Thank you.
×
×
  • Create New...