Jump to content

herr rilke

Members
  • Posts

    81
  • Joined

  • Last visited

Everything posted by herr rilke

  1. Hello all, I am thinking about the following requirement: there are documents (pages) and users. the user should now be able to mark a document as "read" by pressing a button. when he then calls up the document again, he finds a "read" marking - so he knows that he has done everything here. do i now create a new subpage via API, which only has the fields "pageID" and "userID" for that? and would that be an extra query on each page load to see if the combination of userID and pageID already exists to display a marker?
  2. thanks anyone and thank yout, robin s, that was the solution! plus i guess i spent some money on pro fields ?
  3. hi everyone, i'm pretty new to processwire and trying to figure out if pw is a replacement for contao in same use cases. so many interesting concepts - but still not to easy to set up a page with sections and all that ? anyway: i am able to output all children of a given page by their template: // only templates starting "section_" $tpls = $templates->find("name^=section_"); foreach ($page->children("template=$tpls") as $child){ $content .= $child->render(); } these children were insertet by a pagetabel field and they are rendered as expected. if i try to do that using the pagetable object, it does not work: if ($page->pagetable) { foreach ($page->pagetable as $pt) { $content .= $pt->name .'<br>'; // works $content .= $pt->id .'<br>'; // works too $content .= $pages->find('id=' . $pt->id)->render(); // returns a formatted link ... ?! } } surprisingly that only give's me a link to the child page instead of display it's contents. anyone to guide me... ?
  4. hi aComAdi, how did you solve the problem? running into this... some years lager ?
  5. ah: processwire is 3.0.210
  6. hey kaz, how did you solve that error? i ran into the same issue today.
×
×
  • Create New...