-
Posts
437 -
Joined
-
Last visited
-
Days Won
4
Everything posted by 3fingers
-
Honestly I'm disappointed on what I see on UiKit3 release. I personally find it as @szabesz said as an "alpha" release... As an example : no more 12 colums for the width component (just 6...what?!), confusing grid classes (at least for me, but it's something I can learn quickly) and no sass version....
-
Is your file located outside the "site" folder? In that case you should : require_once('../index.php'); to have the whole Processwire API at your disposal.
-
PW 3.0.46 – Merry Christmas/Happy Holidays!
3fingers replied to ryan's topic in News & Announcements
Merry Xmas to you and your family Ryan! Every week of the year you're kind of our Santa Claus P.s. = Does every update of this new release apply for the 2.8.x branch too? -
...And there was the problem! I got an ad-blocker installed causing this issue on chrome. Unfortunately nowadays a lot of people have them turned on. I'm going to investigate for a workaround, but It is kind of a remarkable issue for my project In the meantime thanks for your support.
-
Thanks for the reply @netcarver. I appreciate. No errors anywhere in the console/inspector. I've also tried to manually point the module to the 1.0.2 version of the leaflet JS and css (changhing both unpkg.com urls) but without luck, same blank div. Have you got time to try to reproduce this strange behaviour?
-
Hello @netcarver I'm having the same problem @fliwatuet reported above. I supposed I've added everything correctly: in my _init.php: $map = $modules->get('MarkupLeafletMap'); inside the <head></head> of my top_nav.php: echo $map->getLeafletMapHeaderLines(); and then in my template file: <?php echo $map->render($page, 'map'); ?> // yes, the field is called "map" Inspecting the code I see all the css and js files in the <head> after this comment: <!-- Styles supporting the use of Leaflet.js --> .. css and js are here .. And the correct <div> is generated by the module: <div id="mleafletmap1" class="MarkupLeafletMap" style="width: 100%; height: 500px;"></div> ...but unfortunately the map is blank on the front-page of the site. I'm working on localhost on ProcessWire 2.8.35. ....got suggestions for me?
-
You are both providing good adivices and code. I did dozen times what @Macrura wrote...but that's what happens when you got a 5 months baby crying all night long: your mind blows :). Thanks @blynx too, I'm going to investigate more on It.
-
Hello guys, here is my messy code, I'm here to ask for a help in refactoring a foreach loop: $grandchildred = $page->children(); foreach ($grandchildred as $grandchild) { $children = $grandchild->children(); $outGrandchild = ''; /* MARKUP FOR GRANDCHILD */ $outGrandchild.= "<div class='uk-grid uk-grid-large'>"; $outGrandchild.= "<div class='uk-width-medium-1-3'>"; $outGrandchild.= "<div class='uk-panel uk-panel-box prodotto__panel-mod'>"; $outGrandchild.= "<div class='uk-panel-teaser'>"; $outGrandchild.= "<div class='uk-cover-background' style='background-image: url({$grandchild->product_image->url});'>"; $outGrandchild.= "<img class='uk-invisible' src='{$grandchild->product_image->url}' width='600' height='400' alt='Placeholder'>"; $outGrandchild.= "</div></div></div>"; $outGrandchild.= "<a class='prodotto__panel-links prodotto__panel-links-blue' href='{$grandchild->url}'><span>Discover more</span></a>"; $outGrandchild.= "</div>"; $outGrandchild.= "<div class='uk-width-medium-2-3'>"; $outGrandchild.= "<div class='prodotto__descr'><span>{$grandchild->product_options->title}</span>"; $outGrandchild.= "<h3 class='shadow-blue'>{$grandchild->title}</h3>"; $summary = truncateText($grandchild->product_description); $outGrandchild.= "<p>{$summary}</p><p><a href='{$grandchild->url}'><i class='uk-icon-chevron-circle-right uk-margin-small-right'></i>Link</a></p>"; $outGrandchild.= "</div></div></div>"; $outChild = ''; foreach ($children as $child) { /* MARKUP FOR CHILDREN - IT'S THE SAME AS ABOVE */ // HOW CAN I AVOID TO REWRITE IT? $outChild.= "<div class='uk-grid uk-grid-large'>"; $outChild.= "<div class='uk-width-medium-1-3'>"; $outChild.= "<div class='uk-panel uk-panel-box prodotto__panel-mod'>"; $outChild.= "<div class='uk-panel-teaser'>"; $outChild.= "<div class='uk-cover-background' style='background-image: url({$child->product_image->first()->url});'>"; $outChild.= "<img class='uk-invisible' src='{$child->product_image->first()->url}' width='600' height='400' alt='Placeholder'>"; $outChild.= "</div></div></div>"; $outChild.= "<a class='prodotto__panel-links prodotto__panel-links-blue' href='{$child->url}'><span>Discover more</span></a>"; $outChild.= "</div>"; $outChild.= "<div class='uk-width-medium-2-3'>"; $outChild.= "<div class='prodotto__descr'><span>{$child->product_options->title}</span>"; $outChild.= "<h3 class='shadow-blue'>{$child->title}</h3>"; $summary = truncateText($child->product_description); $outChild.= "<p>{$summary}</p><p><a href='{$child->url}'><i class='uk-icon-chevron-circle-right uk-margin-small-right'></i>Link</a></p>"; $outChild.= "</div></div></div>"; } /* OUTPUT CONDITION */ if(!count($grandchild->children())){ echo $outGrandchild; } else { echo $outChild; } } $grandchild and $children shares the same markup, but sometimes I just want to echo out $grindchild when they haven't $children. How can I code this in a more elegant way?
-
I'd really love if someone could provide a Docset of Processwire, would be great (considering that I'm going to be offline for a month or so during a site development.
-
@szabesz and @Macrura I setup a clean installation of pw 2.8.35, same setup as before, same database and no-problem now when "Module refresh". The only thing that I can think of is that, with this specific site I'm developing, I swapped from Osx to Windows a couple of times during development (transferring the whole pw tree structure and its database), since I have different machines (at work and at home). I think about some sort of inconsistency with WAMP and MAMP platforms, don't really know.
-
Here to report that I've switched back from pw 2.8.35 back to 2.7.3 and everything works smooth as butter. For the current project I'm on I think I can stick with it, in any case I'm going to test newer pw version on a different partition.
-
Thanks BitPoet, I knew what "case sensitive/insensitive" means, but never knew about this Osx/php inconsistency before. I'm going to try to install MAMP and Pw on an external partition, set it to case sensitive and report back. By the way I've set opcache.enabled to 0 inside php.ini but nothing has changed. @kongondo I've opened a new thread because I was referring, in my first post, to this Github open issue (but cannot find the relative post inside the forum).
-
Hello BitPoet, I've tried php 5.5.10 and 5.1.6. The first one gave me the issue I've mentioned, the 2nd one doesn't boot up pw at all. I've just tried those two because they are the ones MAMP have pre-installed. I have MAMP and pw installed on the same partition, yes...but I don't understand the "case sensitive" part of your answer EDIT: Switched to MAMP Pro and tried php 7.0.8. Same Issue
-
Hey all, here to report a big issue I'm facing. I've searched in the forum and found similar situations but without any solutions. When I click on "Module refresh" my admin theme (Reno) revert back to the older one pw had long time ago. Worst than this now I cannot reach the page tree because pw says "The requested process does not exist". I've attached a couple of screenshots. I'm on Pw 2.8.35, no modules installed yet. A plain and clean multi-language installation on MAMP Osx. Suggestions? Thanks!
-
Does using "isset()" - mentioned here - change something? if (isset($input->post->list)) { echo 'hello, ' . $input->post->firstname; }
-
Hi Mattiash, it' not working because the second "if" statement is outside the first one that is checking if the form was submitted via ajax. Maybe this: if($config->ajax) { echo 'proceed.php via ajax called!'; if($input->post->firstname) { echo 'hello, ' . $input->post->firstname; } } // or if($config->ajax && $input->post->firstname) { echo 'proceed.php via ajax called!'; echo 'hello, ' . $input->post->firstname; }
-
Hi Pravin, I think common mistake of newbies of the forum is to not contextualize the situation they're are asking help with. If you want help (and this is the right place :)) try first to help us understand at best what is your setup. Take for example some screenshots of your fields (the repeater containing the images or whatever it is involved in this particular situation). Hint: wrap html, php, or js code inside the "<>" icon you have in the editor, it greatly improves readability
-
Take a look here and here ...
-
$home = $pages->get("/"); // It returns the ID of the page, 1 because is the homepage $home = $pages->get("/")->url; // It returns the homepage path Edit: Probably not related with the behaviour you are facing. Are you using the "phone" field?
-
Adding a new animation effect to my site: scrollReveal.js
3fingers replied to franciccio-ITALIANO's topic in Tutorials
I suggest you to put your js inside the "script" folder pw provides, if you need to leave them where they actually are (assets/js) your url should be "../assets/js" since they are relative to the templates folder.- 2 replies
-
- scrollreveal
- javascript
-
(and 1 more)
Tagged with:
-
Hi David, maybe this could help?
- 1 reply
-
- 3
-
Hi franciccio, I'm an italian guy like you. You can install processwire locally with MAMP (link) if you are on a Mac or with WAMP (link) if you work on a Pc.
-
You could use that image as a background, something like this: .img-responsive { background: url(yourUrl); background-size: cover; background-repeat: no-repeat; background-attachment: fixed; background-position: center; } Or serve a different image using srcset: <picture> <source media="(max-width: 20em)" srcset="images/small/space-needle.jpg 1x, images/small/space-needle-2x.jpg 2x, images/small/space-needle-hd.jpg 3x"> <source media="(max-width: 40em)" srcset="images/medium/space-needle.jpg 1x, images/medium/space-needle-2x.jpg 2x, images/medium/space-needle-hd.jpg 3x"> <img src="space-needle.jpg" alt="Space Needle"> // Fallback </picture> More on this here
-
Could you please elaborate a bit more on how to achieve this with AIOM? @Jason Huck
-
Beside the simplicity of the site I've really enjoyed some of your photos, congrats!
- 12 replies
-
- minimalist
- minimalism
-
(and 4 more)
Tagged with: