Jump to content

Christoph

Members
  • Posts

    61
  • Joined

  • Last visited

Everything posted by Christoph

  1. Hi there, I have a little problem with a repeater that I'm using for events, containing three fields: start_date, end_date, description On the homepage, I want to display the upcoming two events. So I have to filter out past events, sort by the dagte and set a limit for the output I thought I could do it with something like the following code, but there's no output: $nextevents = $pages->get("template=events")->events->find("end_date>today, sort=end_date, limit=2"); foreach($events as $event) : ?> <li class="future-event"><?= $event->end_date ?><span><?= $event->description ?></span></li> <?php endforeach ?> the template of the repeater is called "events" and the repeater field's name is also "events" I guess it can't be that difficult, but after trying different things and looking through the docs, I still have no idea how to solve it. Would be great if someone can help! Thanks
  2. Hi Arjen, my username is different, just didn't post it, as I'm using it also on the online-site Creating a new superuser did the trick! Thanks a lot!
  3. I have a problem with login and password reset. I'm building a site on localhost and from one day to another the admin login failed. When I try to set a new password like this: $u = $users->get('admin'); $u->of(false); $u->pass = 'superSecretPassword'; $u->save(); I get this: Notice: Trying to get property of non-object in /…/wire/core/Pages.php on line 645 Notice: Trying to get property of non-object in /…/wire/core/Pages.php on line 648 Notice: Trying to get property of non-object in /…/wire/core/Pages.php on line 657 Notice: Trying to get property of non-object in /…/wire/core/Pages.php on line 708 Notice: Trying to get property of non-object in /…/wire/core/Pages.php on line 708 Fatal error: Call to a member function numChildren() on a non-object in /…/wire/core/Pages.php on line 754 The site itself still works well, except the fact that I can't login into my admin anymore. I also tried other things described in the forums like deleting sessions and the likes. Non of them helped. Any ideas what did go wrong and how I can get back into admin? Thanks!
  4. I have a problem with login, two. I'm building a site on localhost and from one day to another it stopped working (getting the message "login failed"). When I try to set a new password like described above, I get some notices like: Notice: Trying to get property of non-object in /.../pw/wire/core/Pages.php and an Fatal error: Call to a member function numChildren() on a non-object in /.../pw/wire/core/Pages.php on line 754 helpless
  5. Thanks a lot for your quick replys, guys! Will check this out.
  6. Hi there, I need some help with creating galleries. I have a really simple Blog running on PW, using just 3 fields: title, bodycopy and images. The client wants to write some small posts and add some images. All of the content is put together in the bodycopy field that uses the CKEditor. All is good so far, but if the clients wants to add a gallery, for example 4 thumbnails in a row, and I have no idea how to accomplish that. I know it'd be easy to create a gallery from all images within the images field, but then to client looses control over where to put this gallery (before the text, after the text, or in between). She could manually put in all the single thumbs of the images, but that's really inconvenient. So, basically, I need some tipps on how to embed a gallery between some chunks of text that are managed with on CKEditor field.
  7. Hi Adrian, thanks a lot! That's the solution. The children page was missing the create pages permission. Was hard to grasp at first, but know – after some tinkering – I understand all those the dependencies.
  8. Update: Just logged in a few minutes later and it again doesn't work. So to be clear: 1. I have a template that allows "authors" to view the page and to add children. 2. I have this template assigned to a page. 3. When logged in as an "author" I don't see the "new" button next to that page, so I can't add children. What am I missing?
  9. Just had the same problem as mentioned above, that's why I stumbled upon this post. I assigned the "add children" permission to an existing template, but it didn't show up when logged in with a different role/user. Then I created a new template with the same settings and suddenly it worked. Not sure if this is just due to caching problems or maybe a bug?
  10. Hi Adrian, thanks for your help, that did the trick. Cheers, Christoph
  11. I get the following error message in my new installed PW 2.5: Field "images" is not yet ready to use and needs to be configured. Deleted the field and created a new one, but the error occurs again. Andy ideas what could be wrong?
  12. Hi onjegolders, thanks for your reply! Currently not sure what a page reference field is, will look this up Yes, some kind of intelligence is appreciated, like matching helpers and helpees from the same city or based upon same interests. The more I think about it, I feel like I have to build a separate admin tool for my needs, because their are many admin tasks that are not intend for publishing. It's more like managing a database.
  13. Hi guys, I'm currently preparing an estimate for an upcoming project where I need more than just a simple CMS. It's roughly about a website where some people can offer some of their spare time to help other people. And those people on the other hand can ask for help. To provide help or ask for help people just fill out a web form. Their data are stored in the database. Also, there are coordinators who add data records of people and their availabilities/demands to the database. We need a system that is able to find matching pairs of people that provide the kind of help others ask for. And coordinators should be able to easily connect/merge data records via the admin panel, look at all entries, mark people as available or not available and so on. All in all, a tool to manage a network of people and their availabilities/demands. I hope you understand what I mean Now, I wonder if something like this is possible with PW or if a custom solution from scratch would be better? I'm a designer who uses ProcessWire solely as a "simple" CMS for smaller sites and I'm not sure how fare I can go with it. As I want to use it as a CMS for this web site it would be great to expand it to a management tool. Possible or not? Thanks for any hints on that!
  14. Thanks for your help Nik! I emptied the cache and just tried with uploading the files of 2.2.9 once again and now it works. Still not sure what it was, though, as all the files were there on first upload … Maybe Ryan has any hints.
  15. I turned on debug mode and got this error message: Fatal error: Undefined class constant 'skipLabelHeader' in /WWWROOT/62897/htdocs/wire/modules/Inputfield/InputfieldSubmit/InputfieldSubmit.module on line 24
  16. You mean site/assets/cache ? Tried it but had no effect
  17. Hi there, I just wanted to update Processwire from 2.2.0 to 2.2.9 and downloaded the latest version from Github. Then I replaced the /wire folder and the index.php. When trying to edit a page I got an error message that something was wrong in ProcessPageEdit.module. After some trying I decided to go back to my initial version, deleted the new and re-established the old /wire folder and index.php. And no comes the real problem. It became even worse and now I can't get into the admin anymore. Very confusing. Any idea how to solve that?
  18. Ah, cool, now it's working like a charm! According to my error: Not sure what it was, solved it the quick way by deleting the page and changing the parent for the repeater fields ;-)
  19. Hi Pete, I haven't changed any settings, so it should work. But I can't check currently due to the afore mentioned error
  20. Thanks for your reply, Ryan. The problem I have is a little different. I have no problem creating output with a foreach(), the problem is that I only see that rendered HTML output if I'm currently logged into the system. So if I log out or view the page with a different browser I see nothing rendered. Oh, and while I wanted to check the page just now in the back end I got an error: Duplicate entry 'for-page-5799-5807' for key 2
  21. Just tested reusable fields and I'm really happy with this handy feature as there are so many use cases. Thanks so much for this!! Two thingsI stumbled upon: 1) I couldn't change the »input field settings« from »always open« to somethings else. It jumps back to the basics tab but doesn't save the change. 2) Is there a special setting to make the output of a repeatable field viewable to users who are not logged in? Currently I only see the output when I'm logged in.
  22. The update process is really easy Just the need for changing the .htaccess is a bit annoying as I make individual changes there. Is there a better way then just comparing the files everytime?
  23. Thanks for your help, guys! Will go with Pete's solution for now.
  24. Thanks for your reply, Jasper. The problem with the hidden status is, that you can't find the page in search results. Having a page that you don't want to show up in navigation doesn't mean it also shouldn't be searchable. Maybe this should be separated.
×
×
  • Create New...