-
Posts
6,221 -
Joined
-
Last visited
-
Days Won
308
Everything posted by bernhard
-
thanks again - i had a backup and restored the folder from there. as i said - was just curious and will not delete those files next time
-
thank you - that's not an option if you deleted those files and folders like i did anyway - the issue was not related to pw 2.5.17/18 but i was just curious if there was a way of downloading those "versions"
-
is there any way to get all the 2.5 dev realeases listed like in the link above? some days ago i had an issue with 2.5.18 and wanted to roll back to 2.5.17 but there was only 2.5.18 available on github
-
I'm using EMO for this: http://modules.processwire.com/modules/email-obfuscation/ sorry didn't read your post carefully, but no problems with emo so far
-
i think this shoud find its way into the docs - no word about that: https://processwire.com/api/variables/page/ but how? stumbled over this today and once more found the answer quickly in the forum but anyway, i'm sure there are others not knowing about this different behaviour of counting children...
-
nice to know that procache has this option steven thank you
-
Current options For a new project going online very soon i would need an option "clear cache for the saved page and its children". should not be that complicated to implement? i'm wondering why this is not already built in - didn't this need come up before? use-case: i have a catalog-like site structure. for every page i have a point of contact (POC) to choose. if nothing is chosen, it will show the POC of the parent page (recursively). that way i can define POCs for whole sections at once - with the only problem that when caching is turned ON and the client changes the POC of one category the POC will still remain on the cached children maybe anyone can point me to the right direction for hooking or forking this request on github? thanks
-
hi gebeer, also doing some ab testing here how did everything work out for you? http://stackoverflow.com/questions/579450/load-testing-with-ab-fake-failed-requests-length any insights in that aspect?
- 4 replies
-
- Performance
- test
-
(and 1 more)
Tagged with:
-
Module Upgrades and DB Schematics
bernhard replied to Mike Rockett's topic in Module/Plugin Development
thank you for this question mike, i was also wondering about this. i did some research and found some links: http://stackoverflow.com/questions/1607/mechanisms-for-tracking-db-schema-changes http://dbv.vizuina.com/ especially http://dbv.vizuina.com/documentation/#usage-revisions-create http://davedevelopment.co.uk/2008/04/14/how-to-simple-database-migrations-with-phing-and-dbdeploy.html do you guys use any tools for tracking DB changes or do you create your change-scripts/dumps manually like in the example of dbv? -
hi lauren, don't know if it is working with repeater fields, sorry - but repeaters are out anyway i think the PageTable is exactly what you are looking for and you should definitely try out this great field that opens tons of opportunities! this topic is exactly for you: https://processwire.com/talk/topic/6866-page-field-in-pagetable/ in this image from the thread above you see repeaters (top) compared to pagetable (bottom): see how much space you will save btw: looks like page field should work with repeaters?! here you go you can automatically follow topics you replied to: https://processwire.com/talk/index.php?app=core&module=usercp&tab=core&area=notifications
-
just for the record - the selector field could also be a great option for this use-case! see macrura's tutorial on widgets: https://processwire.com/talk/topic/8635-simple-example-for-widget-management/?p=83418
-
i think pocketgrid is quite different to them, because you do NOT need to wrap rows into surrounding divs markup is <div class="block-group"> <div class="col3 block">block 1</div> <div class="col3 block">block 2</div> <div class="col3 block">block 3</div> <div class="col3 block">block 4</div> <div class="col3 block">block 5</div> <div class="col3 block">block 6</div> <div class="col3 block">block 7</div> <div class="col3 block">block 8</div> <div class="col3 block">block 9</div> <div class="col3 block">block 10</div> </div> // and NOT this <div class="block-group"> <div class="col3 block">block 1</div> <div class="col3 block">block 2</div> <div class="col3 block">block 3</div> </div> <div class="block-group"> <div class="col3 block">block 4</div> <div class="col3 block">block 5</div> <div class="col3 block">block 6</div> </div> <div class="block-group"> <div class="col3 block">block 7</div> <div class="col3 block">block 8</div> <div class="col3 block">block 9</div> </div> <div class="block-group"> <div class="col3 block">block 10</div> </div> and the result would be block 1 | block 2 | block 3 block 4 | block 5 | block 6 block 7 | block 8 | block 9 block 10 | but it could also be block 1 | block 2 block 3 | block 4 block 5 | block 6 block 7 | block 8 block 9 | block 10 depending on your css rules for "col3". i use it together with other frameworks for displaying responsive "tables", so the output is this // desktop block 1 | block 2 | block 3 // tablet block 1 | block2 block 3 // mobile block 1 block 2 block 3 i wouldn't know how to achieve this with bootstrap or foundation? what didn't work for you? note that i don't want to convince you using pocketgrid, but i would be interested to know about problems i might get with it. i hope it's not offtopic...
-
these are the postings where i am happy using pocketgrid. the resulting code for your template is quite simple, even though you have to define some css rules first, but you don't have to take care of inserting </div><div class="row"> every 3rd item and doing modulo %3 == 0 and $i++ things and all that and keep your template really clear! <div class="block-group"> <?php foreach ($page->locations as $loc) { ?> <div class="col3 block"> <h3><?= $loc->title ?></h3> <p><?= nl2br($loc->adresse) ?></p> <p><small><a href="<?= $loc->website ?>" target="_blank"><?= $loc->website ?></a></small></p> </div> <?php } ?> </div> you can define custom breakpoints for your class "col3" (eg. 3 cols from 1000px+, 2 cols from 500px+ and 1 col below 500px screen resolution) and it already takes care of correct floating: http://arnaudleray.github.io/pocketgrid/docs/#automatic-rows-in-real-life it seems that your mentioned block grid approach is quite similar - so i'm kind of happy reading about that
-
great writeup macrura! what do you mean by the incredibly amazing new selector field? edit: oh - just saw what you meant on your screenshot and didn't see it before!!! i thought you were talking about the page select field... where can i find more info on this? -------------------------------------- here is my old posting - just for the record. it seems it is quite useless having the new selector field edit: polished version here: https://processwire.com/talk/topic/8635-simple-example-for-widget-management/?p=95532 i also have a widget setup on one of my sites with a little different approach of how to manage visibility of the widgets (3rd column: if this box is checked, the rule applies also to its sub-pages) for every widget you can setup "display rules" including #page #include/exclude and #include_children. it's kind of a bottom-up approach: the example above would show the widget on all subpages of /games AND on page /games (rule #3), but would NOT show an page /games (rule #2 removes access given from #3) and would not show an any other page (home + subpages, rule #1). a simpler example would be: rule | page | | sub-pages? ------------------------------------------ #1 | home | exclude | yes #2 | /section1 | include | yes so this widget would show on all pages in section1 (eg /section1, /section1/post-1, /section1/post-2 ...) you could easily exclude the widget on page /section1/post-2 by adding #3 | /section1/post-2 | exclude | no ...and it would still display an all other pages (posts) in section1, including newly added ones (post-3, post-4...). if anyone is interested in the code i can share it with you - altough it's quite messy because it's only a prototype for now. i also have to say that i don't like the repeaters because they are wasting lot of space for displaying only 3 small pieces of information. maybe a pagetable field would be better for the next version... i'm also managing this site on my own, so i have no experience with clients handling this display rules for now!
-
@nico, i think you mean $image->width(1500)->url ? edit: tried size(1500)->url and it worked! even though it's not in the docs https://processwire.com/api/fieldtypes/images/ @steveooo sorry, didn't know that and didn't read all the results... i agree, leaving a 4MP image on the server may not be the best - but it would not necessarily be a performance problem as you can resize the images for your frontend like nico posted above. but it could still be a problem regarding disk space usage if you have lots of huge images... to your problem: sorry, i have no idea - but as horst jumped in: let the expert talk
- 6 replies
-
- 1
-
- out of memory
- memory_limit
-
(and 2 more)
Tagged with:
-
hi steveooo, welcome to the forum anything helpful here or here?
- 6 replies
-
- out of memory
- memory_limit
-
(and 2 more)
Tagged with:
-
hi lauren, doesn't the page fieldtype do exactly what you want? create a page fieldtype -> on "input" tab -> "input field type" = AsmSelect* or did i misunderstand you?
-
Best way to get random quote displayed on refresh?
bernhard replied to kathep's topic in Getting Started
i knew that would come - but i only knew that things like this were possible: $a = $b = $c = "any value"; didn't know that it was possible to assign different values to different variables in one line. thank you! php.net reference @kathep great writeup indeed! more to come... have to restart my pc $content = "'" . $page->quote_text . "'". "—". $page->quote_author . "<br>" . "$page->quote_category"; https://processwire.com/talk/topic/8626-multiple-random-ads/?p=83345 -
Best way to get random quote displayed on refresh?
bernhard replied to kathep's topic in Getting Started
it's better to post your code as text, not as image - so we can copy/paste it just quick, not tested - try something like this: $quote = $pages->find("parent=/tools/quotes, quote_category.title=life")->getRandom(); // quote is now your random quote page with all its fields // i don't know what fields you have? title / body / ...? $quote_w_heading = "quote goes here: " . $quote->title; // or $quote->body you can't have 2 equal signs on one line $this = $is . $correct; $this = $is . $not = $correct; -
Best way to get random quote displayed on refresh?
bernhard replied to kathep's topic in Getting Started
hi kathep, please read my post - i already showed you what's wrong and again i recommend you the post about how to search the forum with google (not especially for your problem here but very very helpful in general) edit: this is what a google search for "random" brings up on a processwire-site-search: https://www.google.at/search?q=site:processwire.com+random&gws_rd=cr&ei=RnSZVKnFAcH9UP35gbAL -
Best way to get random quote displayed on refresh?
bernhard replied to kathep's topic in Getting Started
hi kathep, the error comes from horsts code snippet (feeling a little embarassed to correct him ) $pages->get->("/tools/quotes/") should be $pages->get("/tools/quotes/") see the docs about selectors: https://processwire.com/api/selectors/ and a hint on how to efficiently search the forum with google: https://www.google.at/search?q=site:processwire.com+random&gws_rd=cr&ei=RnSZVKnFAcH9UP35gbAL (see the howto in my signature) -
Best way to get random quote displayed on refresh?
bernhard replied to kathep's topic in Getting Started
-
renobird, you are totally right! thank you! i thought i have to have 1 parent page for each table field that's almost perfect together with one-step page adding! even though i would prefer a page field inside profield table, but that question fits better into the profields support board
-
hi reno, thank you for your answer. i think that's still not perfect because as i said i have an unknown number of pages with a pagetable in it. my client (sports club) should be able to manage its teams on its own! eg team a - alex (#6, offense) - mike (#10, defense) - john (#1, goal) team b - alex (#5, defense) - peter (#10, offense) - charles (#1, goal) ---> so i would need 2 hidden pages, right? team_a_hidden and team_b_hidden? what if my client wants to setup team c?
-
yes, that would be an option - but i don't really like the pagetable approach because it opens every item in a new window (lots of clicking and moving your eyes all over) and it stores everything in the pagetree blowing it up... i think i can't choose to store the items under a hidden page (eg admin/players) because i have an unknown number of teams. what i really don't like with pagetable is that it breaks the logic of the pagetree. if you add your page-table items as children of the current page you will see them in the pagetree. eg. players edit | view | new | move - player 1 - player 2 - player 3 but if you click on "new" beside players and add player 4 it will never show up in the pagetable inside "players" page! how do you handle this? thanks for your thoughts