Jump to content


  • Posts

  • Joined

  • Last visited

Recent Profile Visitors

5,309 profile views

joe_g's Achievements

Sr. Member

Sr. Member (5/6)




Community Answers

  1. Hello, I discovered that the import/export function doesn't include custom image fields (I've got a rich text field for captions). I suppose there might be no easy way around this limitation, but if there is, let me know! J
  2. Thanks Ryan, So there is nothing wrong with any module or js, or anything with processwire. The sysadmin started changing the settings in nginx. The message doesn't stem from cookiebot, it comes from an nginx error, from him adding an exception to cookiebot. False alarm, but many thanks for the help. It was a sysadmin that didn't update us others 🙂
  3. Thank you both for your quick responses! Things started working again. I think what happened is the sysadmin was messing with CSP settings in nginx without telling anyone, causing a slight panic. In the mean time i got this screenshot from Brave that makes no sense at all. It's complaining about GTM and Cookiebot, that I load on the front end (but not in the backend, I suppose?!?) to be continued - thanks again! It's nice to know it's possible to get help in these cases. I'll update as soon as I know the full story.
  4. Hi all, I had this happening on a clients site today. The CMS doesn't show and there is some js errors. There hasn't been any code changes, or changes in general from what I know. But I suppose something must have changed. Not sure where to start figuring this one out, any ideas are very much appreciated!
  5. Not sure if I made myself clear. Typical example: Most news should be sorted by date but sometimes you want something on top, or slightly affect the order. It's difficult to say "sort by date, except this particular thing that should be on position 2". It's kind of a luxury problem, I know, but I have it sometimes. What you're saying is to have a manual sorting function, somehow? So that the client decides when to automatically sort things and then reorder - until sorted again as a explicit choice. That could work, possibly, but what I would really like is default is sorted except for manual changes.
  6. Hi all, Something I've been wondering about and it's a situation that have come up a couple of times in the past: I wish there was an interface for manual (drag and drop) reordering of a dynamically selected subset of some selector. My current, and latest, example of this is the following: One client has a vast archive of events and wants to show a selection (based on some criteria) of them somewhere, but still be able to reorder them. Ideally any new items that is added to this selection appears according to some sort (like by date, but adheres to manual order if moved). So, for example, show events within range X and Y, automatically sorted by Z - UNLESS manually sorted, then retain that manual order as long as it's visible. Not trivial, I know. Mostly I'm posting this out of curiosity if someone have needed something similar. I think my options are 1. add a checkbox 2. a page selector of some kind (manually select the pages) 3. give up on manual ordering
  7. Thank you, i take that as if it can't be done with a selector (on the database side of things). The filtering needs to happen after getting all the results.
  8. Thanks both! I'll try and have a look if I made some mistake. I know I had a similar code that set active to everything globally, and that worked without problems. So perhaps it's when I create new pages, somehow.
  9. Or perhaps, my whole approach is wrong and i should rely on active for translated pages instead. Maybe that's better, but then I don't know this: If I would want to make a language switcher for a specific page, how do I loop through all active translations? I can't find a selector for 'active'. How can i specify a redirect to the default language instead getting a 404 for a page with a missing language? many thanks J
  10. Hi there, I've got a site with 12 languages. When I create a page in the backend all languages are active by default, great. However, when I create a page via the api NO languages are active, except the default language. Why is that? And, how can I make sure everything is active all the time? I tried this piece of code to make all language active in a recently imported page... foreach($languages as $lang) { if($lang->isDefault()) continue; $p->set("status$lang", 1); $p->save(); } ...but it messes up the data. I've got a repeater matrix where the content gets repeated 12 times with the code above. I'm not sure why it interferes with the repeater matrix Is there a safe, non-destructive way to make sure all languages are always active?
  11. I've got an image field with an added custom field "caption", this caption is multilingual. I'm trying to update this field from the API, but I'm not managing. Even though I set a language to non-default the data is saved in the default field. For example if set the language to Spanish $user->language = $languages->get('es'); Then I set the caption ($block is a repetear matrix) $block->of(false); $block->images->first->caption = 'Spanish Caption'; $block->save(); the default caption contains 'Spanish Caption' and the spanish version is empty. Any ideas are welcome 🙂
  12. Hello! How do i include pages with non active languages in a search? Say I want to find ->find('template=x'), regardless if it happens to be 'active' or not in the current language? If I do include=all I also get hidden, unpublished, from the trash, (i think) but I just want the inactive versions. Is there a selector for this? Thanks!
  13. Hi there, I've added a custom image field (Select Options dropdown) but I can't get it to show in the backend (see below) This is inside a repeater matrix, if that makes a differences many thanks! j
  14. Yes, thank you. I think this is what I'll do (my own check) - it feels safer.
  • Create New...