Nils Wiere

Members
  • Content count

    10
  • Joined

  • Last visited

Community Reputation

10 Good

About Nils Wiere

  • Rank
    Jr. Member
  • Birthday 12/25/1980

Contact Methods

  • Website URL
    http://www.nilswiere.de

Profile Information

  • Gender
    Male
  • Location
    Hamburg

Recent Profile Visitors

491 profile views
  1. Hi Evan, oh, I just overlooked your reply – thanks! However, using ProcessWire 3.0.62 (the newest master) I still can't save any bookmarks within lister. I get the same error message as before (see attached screenshot). Does anyone have an idea? I'm working on a content-heavy site and it would be great to get lister bookmarks to work. Thanks!
  2. Hi Sérgio and Robin, thanks a lot for helping out. So the Connect Page Fields module seems to be interesting for the page reference approach – I'll check that out later today. For now, I took the repeater approach, and your three bullets were essential in achieving the goal, @Robin S. That's how I do it: 1. I search for date repeaters by treating them as template (by putting "_repeater" before the field name); I can now sort and limit the array to my tasting 2. I set "check_access=0" so that all users can see the results 3. I get field data from the page the repeater is living on by using the getForpage() method. $allEvents = $pages->find("template=repeater_event_repeater_datetime, event_datetime>today, sort=event_datetime, limit=14, check_access=0"); foreach ($allEvents as $event): echo "<h4>$event->event_date</h4>"; echo "<h5>{$event->getForpage()->event_title}</h5>"; echo "<p>{$event->getForpage()->event_desc}</p>"; endforeach; So far, that works great. Since there are some tricks involved I didn't know before, I'll keep checking, if there are any "side effects".
  3. For one of my projects, I'm currently building a small events calendar in ProcessWire. One requirement is that an event may have an unlimited number of associated dates. I tried two approaches, however each approach come with a difficulty: 1) One page per event with a repeater that holds the dates. Page: Event 1 Text fields for shared event info Repeater with a date field (e.g. Jan 1, Feb 1, ...) Page: Event 2 Text fields for shared event info Repeater with a date field (e.g. Jan 10, Jan 11., ...) Problem: How can I get a chronological list with all events (dates + shared info) that is sorted like that: Jan 1, Event 1 info Jan 10, Event 2 info Jan 11, Event 2 info Feb 1, Event 1 info ... I know how to access repeaters, however all I got so far is a list structured like that: Event 1 info Jan 1 Feb 1 Event 2 info Jan 10 Jan 11 2) A page with a page reference field from which the backend user shall be able to directly create child pages for each associated date. Problem: What selector string do I need in the page reference setup, to make sure the new page is always created as child of the current page (no matter where that page lives in the backend structure)? Or is this only possible with custom PHP code in ready.php? Would you consider one of those approaches a good strategy? If so, do you have any solution to my problems? If not, is there a better way?
  4. Hi there, I want to create bookmarks based on lister searches. However, whenever I click "submit" after I configured my lister search, I get the error message "Unrecognized path" and the addition "The process returned no content." In that case this URL is opened: http://domain.tld/admin/page/search/edit-bookmark/#tab_bookmarks I am using PW 3.0.42 and Lister v0.2.4 β. I don't use Lister Pro (which is the case in this topic). I tried it with different PW installations and always got the same error. Do you have any idea?
  5. Hi neonwired, so you added the live domain to the config.php like this, right? $config->httpHosts = array('www.livedomain.tld', 'livedomain.tld');
  6. Hello Zilli, you should be able to echo the title of the current language like this: echo $user->language->title; You can set the title of the language under Setup->Languages in the backend. Best, Nils
  7. I knew there's an easy solution (as always in ProcessWire) – thanks Zeka! I wasn't aware that we have a sort option "parent.sort". So for me, this was the solution: $products = $pages->find("template=B, sort=parent.sort, sort=sort");
  8. This must be simple, however, I couldn't figure out how to do it. I got this structure in the admin tree: Page 1 [Template A] Children 1-1 [Template B] Children 1-2 [Template B] Children 1-3 [Template B] ... Page 2 [Template A] Children 2-1 [Template B] Children 2-2 [Template B] ... Page 3 [Template A] Children 3-1 [Template B] ... What I want in the front end, is this sort order: Children 1-1 Children 1-2 Children 1-3 Children 2-1 Children 2-2 Children 3-1 Plus, the order should depend on the order in the admin tree. So, if I move Page 3 on top of the tree, the children of Page 3 should appear first. I tried this, but the order seemed to be random (without a connection to the order in the admin tree): $pages->find("template=B, sort=sort"); I also tried this, and again I got a random looking order: $pages->find("root.template=A, sort=sort"); Do you have any idea? Thanks, Nils
  9. Hi there, many thanks for your help. I just updated to 2.7.1 and for some reason everything works fine now. Thanks and best, Nils
  10. Hi all, I'm just about to finish my first bigger ProcessWire project and I'm definitely amazed by the feature set and ease of use delivered by ProcessWire! Starting with the last tweaks, I wanted to implement custom styles in CKeditor. However, no matter what I do, I end up with the default styles set in CKeditor. Here’s what I did: 1. I entered the Custom Editor JS Styles Set location (mystyles:/site/modules/InputfieldCKEditor/mystyles.js; see screenshot 1) 2. I added my custom styles in the file mystyles.js (under site/modules/etc.). But I still get the default styles in CKE (see screenshot 2). Even if I delete the whole content inside mystyles.js, I still end up with the default styles. It seems as if the custom mystyles location is ignored and the styles are taken from somewhere else (probably the wire/modules folder?). Is there any setting I am missing here? Do you have any idea on how to get the custom styles to work? Many thanks and all the best, Nils