pwfans
Members-
Posts
49 -
Joined
-
Last visited
Everything posted by pwfans
-
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.
-
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.
-
Yes !, it fixed in this update, Thanks ?
-
i"m on Win 10 x64, using XAMPP portable x64 7.3.14
-
-
Great ! i will use this for now, but module will be super great ! easier to maintain. Thanks a lot @Robin S
-
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
-
Module Module: RuntimeMarkup Fieldtype & Inputfield
pwfans replied to kongondo's topic in Modules/Plugins
Yes it work ! thanks a lot -
Module Module: RuntimeMarkup Fieldtype & Inputfield
pwfans replied to kongondo's topic in Modules/Plugins
@kongondo is there any update about how to properly uninstall this module ? i have same error message like @szabesz case. Thanks -
single line for very long text in admin page list
pwfans replied to pwfans's topic in General Support
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 : -
single line for very long text in admin page list
pwfans replied to pwfans's topic in General Support
@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 ?♂️ -
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
-
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)
- 100 replies
-
- template
- autogenerate
-
(and 2 more)
Tagged with:
-
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.
-
Show field label besides field name in "edit template" view. Possible?
pwfans replied to isellsoap's topic in General Support
Is there anyway to always enable this whether debug mode is on or off ? this is really usefull.- 14 replies
-
- field name
- field label
-
(and 1 more)
Tagged with:
-
Just install it on 3.0.98, so far didn't found any problem .. yet.
- 74 replies
-
- 1
-
- fields
- alter table
-
(and 1 more)
Tagged with:
-
Module Module: RuntimeMarkup Fieldtype & Inputfield
pwfans replied to kongondo's topic in Modules/Plugins
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. -
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.
-
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
-
Module Module: RuntimeMarkup Fieldtype & Inputfield
pwfans replied to kongondo's topic in Modules/Plugins
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. -
Make it compatible to pw 3.x please ..
-
htaccess in 3.0.62 doesn't work in later version
pwfans replied to pwfans's topic in General Support
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. -
htaccess in 3.0.62 doesn't work in later version
pwfans replied to pwfans's topic in General Support
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. -
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.