Jump to content

bernhard

Members
  • Posts

    6,670
  • Joined

  • Last visited

  • Days Won

    366

Everything posted by bernhard

  1. hi @arjen thank you for that recommendation! looks really great and i like it even more than uptimerobot. only issue is that the sms service does not seem to work with austrian numbers... i created a webhook an 2 different servers and send sms via smstrade.de so thats no issue any more and its even cheaper (0,07€ / sms) i think the free plan will be enough for now but there are enough options to grow in future
  2. then i vote for a checkbox: "center logo on login-page" just checked the new version and the fixes seem to work, thank you
  3. anybody also having this issue? i think the logo should also be centered. what do you think? i like the centered login
  4. do i understand you right that this is only for reno theme? why?
  5. uptime robot looks like a perfect fit for me! thank you should have asked before installing the phpmonitor ^^
  6. i'm using http://www.phpservermonitor.org/ since some days and its nice. you need a second server of course. are you using any other tools?
  7. hi adrian, what do you think of making it auto-clear by default and have an option to keep them just when the user wants it. similar to the sticky option.
  8. needed this today! thank you!
  9. regarding the error: still there. no time to investigate, i dont need it for now. regarding field tooltips: they appear as they should now, but a click doesn't do anything?!
  10. my field edit links look like this (not only in modal) on newest devns and default theme
  11. got this error when trying the thumbnails. guess there's a check missing if the field is empty?
  12. my favourite: http://appvswebsite.com/ is your budget < 10.000$ ? ---> build a website
  13. dont forget to close the issue
  14. i think the modal just loads the admin page in an iframe, not via ajax. the easiest solution would be to only redirect if the process is NOT ProcessPageEdit. You will have to allow requests to that process if you want to allow those modals. you could also limit it even further by checking the GET parameters used by the url of the iframe (eg /page/edit?id=123&fields=whatsoever)
  15. hi swissdoode, that was kind of a theoretical tutorial you would have to use this module to be able to directly edit the fields from the referenced page: but i know that this is NOT an ideal solution. as i said: i support the need of such kind of setups, but i'm with lostkobrakai that we should stay at the page/field/template setup edit: maybe using a repeater and limiting the items to 1 would be a better solution?
  16. as far as i understood currently the workflow would be like this: create a template "metatags" add fields, "author", "description" and so on create a page holding all those meta-tags pages, eg "/metatags" add a page field "metatagpagefield" to all those templates where you want to save metatags, eg "templatea" and "templateb" create a page "demo template a" with template "templatea" now you have your field "metatagpagefield" and you can add a page there. if you setup everything correctly (auto-name and predefined parent) you could add your metatags via a modal window. your metatags would get stored somewhere like /metatags/automatically_created_pagename now you could just edit the template "metatags" and all your templates with the field "metatagpagefield" would have those changes instantly. at the moment this workflow looks kind of complicated, but i think what lostkobrakai is saying, is that if the presentation (the GUI) of the pagefield would be different (automatically creating the page /metatags/automatically_created_pagename in the example above) and showing the fields of this page directly in the edit-screen of page "demo template a" the editor would not even notice whats going on behind the scenes. thats similar to repeaters and would be a great option imho! it was not at all a noob question. welcome to the forum btw @lostkobrakai - didn't want to beat you, just wanted to explain it in my words to see if i understood it correctly
  17. ok i needed 5 reads of this and your old post and now i get what you are saying that would be an awesome solution and would REALLY help in situations mentioned in this topic! +1
  18. does it also support ajax fields? ps: @Pete can you PLEASE set the limit for "short time frame for new posts" to zero for experienced forum members?
  19. it's now built into AdminOnSteroids:
  20. thank you. i thought it was already there, don't know how i missed that
  21. quick question because i needed it today and couldn't find it: is it possible to see the current url segments somewhere? i just found "urlsegments ON/OFF" indication but it would also be helpful so see wich urlsegments are currently active. thanks
  22. what is your question? does it work or does it not work? don't forget to sanitize your input variables! $ID = $_GET['id']; // better $ID = $sanitizer->int($input->get->id); maybe also check if the page exists: if(!$pages->get($ID)->id) // return or throw error see https://processwire.com/api/variables/sanitizer/
  23. I'm using simple honeypots with very good success and find your idea nice. would be interesting what the others say about that!
  24. hi Tom, i was also using wireRenderFile a lot and tried render() and renderValue() a lot in my current project and its great! example for my blogitem: <article class="tm-article uk-margin-large-bottom"> <?= $config->alfred->render($page) ?> <?= $page->render('pic') ?> <?= $page->render('date') ?> <?= $page->edit('body') ?> <?= $page->render('files') ?> <?= $page->render('gallery') ?> <hr> <div class="uk-grid blognav"> <div class="uk-width-1-1 uk-width-large-1-2 uk-text-left uk-text-center-medium"> <?php if($page->prev->id) echo '<a href="' . $page->prev->url . '"><i class="uk-icon-arrow-left"></i> ' . $page->prev->title . '</a>'; ?> </div> <div class="uk-width-1-1 uk-width-large-1-2 uk-text-right uk-text-center-medium"> <?php if($page->next->id) echo '<a href="' . $page->next->url . '">' . $page->next->title . ' <i class="uk-icon-arrow-right"></i></a>'; ?> </div> </div> </article> this will render for example the file /site/templates/fields/gallery.php <?php if(!count($value)) return; ?> <p class="uk-text-bold">Galerie</p> <?php foreach($value as $item): ?> <figure class="uk-overlay uk-overlay-hover tm-padding-gallery"> <img class="uk-overlay-spin" src="<?= $item->size(120, 120)->url ?>" alt="<?= $item->description ?>"> <div class="uk-overlay-panel uk-overlay-icon tm-overlay-icon-zoom uk-overlay-background uk-overlay-fade"></div> <a class="uk-position-cover" href="<?= $item->maxSize(800, 800)->url ?>" data-uk-lightbox="{group:'gallery<?= $page->id ?>'}" data-uk-lightbox title="<?= $item->description ?>"></a> </figure> <?php endforeach; ?> Example for renderValue: <div id="tm-page-heading" class="uk-container uk-container-center"> <div class="uk-flex uk-flex-middle uk-flex-center"> <h1><?= $page->renderValue($page, 'title') ?></h1> </div> </div> this will render the file /site/templates/fields/title.php (because of the "title" inside the <h1>[...]</h1>): <?php if($page->template == "person") echo $page->personFullName; else echo $page->get('headline|title'); in this file you will have the $page variable available, because that was the first parameter of your rendervalue call. other examples could be: $page->renderValue($yourarray, 'your-array-view1'); $page->renderValue($yourarray, 'your-array-view2'); $page->renderValue($booking, 'your-booking-view'); ps: found this one but didn't check if that answers your questions:
×
×
  • Create New...