Jump to content

joe_g

Members
  • Posts

    395
  • Joined

  • Last visited

Everything posted by joe_g

  1. joe_g

    parentmost

    Thanks, – but rootParent is absolute to the root AFAIK. What I'm looking for is the topmost page right under an arbitrary page. "The top most parent page under page X". – In your other answer, how do I know what page is the top-most page of the resulting parents? /J
  2. Hi, how can i get the top level of a certain template? Something like $page->parentMost('template=thing'); perhaps. Or, How can I get the top level page under a certain page. I'm looking for rootParent, but relative to a page..? Like $page->topMost($aTopLevelPage); .. or something.. thanks for any ideas, J
  3. O blast, i missed it. find works great! I did something else wrong. thanks!
  4. thanks, forgot to mention, $page->all_list; is a page list (page field), not child pages. So find doesn't seem to work No other way to non-destructively filter a PageArray? Can I clone a PageArray? Is there a way to force reload of the original items? J
  5. hi, if i do $stuff = $page->all_list; $stuff->filter('parent.name!=thing') echo $stuff // subset of all_list, all good But, how do i get all_list again? (How do I reload all items) $stuff2 = $page->all_list; //returns filtered list = not good thanks =) J
  6. Ha! I had a feeling this fit better in PW. Thank you so much for the explanation! And, "parent.on_frontpage=1" that is really really nice! If I can convince the client to make the jump I'll post my progress here. I would start by simulating this setup to see what response times I'll be getting. cheers, J *ps. didn't know about the spaces thing, good to know.
  7. Hi, I'm considering switching CMS from Symphony CMS for an existing project. The project is a bit of a resource hog and I wonder if a switch would help. But also, any general input about the architecture is welcome. Maybe there is a better way (a Processwire way) to solve this. – The website is an event database, events are hiearchial up to 3 levels. In other words, events can have sub-events and sub-sub-events. – Each event has one or more time spans attached to it, since they often happen more than once. – Model overview attached below there are 500 events with a total of 1000 time-spans, this should be able to grow ten-folds the coming years. Say 10.000 time-spans on 5000 events. The front page consists of two parts 1. calendar and 2. overview Problem 1. Is this too slow? There is no such thing as "index" on time ? Calendar would be (say 100 results out of the total 10.000 time-spans) $times = $pages->find("parent=/events, template=time, time.date_end > $today"); //too slow? foreach($times as $time) { $event = $time->parent; //display event info for each time it happens } Problem 2. How can i filter by time-spans that are children-pages? I would want to do something like this, (but I guess I can't do that) – filter on child page values? $pages->find("parent=/events, template=event, on_frontpage=1, children.enddate > $today"); So my question is if it's possible to do something like this with snappy response times in processwire. Hope it makes sense as a question! rgds, J
  8. thanks, my searching powers failed me there for a second, j
  9. Hi, is there to set PageListSelect to nothing, once a value has been set? thanks! J
  10. no biggie, made an easy workaround by using another variable for setting and overriding the range slider value J
  11. Ah, it's simpler than I thought. I don't seem to be able to set any value in php of a range slider field $my_page->my_rangeslider = whatever integer always becomes echo $my_page->my_rangeslider; // 1
  12. Hi, ran into a weird range slider error. I have a range slider "size" with a number 1-3. Sometimes I want to override the value in the cms by doing $my_page->size = 3, or similar. Works fine most of the cases, except in one particular page where I get Error: Exception: Page '/page/path/' is not currently viewable. (in /Applications/MAMP/htdocs/vandejong/wire/modules/PageRender.module line 218) ...if I try to echo $my_page->size. If I try to set it, it becomes "1" regardless of what value I try to set it to. anyone seen this? thanks! J
  13. Here is my user scenario: I often run into the scenario where the frontpage shows perhaps the latest 10 posts, and the rest equals the archive. The editor usually would like to manually order the newest 10-20 posts, and forget about the rest – the rest is found other ways (filtering / tagging / archive). Currently the editors need to move things from the 'frontpage' into the 'archive', not a big problem, but they just need to be aware of the two different locations.
  14. sorry, found http://processwire.com/talk/topic/417-extending-image-field/?hl=%2Bimage+%2Bdescription after posting <- this solves it for me
  15. Hello, Is there a way I can add more data fields than description field attached to image? Simply multiple description fields would already help a lot. I often find myself wanting to couple more data with an image. I know I could use a repeater field, but then I loose multiple upload, a killer feature for the editors. j
  16. thanks! no direct solution but helpful
  17. Hi, is there a way to let a newly added page appear on top of the list in the backend instead on the bottom? (without loosing manual sorting) tried searching but couldn't find anything - hope I didn't miss some similar post thanks! J
  18. amazing, now I just need to rethink my structure
  19. soma, seems to work pretty goood thanks!!
  20. Soma, that looks pretty sweet. I tried it but didn't get the little pen icon to show up on my list - any special prerequisites I should know about? tx!
  21. Hello, I ran into this issue: When using markdown as text filter the default language isn't fetched (if the alternate textarea isn't filled out) Disable markdown and it works fine Ion PW 2.2.3 An upgrade might help in my case, perhaps? edit: Problem remains in 2.3 – I suppose a empty textfield with markdown isnt empty, maybe ther is a <p></p> in there or something...
×
×
  • Create New...