-
Posts
11,210 -
Joined
-
Last visited
-
Days Won
373
Everything posted by adrian
-
Actually AceEditor does support this stuff pretty well - I use it in Tracy's Console and Template Editor panels. Perhaps someone could put together a PR for the Hanna code module to add these?
-
@M.O.Z.G - Tracy is up to 4.3.1, so please try that version. If the problem still persists, could it be related to SQLite? Are you really not running MySQL? Does SQLite support PW in general?
-
Hi @M.O.Z.G - I am going to be away from my computer for the next few days, but just wanted to check in on this SessionHandlerDB stuff. What version of Tracy are you running - I thought all the issues with SessionHandlerDB were sorted out in recent versions. There is one outstanding issue I am waiting on Ryan for a fix in the PW core, but otherwise it should all be working. Please let me know and if you are running the latest version, then I'll look into it more later.
-
Hey @kongondo - me again I have another issue for you - I recently deleted a page that was driving the matrix rows (ie in the "data" field in the DB), but it didn't remove that row from the matrix table. Maybe this in intentional to prevent potential data loss, but it seems like there is no way of removing these without a manual SQL query to delete the appropriate entries from the DB. I am away from my computer the next couple of days and don't have time to test further right now, but please let me know if you have any trouble reproducing and I'll run some more tests.
-
@M.O.Z.G - I think you must be running the Legacy version of the Tracy core? Do you have PHP 5.4+ so you can run the Master version? That said, I still don't know why all those "previous" bars are staying like that. Do they go away if you clear the PW session (log out and back in again)? Does the problem continue after that? When did this start happening for you - was it a PW or Tracy upgrade, or a move to a new server? Any unusual session settings on the server?
-
Are you doing anything unusual with the way you are loading these pages? It looks like it's trying to load as an image? Have you done some with headers/content type?
-
In the source code of that page there are lots of entries like this one: <b>Notice</b>: Trying to get property of non-object in <b>/home/rolspace/public_html/hd/praxiszurvorstadt/site/templates/team.php</b> on line <b>13</b><br /> Can you show us the code for that line?
-
In your /site/config.php set: $config->debug = true;
-
Do you have debug mode on so PHP errors will show on the page?
-
Seems related: OT: don't forget about Tracy's Module Disabler panel.
-
How to uninstall FieldtypePageTitleLanguage?
adrian replied to charger's topic in Multi-Language Support
It should be used on the title field, but not the name field. Just go to the title field settings an change the type to "PageTitle". -
ProcessImageMinimize - Image compression service (commercial)
adrian replied to Philipp's topic in Modules/Plugins
The service seems to be dead. Their site isn't loading. I actually removed the module from the modules directory last week when I noticed this. -
And if you want an optimized monochrome version (without the gradient on the inner part of the P), go to https://simpleicons.org/ Maybe this version should also be added to that main repo as well?
-
Of course - just choose a different user and click "Switch". Don't forget to set a session length before initially clicking Logout though so that the User Switcher is activated in the first place. Sorry if it's not totally intuitive - I haven't had much feedback on this feature yet.
-
I was trying to be extra cautious just in case someone could spoof DETECT mode, although I don't really think that is an issue - I will revisit this sometime soon, because it would be nice if this was always available. Use the "Logout" button - that will log you out so you are a "guest", but still keep the Tracy debug bar available and keep the User Switcher session alive. Feel free to post any suggestions for improvements as you play around with this.
-
Hi @Ivan Gretsky - you need to manually set the output mode to "DEVELOPMENT" to make the User Switcher work. I initially set it up this way as an additional security layer, but I am thinking about revising the need to do this. Let me know if you still have any problems.
-
@palacios000 - you need the "filename" rather than "url" of the attachment. Also if the files field allows more than one, make sure to do first() etc as well.
-
Hey @tpr - as I mentioned here: https://github.com/ryancramerdesign/AdminThemeUikit/issues/20, the icons only PageList option doesn't work in the UiKit theme sidebar. Now maybe Ryan will add this option to the core, but if not, it would be good to get fixed in AoS. Also, the full width hover links don't work. And also wondering if you can make an icon for the template link in the PageList - this would also help with allowing the width of the sidebar to be narrower. I understand that the UiKit theme is still a moving target, so just ideas for you at the moment
-
AddHookAfter("save"...) on Page template ==("")
adrian replied to Mathroth's topic in Module/Plugin Development
You might also try conditional hooks: https://processwire.com/blog/posts/new-ajax-driven-inputs-conditional-hooks-template-family-settings-and-more/#new-conditional-hooks -
Image field creation via API requiring field to be saved before use
adrian replied to hellomoto's topic in General Support
It's probably the valid extensions and missing max files settings - take a look at the Details tab of an image field. I would set those and maybe also the formatted value setting. -
AddHookAfter("save"...) on Page template ==("")
adrian replied to Mathroth's topic in Module/Plugin Development
The page object is not available in init(). You need to use ready() -
Try seats.name=5 and year.name=2008 With page reference fields you are supposed to specify the subfield from the page that has been selected. I never actually realized that some work without specifying the subfield, but I just tested an can confirm what you are seeing. Not sure if this is really a bug or not, but I would definitely recommend always specifying the subfield (either name, title, or any other field from the selected page).
-
Hey @kongondo - note the Page within each Matrix item. Each one of these contains a full reference to the current page. This comes from dumping $page->matrix_field Here is the dump of $rows and $columns from the export function. You can see that each row is a full PW page object. Is this expected?
-
This should work: wire()->addHookBefore("ProcessLogin::executeLogout", null, "setRedirect"); function setRedirect(HookEvent $event) { $event->object->setLogoutURL(wire('pages')->get('/')->httpUrl); }
-
In repeaters: and if you need it for PageTable, @Robin created this: http://modules.processwire.com/modules/limit-page-table/