Jump to content

bernhard

Members
  • Posts

    6,629
  • Joined

  • Last visited

  • Days Won

    358

Everything posted by bernhard

  1. ...and that is just the tip of the iceberg just an example: put this inside your /site/ready.php $this->addHookAfter('ProcessPageEdit::buildForm', function($event) { $form = $event->arguments(0); $field = $form->get('yourfieldname'); $page = $event->object->getPage(); if($page->template == 'template_a') $field->label = "this is field label on template a, it is " . date("d.m.Y H:i:s"); elseif($page->template == 'template_b') $field->label = "this is field label on template b, it is " . date("d.m.Y H:i:s"); else $field->label = "other template, it is " . date("d.m.Y H:i:s"); }); have fun with processwire
  2. nice idea
  3. thank you tpr for the new update also thank you for the css fix. didn't think about that! what do you think of adding often used widths as a clickable shortcut to the form? clicking it could also save + close the modal shortcuts could be 20 25 33 34 40 50 60 75 80 100
  4. wow, i totally missed that! thank you! ok, i see..
  5. @LostKobrakai did you see adrians link to the blog post? https://processwire.com/blog/posts/processwire-core-and-profields-updates-2.5.22/#has_parent-selectors-now-support-multi-value anyhow, i don't really understand your selector. i've never seen syntax like branch=(has_parent=123) i would have expected (has_parent=123), (has_parent=321) do you have more info on that?
  6. thank you adrian, that is a good reason why it is working @tpr no, exactly like pasted above created>12345 i guess if there is no obvious reason i would have to investigate further. but as i solved my problem in a different way i guess i will not have time for that at the moment
  7. that is interesting because it works as expected and this does not seem to be the reason, because on another site it works also with has_parent=1|2 i solved it by adding an if statement ala $lastBooking = $pages->findOne(...); if($lastBooking->id AND date('Y', $lastBooking->created) == date('Y')) return $lastBooking->renr + 1; else return 1; but i would still be interested in the reason for the wrong result on my selector and why the docs say has_parent=1|2|3 does not work while it seems to work well in this case... i hope someone knows the reason
  8. happy new year to everybody! what is wrong with my selector? or is this a bug? as soon as i add the has_parent statement it shows entries of 2016... template=booking,created>1483225200,sort=-renr // works, timestamp = 1.1.2017 template=booking,has_parent=3643|5992|7537|7548|8409|8653|8664|8675|11126,created>1483225200,sort=-renr // does NOT work... shows entries of 2016 edit: i can't reproduce this on another website... any hints what could be the reason?
  9. i think the most simple solution would be to make the status text on the right edge of asm select clickable and link directly to the second tab: <span class="asmListItemStatus">Text 33%</span> --> editurl#inputfieldConfig would that work? it would save 1 click per field and would still need 1 click to save. maybe 1 inputfield per field directly inside the asm select would be even better? then it would be really easy to change multiple fields in a very short time... btw: has anyone ever kind of a "newline"-field? for example if you have different number of fields in one line depending on field dependencies. if you have 2 lines with columns < 100% that can lead to wrong field orders. workaround is to put those fields inside a fieldset, but i think there could be a better solution...
  10. already there see the "rockcontact" edit link
  11. one thing i'm missing sometimes on the template editor is a shortcut for editing field widths. a slider from 10 - 100% instantly changing the fields width would be a great addition in my opinion often changing one field's width makes it necessary to change the other field's width as well (eg adding a field to a row of 4 fields with 25% makes it necessary to change all fields to 20% it would be great to add the field and drag all field's width from 25 to 20 without the need to open each fields settings, clicking on the display tab, changing value, saving field, closing modal... all other settings are fine being available behind one click.
  12. i don't understand what you mean jürgen... you can edit the field's position in the template editor. it's only 1 click away from the page-edit-screen.
  13. depending on the amount of entries frontend filtering could also be an option: http://ohmspeaker.com/speaker-filter/?length=13&width=10
  14. h1 is float: left; - i don't know why, it must have to be a setting of AOS. it's quite hard to find out what setting it could be so i thought you may have an idea?
  15. hi tpr, do you know where this glitch comes from? how it should be (AOS off): how it is (simple process module just returning "hallo"). sticky header OFF: is this a bug or did i forget a setting? thank you for your help!
  16. yeah, i know you can do all kinds of stuff in the admin. still i think it would be good to have a checkbox for that. there have been lots of people requesting such kind of field-groupings over the time and i think it would be better to solve that by providing a checkbox than letting people solve the problem all on their own and having no standard way of doing it (you can remove it by php, by css and also by js...). second best option would be to have it in AOS. maybe i find the time to file a PR next year for that...
  17. jep, there are data attributes <li class="Inputfield InputfieldRepeater Inputfield_address InputfieldItemList InputfieldRepeaterMax InputfieldRepeaterMin InputfieldColumnWidthFirst" id="wrap_Inputfield_address" data-page="1001" data-max="1" data-min="1" data-depth="0">[...]</li> would there be any drawbacks removing the label by default if it is min=1 and max=1 ? here's the field compared to the original: original:
  18. your post kinda proves that it is a good idea to hide the label. because in my example it is already hidden that's the original setup: the whole dark line is unnecessary and counterproductive!
  19. you can now use repeaters for that! @tpr maybe hiding the label when using it with limit 1/1 would be an option for AOS?
  20. hi ryan, nice updates as always! what do you think of adding the option to hide the label of the repeater item. that way you can use repeaters to setup reusable groups of fields. or do you see any drawbacks with this technique?
  21. just tried the new repeater updates and it seems like a perfect match for this request! almost. you would just have to hide the label of the repeateritem then it looks really nice! keep in mind that selectors could get more complex when using this approach!
  22. do you have some user input or are you creating the pdf completely on the server side (like cronjob)? if you have some user input you could create an image of the chart first (eg on button click) and then post this image to your php script and integrate it in your pdf
  23. hi timothy and welcome to the forum, maybe it would be easier to use a client-side javascript library to create your pdf? https://github.com/MrRio/jsPDF
  24. hi lostkobrakai, i think you didn't get me... see this screencast. i think it is much nicer to hide the select via css (after the reload) than having it show up and hide it afterwards: anyhow... if you do not like this enhancement i'll just leave my line css in place. but i don't see a reason not to add this by default for every chosen input field #Inputfield_my_chosen_select { display: none; }
  25. thank you lostkobrakai, awesom module! suggestion: could you add a css rule that hides the select input right from the beginning? it is hidden afterwards via jquery anyhow but as long as it is visible it leads to some ugly display of the unstyled select field. do you understand what i mean?
×
×
  • Create New...