![]() ![]() ![]() I should also mention, that I have tried changing the DB columns to use DECIMAL, FLOAT & DOUBLE datatypes but all result in the same odd rounding down to the nearest whole number. I have looked through the module files and can find no more instances of int casting or rounding, so im at the point now where im wondering if its actually the updated core thats contributting to this rounding, as sleepValue and wakeupValue are extendable if I understand things correctly, so presumably theres some element of the core coming into play with them? If im understanding things correctly, it looks its occuring between sleepValue() and wakeupValue() based on this logging output. I could be wrong but from, sticking in a bunch of custom logging, I was able to follow the process to see at which point the rounding is occuring. The only thing we have changed in that time was upgrading the WP Core, and im curious if anyone is aware of any changes that would effect the rounding in this scenario? This was working fine up until recently when we noticed that the pins where moving slightly after having been positioned and then saved. However for our needs we had to remove the int casting within the code, and updated the DB columns for the X & Y coordinates to be more precise. Not sure if this is the correct place for this question but as it pertains to the Image Marker module, I thought this might make sense.įor some context, we had been using the module with a few custom changes for a couple years at this point. So is it possble to have the output appear there, as in execute the hannacode snippet ] and show me the output like it would do on the frontend? (My attempts at outputting the above, on another cms page with Hannacode, where ] is a snippet that just loops over the above and outputs it in a ) ![]() Screen shots of what im trying to explain incase it helps any. #Sqlpro set attribute show value codeI had thought hanna code might be useable but I can't see anyway to get it to execute from within the cms, albeit the page where you can set up the php snippet does do exactly that when you test it.Īny ideas on how I could achieve the above? I figured this would be fairly simple to do, as I have setup many textual type outputs for backend module configs however in this instance im not sure what I need to do to get similar output within the cms page using said template. Nothing fancy, doesn't have to do anything just display a list of items in the order set on the global settings page. Now I can use this order the front end no problem by just using the field name and a foreach loop.īut I have no idea if that same output is possible within a different page/template within the cms.Īll I am wanting to do on this other template file is just output the content of the global field, just so that anyone on a page using the second template has the current global order for reference. So this global field sits on its own template/page, and on it you can just order a list of named items, nothing fancy. #Sqlpro set attribute show value how toI have what on the face of it what seems like a simple addition I want to add to a template, but im a bit stumped in how to achieve it.īasically I have a global page reference field that allows a user to order the output of a given template file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |