-
Posts
1,070 -
Joined
-
Last visited
-
Days Won
16
Everything posted by dotnetic
-
How do I link to a page with a language in a multilingual website?
dotnetic replied to kaz's topic in General Support
Where are you entering the URL? Do you enter it in a CKEditor field, or is it a separate Page field (InputfieldPage)? -
Guys, just to give you an update: I still want and have to work on this module before I can release it on github. I am changing a big part of the rendering of the actions, so they work either in card or in table view. Sadly I hadn't much time in the past, because I changed my company to a GmbH, had to design a new logo and website texts, and all that legal stuff that comes with changing your company. And don't forget about my customers, who also want their work done. I hope to get some time in the next weeks, so maybe I can work after christmas on this, but no promises.
-
PW Developer Forum Login Button is Broken
dotnetic replied to Peter Falkenberg Brown's topic in General Support
I can confirm this. Please fix this ? -
@Pete @ryan I can not login into the Developer directory https://directory.processwire.com/login/. After entering my credentials, I am being redirected to the URL "http://login/" which is wrong. I want to change the information about me, so it would be nice, if this could be fixed. Duplicate of:
-
You get access to the ListerPro forum, where you can download the latest version. Maybe message @ryan per DM so he can grant you access.
-
Mine looks worse. After a week of use ?
-
Hey @ryan Just wanted to bring this to your attention: https://github.com/marketplace/actions/todo-actions Turn TODO comments inside source code into GitHub issues and closes them when they are gone.
-
DOMiD - Documentation center and Museum of Migration in Germany
dotnetic replied to schwarzdesign's topic in Showcase
I like the design of the site, but here is some criticism too: There are german passages on the english site. For example the citation from Dr. Mark Terkessidis on the home page, or the "Suchen" button on the search page. The font in the logo is really bad to read: Fonts before sponsors logo look also bad (bad antialiasing) -
How to install processwire on Laragon?
dotnetic replied to franciccio-ITALIANO's topic in Getting Started
You might even use http://processwire-master.localhost, which is better, because I had sometimes problems when using a subfolder instead of a subdomain. Sorry, @dragan said that also in his previous post. Did not read it completely. -
[SOLVED] 301 redirect loop on all pages except homepage
dotnetic replied to a-ok's topic in General Support
Please add a [SOLVED] in the topic title, so people know, that an answer isn't needed anymore. -
Robin's idea also relates to my request "Show form inputfields according to GET parameter".
-
Cool. I was totally unaware of this great feature. Will start using it today ?
-
How to install processwire on Laragon?
dotnetic replied to franciccio-ITALIANO's topic in Getting Started
Here is a more detailed answer with the steps you have to take: Download the ProcessWire Zip (or use one of the other install methods) Unzip the file in your web root and rename it to the name how your project should be named Open Laragon control panel Click "reload" button for Apache This automatically creates a virtual host with the name of your folder like "processwire.dev" (I don't remember what is the default domain of Laragon, because I changed it to .localhost) You can then navigate in your browser to this URL You will see the ProcessWire installer and just have to follow the steps -
How to install processwire on Laragon?
dotnetic replied to franciccio-ITALIANO's topic in Getting Started
Laragon is the best local Webserver for Windows. Good choice. -
Can I change the path of the template files?
dotnetic replied to franciccio-ITALIANO's topic in Getting Started
@teppo and @franciccio-ITALIANO This is exactly what I also replied here: -
How to install processwire on Laragon?
dotnetic replied to franciccio-ITALIANO's topic in Getting Started
Please follow the install instructions on https://processwire.com/docs/start/install/new/ -
@999design To deal with pagefileSecure and existing files please take a look here: https://github.com/processwire/processwire-issues/issues/1006 pagefileSecure will only prevent access for users that don't have view permission for the template, where the file is included. You will need a view template or hook that checks if a file should be shown or not (based on dates). One problem that you have with pagefileSecure ist, that if you know the path and are logged in into ProcessWire the file is viewable/downloadable regardless of the date you set.
-
Your development environment should have the same prerequisites as on your server. You should have a local web server like Laragon (on Windows) or Xammp installed, and also mirror/replicate the ProcessWire installation with the database from your live server. Then you can make modifications to these local files and upload them to the live server as they are. No conversion needed anymore. I would recommend you to use a translator like deepl.com if you are not very good with english, so your questions can be understood better.
-
How to handle multi-user multi-task scenario?
dotnetic replied to Kiwi Chris's topic in General Support
Under permissions is a setting where you can archive that users can only edit their own created pages. Like I answered here: To prevent page editing and listing pages in a normal lister or ListerPro I use hooks (this can be made in a custom module or in _init.php): $this->addHookAfter('ProcessPageListActions::getActions', $this, 'restrictListerEditAccess'); $this->addHookAfter('ProcessPageEdit::buildForm', $this, 'removeTabs'); $this->addHookAfter('ProcessPageEdit::buildForm', $this, 'restrictEditAccess'); public function restrictEditAccess(HookEvent $event) { // don't do this for superusers if ($this->user->isSuperuser()) { return; } if ($this->config->ajax) { return; } // bd($event->return); $process = $event->object; $page = $process->getPage(); $form = $event->return; if ($condition !== true) { $this->error("Thou shall not pass"); //$this->removeSaveButton($form); return; } } /** * removes edit links from lister it the user has not the correct edit access * @param HookEvent $event * @throws WireException */ public function restrictListerEditAccess(HookEvent $event) { if ($this->user->isSuperuser()) { return; } $page = $event->arguments[0]; $editAccess = $this->hasEditAccess($page); // this is my own function for checking if the user has edit access, in the core there is $page->editable() if ($editAccess === false || $this->user->hasRole('someRole')) { $actions = $event->return; unset($actions['edit']); $event->return = $actions; } } /** * removes tabs in Edit form for specific roles * @param HookEvent $event */ public function removeTabs(HookEvent $event) { if ($this->user->isSuperuser()) return; $p = $event->object->getPage(); $form = $event->return; // bd($form); $fieldset = $form->find("id=ProcessPageEditChildren")->first(); if (is_object($fieldset)) { $form->remove($fieldset); $event->object->removeTab('ProcessPageEditChildren'); } $fieldset = $form->find("id=ProcessPageEditSettings")->first(); if (is_object($fieldset)) { $form->remove($fieldset); $event->object->removeTab('ProcessPageEditSettings'); } $fieldset = $form->find("id=ProcessPageEditDelete")->first(); if (is_object($fieldset)) { $form->remove($fieldset); $event->object->removeTab('ProcessPageEditDelete'); } // hide delete tab $fieldset = $form->find("id=ProcessPageEditDelete")->first(); if (is_object($fieldset)) { $form->remove($fieldset); $event->object->removeTab('ProcessPageEditDelete'); } } -
PW 3.0.142 – Core updates + FormBuilder v40
dotnetic replied to ryan's topic in News & Announcements
I hope I can report back soon, but I am still very busy. Multilanguage is also active in my system. Beside that I also use different hooks to restrict edit and view access, so this might be another culprit. -
Well, yeah, I am using path because of different reasons. Because my images are not available via URL (or only if logged in) as I use pagefileSecure in my config. So the process mPDF has no access to the images, and therefore I use the path.
-
You need to use the disk path instead of the URL foreach ($this->page->getUnformatted($fieldName) as $img) { echo "<img src='{$img->filename}'>"; }
-
Instead use <link href="<?php echo $config->urls->templates; ?>styles/assets/css/font-awesome.min.css" rel="stylesheet" /> and place them in the same folder on your local PC. Or you modfiy the url path to the templates folder in your site/config.php
-
Front End Editing Restricted To Page Creator?
dotnetic replied to prestoav's topic in General Support
Yes, there is a way. Just go to permissions -> add new permission. Then under "Install predefined system permissions" choose "page-edit-created" and maybe even "page-edit-trash-created" if you would like that users can trash their own created pages. After saving, add those permissions to the role/s you want to restrict. I did not checked if this is working in the Frontend editor or Fredi, it is working in the ProcessWire admin.- 2 replies
-
- 2
-
- front end edit
- user
-
(and 1 more)
Tagged with:
-
[SOLVED] How to add user and date to an uploaded file?
dotnetic replied to dotnetic's topic in Module/Plugin Development
@bernhard Yeah, I think I will add this. But I had to get it working first. Thanks for the suggestion.