Jump to content

h4r4ld

Members
  • Posts

    26
  • Joined

  • Last visited

About h4r4ld

  • Birthday 01/26/1984

Profile Information

  • Gender
    Male
  • Location
    Cologne

h4r4ld's Achievements

Jr. Member

Jr. Member (3/6)

1

Reputation

  1. Hi, I've got some datetime fields on my template and if I try to fill them with just a date and no time they save a wrong year. I tried to save the date like 2015-12-11 and it saves 5600-12-11 or different random years, also the datetime field sometimes isn't saved at all. I verified this by trying to save this fields by adminbackend, same result. Are there any threads/known problems to this topic?
  2. I retake my old topic, because it somehow fits from the title. I want to add a dropdowninput field where the dropdown is filled by all given fieldvalues from one field of a template. I just need every value once, so I could do this with some php but I was wondering if PW has a function for that?
  3. Thanks for the example, I'll try and refer back if I went into trouble (which will happen for sure ) And, yeah, you got me with that r, after adding it, it works like expected.
  4. renderPager() should be correct -> https://processwire.com/api/modules/markup-pager-nav/ Thanks for that hint, got it working now. How about using 2 paginations for different tables on one page? For example, I have a landingpage showing the newest documents, newest users, ... now I would like to add pagination to every table of this. Is this possible or do I allways page every overview to page2 if I click on any of those /page2 links?
  5. HI hi I'm currently working on pageination my documentlisting. I Have enabled the MarkupPagerNav module and activated allow page numbers on the documentholder template. I'm using some different selectors, but as for the tests I would go with this one : $documentHolder = $pages->find("template=documentHolder, status=hidden, limit=2, sort=created, docownerid={$user->id}"); the documentholder has 4 pages, so while using limit=2 there are 2 pages, which is working as expected. Next I try to give the 1,2, next appearing. Using this: echo $pagination = $documentHolder->renderPage(); I get an array to string conversion message and no pageitems. Using this: echo $documentHolder->render() Theres no error and the pageitems are showing up, but if I try to page to page 2 PW tries to open /?page=2 and fetches the same items as on default/page1. Where is my mistake? Thanks Harri
  6. Gosh, I found it. The template is a hidden page and so I need to specifiy this in the selector.
  7. Yep, not working with that either.
  8. Ok, so I made a cache field like with autojoin on. If I'm right I should be able to do something like $allDocuments = $pages->count("doccache%=".$input->post->request) echo "There are " . $allDocuments . " docs containing your request"; Well, I don't get any results while using request that should match. I tried to add new document pages and regenerated the cache, but that ain't helped. Where's my mistake?
  9. Thanks, that's what I was missing!
  10. I don't see any cache fieldtype?
  11. That would fit quiet well and is what I expected it to do, I just don't found information like: Is this cachefield generated automatically or on demand? If on demand, what do I have to do? Can I select fields which should be in or is it all fields of a template/page? Usage is exactly like a "normal" field in a selector?
  12. Ok, that's what I found myself beside this : http://www.flamingruby.com/blog/processwire-caching-explained/ But is there any official documentation? I just recrawled the processwire site to find something without any result.
  13. Thanks, exactly what I was looking for. Can you provide some documentation on this? I didn't find anything related?
  14. Hi, I need to get all pages from a template where a searchstring matches any field of the page. $result = $pages->find('template=documentHolder, status=hidden, *=$string'); I know i could do something like $result = $pages->find('template=documentHolder, status=hidden, (field1=$string), (field2=$string), (field3=$string)'); But is there a way to do so without writing down every field the template has? Maybe something like a subselector? Best, Harri
  15. Unlink should not effect files uploaded, but files that are linked to upload, so that shouldn't be any of a problem. *Edit: Uhuh, you got me there, seems like I totally messed up the upload script from soma. Thanks for open my eyes. Do i need to save them twice always? As far as I understood from the docs its only needed if the field is an imagefield? I just store the link to the uploaded files in a field, so its nothing more than text.
×
×
  • Create New...