Jump to content

Soma

Moderators
  • Posts

    6,808
  • Joined

  • Last visited

  • Days Won

    159

Everything posted by Soma

  1. https://github.com/ryancramerdesign/ProcessWire/issues/779
  2. Soma

    ProcessWire on the web

    Actually I was the first to like and retweet his tweet five days ago. So all candies belong to me
  3. Last time I used a "Login via Facebook", my Facebook account was hacked...
  4. Nice ideas, but the doing the save new sorting like an "insertAfter" is the tricky part...
  5. I don't know but manually sorting 400 pages uff..? Some kind of sort integer field to enter position in a field. Build an custom admin page for that? It's not easy anyway. And experiment with maybe grid instead of a 1 column?
  6. Or little more efficent if(!$pages->count("parent=$page, my_field=0")) { echo "Sold out"; }
  7. Well you still can't use something like "_title" as a column field in Lister. It's just that only the first result doesn't show the concated title, but all following result would. I haven't been able to look into it or report it. Maybe about time And {_title} in template label is very new that didn't exist back then.
  8. I was using this since a long time. I also noticed that ListerPro doesn't use that concated title for the first result. Strange.
  9. A module is either designed for backend only. Then you know outputformatting is off always. Or for front-end, then it's always on. If you do stuff in your module that requires outputformatting off or on, just make sure and set it according to. If you're not sure, you should remain state with: $stateBefore = $page->of(); $page->of(false); ... $page->of($stateBefore);
  10. I'm not sure I understand. It doesn't work like this. The name on the domain page remains the same for each language. Otherwise it doesn't match what you entered in the module settings. Language through language segment is set on root "/" page name. It then becomes domain.com/en/ or whatever you set it.
  11. You cant be sure if a module is used in frontend context or backend. So turning on on or off by default isn't going to work. But then I don't know what's so difficult about it.
  12. While it would be possible to inject in memory pages, I don't want to go that route for various reasons. What I do is add a dummy page as you mention. Then add a field "exturl" to the template. Then enter the url in that field like "/path/to/file.php". In the navigation code you then use "exturl" in the item_tpl: $options = array("item_tpl" => "<a href='{exturl|url}>{title}</a>');
  13. RT @processwire: New post: ProcessWire 2.6.23 (2.7 rc2) w/fixes, PRs & upgraded lang tools + looking at a more open core license– https://t…

  14. I experienced some wierd issues with saveReady before and after and am still waiting for the mystery to be solved Mentioned it somewhere but can't remember where. Also happened to have corrupt status in db. I think I reported those but couldnt tell why it happened, neither Ryan. On mobile so too lazy to look it up.
  15. I was about to change it on cheatsheet. But now it's because it's only a set and default is ON. Hence there's two entries in cheatsheet and not (true|false). So a $parent->setTrackChanges(false); ... $parent->setTrackChanges(); would be sufficient.
  16. Ehrm I'm not sure it's really correct code. Just trying to get my head around it. $page->setTrackChanges(false) isn't correct but it may have an effect to clear out changes? Sorry for the confusion. Lol I'm so stupid, looking at the wrong method in Wire.php, no it's ok I guess. Sorry again.
  17. I would suggest it to Ryan see what he thinks. Sorry, no this is core and not BCE.
  18. Just tried a $parent->setTrackChanges(false); $parent->addStatus(Page::statusUnpublished); $parentEditable = $parent->editable(); $parent->removeStatus(Page::statusUnpublished); $parent->setTrackChanges(true); and it wouldn't track it. I think it's something we want to hide from the track change system. What if I'm listening to page changes in my module? Edit1: I noticed recently that there's really a lot of such changes going on in PW. Only opening a page editor does change the created_users_id for example. Huh? Edit2: well I guess it's because I'm tracking every change to page object, so I guess there's maybe some way around it (using page type, template etc, and fields). But still I think such back and forth changing to archive something, those should be hidden from track changing. What you think?
  19. Why is this needed to change Status and back I don't get it? I don't think it's nice if it's tracked. What if I track changes to my pages? So maybe a trackChange(false) is needed?
  20. Not sure what's about that, but I tried this module and now I get on every page save I see message "Session: Change: status". Took me a while to realize it's BatchChildEditor.
  21. Huh? Why do you Bootstrap PW, when you're already in PW?
  22. Since your ProcessModule is in /processwire/... It's not possible to have guest (no guest is not logged in) user access to it.
×
×
  • Create New...