-
Posts
10,902 -
Joined
-
Last visited
-
Days Won
349
Everything posted by adrian
-
How are you posting as a different user? Are you logged in as a different user, or just entering a different name and email address? How are you retrieving the author - via "cite", or "created_user_id"?
-
Hey @bernhard - sorry I am not following exactly what happened when generating the PDF - can you please provide more details/code as I would like to investigate that further. As for turning Tracy off - there is a "Disable Tracy" button on the Panel selector. There is also a dedicated "Tracy Toggler" panel/button. With either of these options, Tracy won't be loaded until it is enabled again, via a single icon that is positioned instead of the full Tracy debug bar. Is this what you are looking for, or are you wanting some other way to disable? I am still wondering if perhaps your PDF generating problem is indicative of a bug in Tracy that needs fixing. Is it an AJAX call? Code examples would be helpful please.
-
Github Pull Request - I linked to it above, but here it is again: https://github.com/ryancramerdesign/ProcessWire/pull/954 That really depends on how many comments the site is likely to get and how much time there is for moderation But then again, if there is no approval process for registration, it doesn't prevent spam comments anyway.
-
Here is the post with the Lister Mode screenshots: https://processwire.com/talk/topic/6102-batch-child-editor/?do=findComment&comment=100763 You can set it up to edit any/all fields using the Lister interface. The only problem is that it doesn't allow for adding new items/child pages. Maybe what we actually need is to modify the repeater field to allow it to store pages under a specified parent within the page tree, rather than under Admin > Repeaters
-
You're setting the "name", but there isn't a "name" field, it's the "cite" field that you need to populate the new comment with. Maybe you could take a look at my old PR and update it for PW 3 and re-submit because it takes care of this without manually building/processing the comment submission form.
-
Is this what you are referring to: http://processwire.com/api/ref/fieldgroups/ Not sure why it isn't linked - must be missing from the API Explorer script that @ryan runs to generate the ref pages. There actually seems to be the opposite problem with: http://processwire.com/api/ref/wire-database-backup/ - that page 404s, but is linked to under Core Classes > WireDatabaseBackup in the dropdown.
-
Again - using @fbg13's code is not pulling the value from the cite field, but rather from the details of the currently logged in user. If you require that a user is logged in before commenting, that will be fine, but if not, it will always return the guest user, so you would need to figure out the issue with cite. Let us know what you find regarding the cite DB column/field. As for why it might not be being populated, are you using $page->comments->renderForm() to generate the comment form, or are you creating it manually? Is it asking for "Your Name" along with email address and the actual comment The "Your Name" field is what populated the "cite" field in the db.
-
Remember that the "cite" field is not storing the same info as the "created_users_id". In most cases, "created_users_id" will be "40" - the ID of the guest user. "cite" can be entered manually. Have you checked the "cite" field in the DB table for the comment field? Is it actually being populated? May or may not be useful, but if your users are always logged in, check out this very old PR: https://github.com/ryancramerdesign/ProcessWire/pull/954
-
Just an FYI - I have that setting on (as is default), and if I link to a page without the trailing slash, it always redirects to the slash version. Any chance you have something that might be hijacking the redirect?
-
@Sipho - You can choose different templates for Repeater Matrix fields - that link I provided shows examples and states: But, as with repeaters, they are not pages with URLs that can be directly visited - you could probably "fake" this by using URL segments on the parent page and use the passed values to determine which repeater item to show. OT - I completely agree that the PageTable interface is not ideal - seems to me we need the repeater matrix editing interface for PageTable fields as well. When the PageTable field was added, repeaters didn't support ajax loading, hence the modal editing interface to ensure it was scalable with lots of items.
-
Not free, but check out Repeater Matrix: https://processwire.com/api/modules/profields/repeater-matrix/
-
How to add repeater items to repeater inside repeater matrix
adrian replied to Raymond Geerts's topic in API & Templates
Take a look at this: https://github.com/adrianbj/ProcessAdminActions/blob/master/actions/PageTableToRepeaterMatrix.action.php It's purpose is to convert a PageTable to RepeaterMatrix, but you should find the code snippet in there that you need. -
Another option is the functions API: https://processwire.com/blog/posts/processwire-3.0.39-core-updates/#new-functions-api which lets you do things like: pages("template=basic-page")
-
Why are my pages only accessable in default language?
adrian replied to Timo's topic in Multi-Language Support
This will happen automatically if the fields for the page don't have a translated version - they will fallback to the default language. Also, just an FYI - you can also use Admin Actions to batch activate languages. -
Why are my pages only accessable in default language?
adrian replied to Timo's topic in Multi-Language Support
Also, just an FYI - you can also use Admin Actions to batch activate languages. -
CSS issues again right now: https://chrysemys.nl/verspreidingen/mississippi/ The CSS file is not found: https://chrysemys.nl/site/assets/aiom/css_chrysemys1f1a1b4c7f9475a33fbccc73a9188593.css If AIOM is causing these issues, then there must be something wrong somewhere
-
No ideas are silly - just looking for a consensus before making any changes.
-
Maybe, but on my Mac keyboard, the ALT key is closer to Enter than the CMD or CTRL keys, so for me that is the easier thing to use to clear and run. How many people out there are using the actual "Run" button instead of the shortcut? I know I do occasionally on page reload when the console isn't in focus, but it's not often. I guess my reasoning for a "Clear Results" button, rather than clearing by default is to keep it a little similar to the behavior you see with a regular terminal/command line where you have to explicitly clear what has been returned. Any strong feelings on this? PS - if we had two radios then we need to decide whether that status should be remembered or reset - sounding unnecessarily complicated to me
-
I'm happy to adapt if needed, but to be honest I almost always use the ALT+Enter option to run the code which automatically clears before running: "Enter PHP code, then use CTRL/CMD+Enter to Run, or ALT/OPT+Enter to Clear & Run." Does this work for you, or do you still think we need a change?
-
Seems to be fine now - before I couldn't get the css files to load, so there was no page styling at all. I did reload a couple of times to check. Maybe it was an issue with AIOM, or some network glitch, but the css on other pages was ok. Maybe nothing to worry about, but I would suggest keeping an eye out.
-
Just a quick note - the "Page Delete" module is obsolete - that functionality has been in the core for quite some time now.
-
@webhoes - the site looks fantastic, but just wanted to let you know that some pages are having css issues, eg: https://chrysemys.nl/habitats/ and https://chrysemys.nl/verspreidingen/kansas/ I expect there are many more also.
-
back to the roots: problems with simple hooks :(
adrian replied to bernhard's topic in API & Templates
Hey @bernhard - I just PM'd you with a new version that should work as expect with ready.php and hooks inside it. If you can test for me, hopefully I can get a new version released. Thanks! -
There are some links and also some code for creating repeaters and adding fields to it here: Shouldn't be anything special about doing it from a module. HTH.
-
Nope - you just select the template of the parent page and the template that you want to use for the child pages from the module config settings. It should be pretty obvious once you start with it.