Jump to content

kongondo

PW-Moderators
  • Content Count

    6,201
  • Joined

  • Last visited

  • Days Won

    101

Everything posted by kongondo

  1. kongondo

    Fatal Error

    Yes. A DB search revealed the name in template_bak
  2. kongondo

    Fatal Error

    Um, nope. There is no user-hunt2 template πŸ˜„ Just hunts (modified 5 hours ago) and user-hunt (modified 2 days ago). I had a look and nothing obvious jumps at me. All I can see via debugging (and the error), that somewhere, a user instance (ProcessWire\User) is being converted to a page (ProcessWire\Page). I am pretty sure it has to do with a change made to the settings rather than a change at a template file level (since I don't have your template files and I see the error). I'll have one last look and if I can't get it to work, I'll pass it to you with the details on how you can get in and undo your previous changes.
  3. That's not how it works πŸ˜„ ProcessWire does not just read files on your system arbitrarily Templates have to be 'registered' with ProcessWire Templates do not need to have a template file (some of the files you are seeing in the ftp) Template file names do not need to match the name of the template (i.e., default is that they match, but this can be changed) Some developer uses the templates folder to store PHP files they can include in their template files or modules Hooray! We have (partial) lift-off πŸ˜„
  4. kongondo

    Fatal Error

    OK, I got in (admin) with a bit of a hack πŸ˜„. Would you like me to show you how so you can go make changes yourself? i.e., undo the last 'user template' thingy. Or would you like to outline what you did so I can try undo?
  5. kongondo

    Fatal Error

    No, not here πŸ˜„ PM How big is it? You might not be able to attach it if it bigger than some set size.
  6. kongondo

    Fatal Error

    I'm not sure how this multiple users template works but there's possibly other references to the template you deleted. I can't set up a test site now to check. Are you able to set up a duplicate remote test site (or send me a db dump of such a site) that we can have a look at? Backup your db before making any changes.
  7. kongondo

    Fatal Error

    Yes. Via the database. Was site working before this change?
  8. kongondo

    Fatal Error

    Most likely related to what you were doing here?
  9. @Pip, Moderator note: Hi. I moved your question here, the support forum of MarkupSimpleNavigation.
  10. https://processwire.com/docs/start/install/upgrade/
  11. $news = $pages->find("template=news-article,sort=-publish_date, publish_date<$today,id!={$page->id}"); PS: if publish_date is a datetime field, then ProcessWire already knows 'today' (string) πŸ™‚.
  12. @horst, if you have a chance, please look at the above? Sorry for pinging you like this.... πŸ™‚
  13. No Your 'Our Sessions' page needs to have children for this (and the other similar) code to work: The children will be titled Huddersfield Eagles Junior Badminton Club, etc. In addition, those children: Need to use a template named session. That template (session) needs to have the following fields: session_type, session_day, session_venue, session_time and session_area
  14. That's the one. It seems the sessions page does not have any children or some of their settings were changed: Is the sessions pages titled Sessions or Our Sessions? Does it have children? Does the site have a field named session_venue? What type of field is it? PageReference, Text, other? Does the site have fields named session_type, session_day, session_time and session_area? What type of fields are they? Does the site have a template called session?
  15. Hi @pmichaelis, I'll have look. Thanks for reporting.
  16. OK, this code just shows where the scripts are called but not the PHP that fetches the accordion items. Not really. It's fine in footer.inc in order to load JavaScript last (it's a page load optimisation thing). I bet this is where the PHP (ProcessWire) code to fetch the accordion items from the database items is (unless someone deleted it :-)). Please show us the code in sessions.inc. Mostly likely there will be a $pages->find() or a $pages->get('/some/path')->children();. The items probably use a template called session(s). PS: Always wrap your code in the code blocks <>.
  17. I doubt you'll find this :-). In ProcessWire, JavaScript stuff is handled on the client side. This wouldn't be saved with the page (database). There are two things on that page. The tabs and the accordion. Both are definitely built using JavaScript. The usual way to do this is to output items in your template file (e.g. items from a $pages->find() and in a html block, identify them using an ID or a class. E.g. <div id="something">. There would be JavaScript code in the template file or included via some script that will look for "#something" and build the final markup (i.e., the accordion, etc). Looking at the HTML source code of your sessions page (F12), it seems the tabs are built using bootstrap. The accordions are probably built using jQuery. This is the code from the source code on the sessions page: <script> $(document).ready(function() { $('.accordion .accordion-section-title').removeClass('active'); $('.accordion .accordion-section-content').slideUp(300).removeClass('open'); function close_accordion_section() { $('.accordion .accordion-section-title').removeClass('active'); $('.accordion .accordion-section-content').slideUp(300).removeClass('open'); } $('.accordion-section-title').click(function(e) { // Grab current anchor value var currentAttrValue = $(this).attr('href'); if($(e.target).is('.active')) { close_accordion_section(); }else { close_accordion_section(); // Add active class to section title $(this).addClass('active'); // Open up the hidden content panel $('.accordion ' + currentAttrValue).slideDown(300).addClass('open'); } e.preventDefault(); }); }); </script> Looking at the HTML source code still, it seems your accordions are empty. That's why they are not opening. Edit: So, if you can find out the template file or possibly a .inc file that has the above script, we can help you with how to output the accordion content.
  18. There's these events to hook into: https://getuikit.com/docs/sortable#events. Most likely you want the moved event. Here's some code stolen from the wild and a pen from the said wild: UIkit.util.on('#sortable', 'moved', function (item) { // do stuff }); And a specific example on sort order: https://stackoverflow.com/questions/47549648/uikit-how-to-get-order-with-the-sortable-component
  19. @Mamun Paul, Welcome to the forums and ProcessWire. Please don't double post. You asked the same question here and @adrian provided a response. Thanks.
  20. I have no idea. It's a JavaScript accordion and I have no idea which one the developer used or what is supposed to go in there. Maybe if you could show us the code on the relevant template file....
  21. Just a note that this link has moved here: https://getkirby.com/docs/cookbook/extensions/ab-testing
  22. Hi @Michael Pope, Welcome to the forums.. Maybe these topic can get you started?
Γ—
Γ—
  • Create New...