-
Posts
53 -
Joined
-
Last visited
*Most Powerful Pony!*'s Achievements
Full Member (4/6)
1
Reputation
-
@bernhard Hi! The main problem with removing fields from the example is that when you work on a large project in different branches, the data structure in the project can change. The main advantage of the classical approach to migrations is that regardless of which commit you moved to the current one, you can restore the structure to the current one. In your example, we can only add new fields and slightly change the settings for existing ones, but for this we need the code to be present in the project. But what to do if a person missed the changes to delete fields, change their type, or skipped conversion operations? Because this code was in one commit, but the present one simply describes the required fields, templates, etc.? I see that in this case we will have to contain a thick piece of exceptions, where there will be checks for deletion, transformations performed, etc., and this piece will become larger and larger as the project lives, especially if there is a significant difference between releases and branches. I really liked the presentation of the project and its description, but unfortunately I could not accept it, since I cannot aggregate the necessary migration from commit to commit.
-
tree home (1) - color (1001) - - cat kitty (1011) - - cat dogs (1012) - - cat pidgin (1013) - property (1002) - other page (1003) - - cat worms (1031) - note (1004) field.place_in_dir (PageSelect[PageListMultiple]) = 1011, 1012, 1031 selector (field.title=color|property|other), all good match! selector (field.title%=cat), 0 =( selector (field.title=cat dogs), 0 =( selector (field.title=cat kitty), 0 =( selector (field.title=cat worms), 0 =( but selector (field.id=1011), selector (field.id=1012), All found! repeated with filed.name, also found all. I am looking for notes that are linked to categories Because of the error, it is necessary to find the notes separately, since I can not search for them by title
-
Before the update, the session remained in assets/session Once, in default PHP directory
-
http://stackoverflow.com/questions/5773032/how-to-stop-gd2-from-washing-away-the-colors-upon-resizing-images
-
POST data <3 level
*Most Powerful Pony!* replied to *Most Powerful Pony!*'s topic in General Support
sadly A pity no full recursion -
level1=1 print_r($input->post->level1) return [level1] = 1 level1[level2] = 1 print_r($input->post->level1) return [level1][level2] =1 level1[level2][level3] = 1 print_r($input->post->level1) return null how to fix it!? processWire 2.4
-
Canvas is part of the image, you need to get a proportional output image 150x150, where space will be drawn in a solid color (white for example). Canvas image it's canvas image. http://www.php.net/manual/de/imagickdraw.setviewbox.php
-
I have an image 500x300 I need to apply the resizing to 150x150 without cutting edge. Thus in any case, I need to have the image canvas size 150x150 When you use $ image->size (150, 150), we obtain the desired result (cropping). When using $ image->size (150, 150, array ('cropping' => false)) our image circumcised according to the greatest height, canvas change proportionally. / / 150x90. Need an image 150x90 position in the center of the canvas 150x150. You can do this using the API?