
joe_g
Members-
Posts
447 -
Joined
-
Last visited
Everything posted by joe_g
-
Hey all, I've got a curious problem. I changed a project from being multilingual to single language, and after uninstalling the language modules i can't change title or name anymore on any page UNLESS it's unpublished. There is nothing in the error logs, also not in the apache logs. I think this might be some setting that I missed? many thanks
-
I'm trying to show relevant suggestions underneath an article. The suggestions don't have to be available in the current language. I wish there was a way to say "include=not_active", but instead I now do include=all,status!=trash,status!=unpublished Is there any side-effects with the code above? Are there more statuses I should exclude? thanks!
-
I don't manage to list what languages that are set to 'active'
joe_g replied to joe_g's topic in General Support
Ah perfect. I forgot to mention that I get the same result logged out as well as logged in. But it doesn't matter since $a->getLanguages() works fine. thanks! -
I'm trying to loop through languages to see what active languages a certain page has in PW 3.0.229. I can't get anything to work. I've tried three ways (see below) For example. I've got a page with 3 active languages out of 14: I've set it to redirect to default if accessed with missing language, and this works fine Now, how do I list the languages that are active? So far I've tried these three ways: <?php $a = My current Page; $a->status; // = always 1 ?> <?php foreach(wire('languages') as $language):?> <?php wire('user')->language = $language; ?> <?=$a->viewable()?> <-- All true <?php endforeach?> <?php foreach(wire('languages') as $language):?> <?php wire('user')->language = $language; ?> <?=$a->is("status$language")?> <-- all empty <?php endforeach?> thanks!
-
Hey, The Pagegrid site I've been working on for the past months is now online and the client is happy. This visual editor fits them perfectly since they have a good eye for design and likes the control. So far so good in regards to the reordering bug, maybe it's fixed with v.29. Thanks for the help and the fast responses in the past months @jploch!
- 1 reply
-
- 4
-
-
-
Hey, i think I caught a bug and I also managed to get it on video this time. I have a feeling this is significant. I'm also starting to think this is only related to the rich text block. I've got this long page with maybe 80 elements on it. See how the two vertical spacers are together at the bottom of the page? After i add an element on top one rich text is repositioned on the bottom of the page (goes in between the vertical spacers). You can see it here: https://streamable.com/tb27ma?src=player-page-share I'll try now to see if i can get the same error on a clean install. Update: Yes it behaves the same on a clean install. I made a clean install with nothing but the page grid and i added my vertical spacer element and i get the same behaviour with rich text elements moving in a similar manner on the bottom of the page. j
-
Small update, not sure this is relevant but I noticed that the element fall slightly out of line when scrolling up and down: a resize event resets everything again and makes it align again
-
Hey by the way, i just upgraded from .66 to .68. Last time I upgraded was when you mentioned you had made some performance improvements (couple of weeks ago?) and you made linking possible on groups.
-
My latest theory is that it has something to do with dropping large elements. I've got this huge images on the page and if i drop them it can shuffle stuff more than anticipated. At least I suspect the problem is related to that, somehow.
-
So i managed to get this error to happen once in total, in several hours of testing. The editor had it a couple of times. Maybe 3-4? I tried clean install, no problems after about half an hour of testing. But since it happens so rarely it's hard to be systematic about it. One thing i could mention is that there seems to be a bit similar pattern in how the elements are placed whenever this error happens. Things that are not full width seem to be stacked in a staircase pattern, like. Not sure that helps. It reminds me a bit how things can look if you forgot to close a div. So i've been looking around if i had any mismatched divs, but I don't think that's the issue. I'll send a DM with a test version you can look at
-
Here is an example of a carousel. Only using the html+css in the backend, I'm not loading any custom js in the editor. the only bit strange thing here is that i set an aspect ratio. Should be fine?
-
-
A couple of questions, in the mean time: Could it be a problem to have id's on my custom blocks? Use tailwind classes? Use relative positioning (not on the wrapper element, but on the custom block)? J
-
Hey so, none of my js is loaded in the backend, the only console error i can see now when mucking around a bit is: which points to this bit not sure if its related..
-
Update, So i got the reorder bug to happen to me now. I added a bunch of stuff. A couple of times the element refused to go to the right place but was added one row too low instead. I reloaded (this has become a habit) and tried to drag something into place, and poof, everything is completely reordered. I think what I'll do now is to see if i can get the same thing to happen on a clean install...
-
Hey, one thing I noticed now. I made a fresh test page, added about 20 elements and it got progressively slower. After adding 20 ish elements it was down to 1fps. After reloading the page it's back to normal (~15fps, usable). That makes me believe that there might be some event doubling going on? Maybe you register event without unregister them, or something like that?
-
hey, so she's using chrome 134 (second latest, i think) Tomorrow, I'll head over there to try this out together. Lets see what that brings. I do want her to have control over the columns. The problem I mentioned is that she often accidentally makes the element span way too many rows (as in, horizontally). This is not a huge deal, what really matters is that things reorders sometimes.
-
I think I'm going a bit nuts with this. I keep testing on my own and I simply cannot recreate the reorder error! I might try and physically sit next to the editor and see how she does it exactly to try and see whats up. I'll take this one more spin before I give up, it would be so nice to get this to work.
-
Hello again, So i had a screen-share session with the editor/client to see how things were going on their end. It's very possible something is wrong with my setup and/or my code is messing with yours in some way but at the current state of things this doesn't really work. If you're curious you are very welcome to have a look since my dev setup is online. — In front of my eyes I saw all elements reorder. All my vertical spacers jumped in one place, all text in another. She had been working on the second-largest size breakpoint, so perhaps switching between second-largest and largest had an impact. This is the one problem that really matters, and I'm not sure how to get to the bottom of it. I should mention that I haven't been able to reproduce this on my own computer. It's possible there is something peculiar with the editors browser but from the look of it it's standard chrome install without even an ad-blocker. — She tried to move an element back in place, from the bottom to the top (=outside the viewport) and it was painfully slow. ~1 fps dragging, but also scrolling 1cm with 1fps. So she would spend half a minute trying to move the element back into place. Editing on my m2 mac is much faster, I'm guessing she might be on an old intel mac, judging from the difference in performance. — Maybe this is some "user error", but most elements spanned 8 rows instead of 1. Not sure how she managed to make that happen, but this is a smaller problem compared to the two above. If you're interested in taking a look you are most welcome, but I think otherwise it's time for me to give up. In either case, thanks for the help so far. J
-
Yes, of course. Until I can reproduce it there isn't much to discuss, but thanks a lot for your help so far! I've spent a couple of hours trying to reproduce the issue without luck. I'll get back if I get further.
-
Hey, — The grid is used to place things in 12 columns, so its not just a vertical list. — The glitch has happened twice, so it's not a fluke. However, I've been testing a lot to try and provoke the same thing on my end, and not managing. For me its stable, so far. — I'm not sure how to add cache busting to the line $pagegrid->styles($page); — I did load some css before the grid, but that was nothing that affected the order. The auto row override i added in your field: ..Since this is loeaded from your code ($pagegrid->styles($page);) I suppose the order should be fine. Nevertheless, to be sure i moved this first. My decorative styling is now loaded afterwards. In my css I'm doing things like and Do you think this could have affected the order? I suppose not. By the way, is there a more elegant way to override your styling than this, so i can avoid !important? I'll keep testing to see if i can reproduce the error!
-
Hey thanks for getting back! I've been trying to recreate (and isolate) the error, so far not managing. I have a vague feeling that this happens to layouts that was made before I set everything to force auto row. I'm not sure if that makes sense. I'll ask the editor to always start with a hard reload to see if that helps in the mean time.. 2. I'm not messing with the outer element in my vertical-spacer (no pg-wrapper) 3. could be, i wish i could have a screen recording :) But aha, i didn't know you could reorder in the list! I'll tell them that, 4. probably not this, i've got the simultanious editing warning on J
-
Hey, My client keeps editing and it's been working quite well for a while. We're working our way to a live site. However, we just run into one kind of serious hickup (but i suspect there must have been som caching involved?). I made a custom block called 'vertical spacer', the editor/client was adjusting the page and suddenly all elements reordered and all vertical spaces ended up on top, instead of in between. Normally these spacers should be inserted in between each rich text elements. This is similar to what happened earlier, before i everything was always "auto row". Now, for quite a while, since i set everything to always be auto-row nothing similar has happened for a while. I hope this is because of some browser caching an old version of the site with not updated CSS, perhaps? What happened before was that elements set to "manual" led to unpredictable orders once you move things around, but this is maybe different? I'm curious if you have any idea of why this could happen, if it could be cached css, or something else. This is the type of error that shouldn't happen once this site goes live. thanks!
-
That is absolutely beautiful, thanks. I realise i should have read the docs better, so starting now :) I added it here (better than in my own css?) - seems to work So the difference is pg-item-added is what they initially get when dragged, then pg-item is what they always have - or something like that?