-
Posts
382 -
Joined
-
Last visited
-
Days Won
2
Posts posted by zoeck
-
-
24 minutes ago, d'Hinnisdaël said:
Strange. I added that to the module itself and it only worked for me after I added it:
protected function includeModalScripts() { $this->modules->get('JqueryUI')->use('modal'); } /* And then later */ if ($modal) { $this->includeModalScripts(); $button->class .= ' pw-modal pw-modal-large'; }
You Added it to "renderButton" in the "DashboardPanel" Class, but the Modal is used in the "renderPageActions" Function in the "DashboardPanelCollection.module" (The renderButton/renderFooterButton isn't used in the Collection)
When you add "$this->includeModalScripts();" to "if (self::windowModeModal === $mode) {" (Line 300) it works ?
- 2
-
15 hours ago, d'Hinnisdaël said:
@zoeck I implemented modal editing for the collection panels. See the latest release. You can set the mode to modal or blank for edit or view links.
The modal auto-closes on page save and the panel reloads via AJAX when an edit modal closes.
/* Open edit links in modal, view links in new tab */ $panels->add([ 'panel' => 'collection', 'data' => [ 'editMode' => 'modal', 'viewMode' => 'blank', ], ]);
This does not work directly, only after I have written the following code into the admin.php file
wire('modules')->get('JqueryUI')->use('modal');
But after that, it work likes a charm ? Thanks!
and I still have a few ideas for the PageList:
- open collapsed
- edit in modal, too ?
and one little design bug in the PageList:
- showRootPage => false -> no margin/padding left/right/bottom
-
22 minutes ago, d'Hinnisdaël said:
The modal editing of collection links is work in progress, but it's not as straight-forward as I hoped it would be ⚙️
What's the problem? ?
Just tested it with a quick and dirty edit of "DashboarPanelCollection.module". I just added the "pw-modal" class to the link, and removed the target...
And the Jquery UI is needed:
wire('modules')->get('JqueryUI')->use('modal');
It is not so easy if the modal should be closed automatically when you save ?
/BTW: i love your dashboard ?
-
1 hour ago, d'Hinnisdaël said:
The empty dashboard message looks fine here, rendered as a link. Does the dashboard itself render correctly once you configure the panels? The template file doesn't escape any of the output values, so I'm a bit confused as to why this could be. Do you have any modules installed that might overwrite or change the _() function of ProcessWire in any way?
Hm, thats strange...
The following modules are used:
ListerPro, ProcessWireUpgrade, Pages Sum, LoginPersist, Inputfield Decimal, Front-End Edit LightboxI don't think that anything here changes the _() function
Is it possible to configure the "collection", that a edit modal is used, and not target=_blank?
/edit: ok i found it... when the LanguageSupport module is activated, the problem occurs. even if only one language is active
-
Thanks for this nice Module...
Unfortunately I have a problem, I can't open the admin area any more, only the following error occurs:
Fatal error: Class 'ProcessWire\DashboardPanel' not found in /var/www/vhosts/**MYHOSTING**/site/modules/Dashboard/DashboardPanelNumber.module on line 5
? ProcessWire 3.0.148
/edit: I could fix the error, I did not upload the module via the ZIP file, but directly via the FTP ?
Are there any problems here if you install the module directly via Processwire?
And one question:
How to configure the "collection", that a edit modal is used, and not target=_blank?
Found a little bug ?
-
20 hours ago, tpr said:
I'm not sure if it is but possibly yes. Try passing it inside the "overrides" array:
Works like a charm ? Thanks!
But i think the "selectorsToHideSuperUser" function don't work properly.
My user has the superuser role, but the tabs are only hidden if I use the option "selectorsToHide", the "selectorsToHideSuperUser" values are ignored.
<?php // Settings/Delete Tab is VISIBLE with Superuser rights echo $mycalc->feel(array("text" => "<i class=\"fas fa-edit\"></i>","overrides" => array("selectorsToHideSuperUser" => "#_ProcessPageEditDelete, #ProcessPageEditDelete, #_ProcessPageEditSettings, #ProcessPageEditSettings"))); // Settings/Delete Tab is INVISIBLE with Superuser rights echo $mycalc->feel(array("text" => "<i class=\"fas fa-edit\"></i>","overrides" => array("selectorsToHide" => "#_ProcessPageEditDelete, #ProcessPageEditDelete, #_ProcessPageEditSettings, #ProcessPageEditSettings")));
-
@tpr I have a question about the options of "Selectors to hide".
Currently it is only possible to set the option in general via the admin panel, but is it also possible to set it depending on the link?
Like this:
<?php $mycalc->feel(array("text" => "edit", "selectorsToHideSuperUser" => "#_ProcessPageEditDelete, #ProcessPageEditDelete"));
-
4 hours ago, franctic-aerobic said:
@Craig A Rodway: Is this module compatible with ProcessWire 3.0+?
It works without problems with the latest stable version ?
- 1
-
Can you check which version of the module is installed?
-
There's a problem with your JavaScript and CSS Files, many 404 Errors (Console output of google chrome):
font-awesome.min.css:1 Failed to load resource: the server responded with a status of 404 (Page Not Found) MarkerCluster.css:1 Failed to load resource: the server responded with a status of 404 (Page Not Found) MarkerCluster.Default.css:1 Failed to load resource: the server responded with a status of 404 (Page Not Found) leaflet-providers.js:1 Failed to load resource: the server responded with a status of 404 (Page Not Found) leaflet.awesome-markers.css:1 Failed to load resource: the server responded with a status of 404 (Page Not Found) leaflet.markercluster.js:1 Failed to load resource: the server responded with a status of 404 (Page Not Found) MarkupLeafletMap.js:1 Failed to load resource: the server responded with a status of 404 (Page Not Found) leaflet.awesome-markers.min.js:1 Failed to load resource: the server responded with a status of 404 (Page Not Found) leaflet-providers.js:1 Failed to load resource: the server responded with a status of 404 (Page Not Found) MarkupLeafletMap.js:1 Failed to load resource: the server responded with a status of 404 (Page Not Found) leaflet.awesome-markers.min.js:1 Failed to load resource: the server responded with a status of 404 (Page Not Found) leaflet.awesome-markers.css:1 Failed to load resource: the server responded with a status of 404 (Page Not Found) (index):67 Uncaught ReferenceError: jsMarkupLeafletMap is not defined at HTMLDocument.<anonymous> ((index):67) at j (jquery.min.js:2) at Object.fireWith [as resolveWith] (jquery.min.js:2) at Function.ready (jquery.min.js:2) at HTMLDocument.K (jquery.min.js:2) /favicon.ico:1 Failed to load resource: the server responded with a status of 404 (Not Found) font-awesome.min.css:1 Failed to load resource: the server responded with a status of 404 (Page Not Found) leaflet.awesome-markers.css:1 Failed to load resource: the server responded with a status of 404 (Page Not Found) MarkerCluster.css:1 Failed to load resource: the server responded with a status of 404 (Page Not Found) MarkerCluster.Default.css:1 Failed to load resource: the server responded with a status of 404 (Page Not Found)
And the links:
<link rel="stylesheet" type="text/css" href="/site/modules/FieldtypeLeafletMapMarker/assets/font-awesome-4.6.3/css/font-awesome.min.css"> <!-- Styles supporting the use of Leaflet.js --> <link rel="stylesheet" type="text/css" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css" /> <link rel="stylesheet" type="text/css" href="/site/modules/FieldtypeLeafletMapMarker/assets/leaflet-markercluster/MarkerCluster.css" /> <link rel="stylesheet" type="text/css" href="/site/modules/FieldtypeLeafletMapMarker/assets/leaflet-markercluster/MarkerCluster.Default.css" /> <!-- Scripts supporting the use of Leaflet.js --> <script type="text/javascript" src="https://unpkg.com/leaflet@1.0.3/dist/leaflet.js"></script> <script type="text/javascript" src="/site/modules/FieldtypeLeafletMapMarker/assets/leaflet-markercluster/leaflet.markercluster.js"></script> <script type="text/javascript" src="/site/modules/FieldtypeLeafletMapMarker/assets/leaflet-providers/leaflet-providers.js"></script> <script type="text/javascript" src="/site/modules/FieldtypeLeafletMapMarker/MarkupLeafletMap.js"></script> <!-- Extend Leaflet with Awesome.Markers --> <link rel="stylesheet" type="text/css" href="/site/modules/FieldtypeLeafletMapMarker/assets/leaflet-awesome-markers/leaflet.awesome-markers.css" /> <script type="text/javascript" src="/site/modules/FieldtypeLeafletMapMarker/assets/leaflet-awesome-markers/leaflet.awesome-markers.min.js"></script>
- 1
-
@renobird the module is still actively maintained ?? any planned functions?
- 1
-
i think it's a problem with php ?
Check it with this code:
<html> <body> <?php echo "<h1>$page->title</h1><br>"; ?> <?php foreach($page->we as $member): ?> <img src="<?php echo $member->Images->url; ?>" alt=""> <?php echo $member->wemember; ?><br> <?php endforeach;?> </body> </html>
you are using <? ... but with newer PHP Versions, this isn't working with the standard configuration, so you should always use <?php instead of <?
-
4 hours ago, anderson said:
But in all results the menu is verticle. I'll learn deeper.
The Markup Simple Navigation is only creating the code for the navigation, you have to add the style (css style) of the menu yourself, the module doesn't do that
- 1
-
Did you checked the AdminThemeUIKit?
Itˋs Not 4 years old... its the newest theme ?
https://github.com/ryancramerdesign/AdminThemeUikit
(and itˋs the Standard theme in the current processwire Version, just Check in your User Profile in the Admin Panel if you use the old theme or the UIKit Version....)
-
On 4/19/2018 at 5:35 PM, adrian said:
Hey @teppo - I haven't used this module in a long time, but I am playing around with v2.0 at the moment and I see that there is no repeater/repeatermatrix support at all. I understand the old/master version does have some repeater support though.
Are you planning on support? Any possible timeframe?
Thanks!
@teppo Any news here?
I would very much like to use the module with a repeater on our intranet page ?
-
On 10/28/2018 at 6:05 PM, AndZyk said:
Front-end
ProcessWire will hopefully never dictate what you should use in the front-end. So you can use whatever you want, framework or not. If PW ever would force me to use something in the front-end, I would look for alternatives.
But there are some Problems in the Frontend when you are using Bootstrap 4 and the Front End Edit Fields... ? thats uncool (i don't know what framework (?) is used for the Frontend Editor)
- 1
-
Sounds like you want to use a "real" template system ?
- 1
-
17 hours ago, lenoir said:
It's an old post but still a hot topic…
I create a lot of websites for clients in german, sometimes in french. I often end up with a mix of languages either in the fields or templates names… Anybody working with multilanguage sites with a good practice suggestion?
I usually use english names for the templates and fields (german websites). I think everybody understands that ?
- 1
- 1
-
On 10/3/2018 at 8:59 PM, Guy Incognito said:
Can confirm we've run into this same issue with the latest Bootstrap, latest PW and latest jQuery. We're currently doing this to ensure latest jQuery for the public and the compatible older version for editors.
But this is only a workaround... we need a pw fix here... ?
It makes no sense to use an old version permanently.
-
17 hours ago, netcarver said:
Hi @zoeck
Sorry I missed your post previously. If you are still looking for LDAP integrations there are 3 that I know of...
- LdapSignIn from Conclurer.
- KreativMonkey's LDAP Helper.
- JimYost's LDAP Authentication module posting on the forum, though you might want to go with Apeisa's implementation further down the thread.
...but I suspect you've written your own by now ?
Hope that helps.
Thank you for the information!
I used the "LDAPsignin" module as base and extended it to work with an Active Directory - including group assignments and some other upgrades.
I think it doesn't make sense for me to publish the changes because it is customized for our AD environment ?
- 1
-
You can change the Logo in the AdminThemeUikit Configuration ?
Just go to Modules -> Core -> AdminThemeUikit
Or use the AdminOnSteroids Module "UiKitTweaks" ?
And you find the footer inside of this file:
\wire\modules\AdminTheme\AdminThemeUikit\_footer.php
- 2
-
20 hours ago, adrian said:
There are several outlined in the second Issue that @Robin S linked to. It would actually be great if you could comment on that issue to get Ryan's attention once again if you wouldn't mind.
Done ?
- 1
-
Oh... thats not good ?
Is there a workaround?
Is it possible that I only get the name and the Url/ID instead of the whole page`?
/edit:
It seems that the problem does not occur if you change the Page Reference field to "multiple pages"...
- 1
-
Hello,
I have a problem with a page reference field. (PW 3.0.98 and 3.0.111)
This is an employee list, each employee can also enter a substitute in his or her user profile.
If now two coworkers, mutually as representatives register themselves, the output simply hangs.
"Show all Employees" Template: employees
"Employee Page" Template: employee_entry
This are the fields of employee_entry:This is my selector:
<?php $allemployees = $pages->find("parent=/verwaltung/mitarbeiter/, template=employee_entry, emplastsync={$lastsynctime}");
And then, there's the Page Reference Field "emprep":
<?php foreach($allemployees->sort(array('emptext.lastname', 'emptext.firstname')) as $employee) { echo $employee->emprep->title; }
And if both employees have each other as representatives, the following error occurs:
QuoteAllowed memory size of 262144 bytes exhausted (tried to allocate 24576 bytes)
If another employee is selected as a representative, there are no problems!
If I open a page directly with employee_entry, there are no problems! Only if I output the list on another page (in this example on a page with the "employees" template)
I just don't know how to solve the problem ?
I hope you can help me here, thank you!
File Downloads with Categories
in Getting Started
Posted
You can use the Repeater Matrix Module for this... but you have to pay for this Module (Pro Fields):
https://processwire.com/store/pro-fields/repeater-matrix/