-
Posts
4,296 -
Joined
-
Last visited
-
Days Won
79
Everything posted by diogo
-
Hey guys, Here is our latest creation, a website for a landscape architecture studio in Freiburg, south of Germany. http://freisign.eu/ As you can see this is a very simple site. The most complex pages are the project pages since here we wanted to give the editors flexibility to construct the content at their will. Because we had a decent amount of different content blocks the obvious choice was to use the "Repeater Matrix" ProField. We also used the oldie "Page List Image Label" by Soma, which works pretty well for organising the admin of this kind of sites. For the slideshows we used the excellent Slick Carousel jQuery plugin. It still amazes me how flexible and easy to use it is The site is responsive, of course. As always, opinions and suggestions are welcome!
-
Hi @pwired, thanks for your opinions! The blue is the corporate color so we use it as much as we can throughout the website and we think titles and icons are perfect for that. Yes, I think that's the case. The color is exactly the same, but we don't want the blue elements to be visually as strong as the logo, even if having the same color. I don't have anything against css frameworks but our design process doesn't really allow for it. Erika has all the freedom to design the pages as she feels it works well and I do the effort to code exactly what she designed without imposing any previous limitations. That makes it very difficult to have a go-to framework, and even if I know that I could find a framework to fit each individual case the search would take me longer than doing the css by hand. Thanks! We consider this process to be our strong point, so we should be good at doing it
-
I guys, fresh new website to showcase https://iloetscher.com/ iLötscher is a Swiss company based in Zürich that provides informatics services for Apple devices and networks. We are still working on the English version and the private area. ProcessWire wise, the website is quite simple and the only non-core modules used are the Pro-fields Table and Hanna Code — both, together with Repeaters, to support the creation of the price tables: SSL is provided by the free Let's Encrypt, that I heard from in this forum (Thanks guys!). The hosting didn't support it (and I didn't have Shell access) but they were happy to install the Let's Encrypt extension for Plesk. Just wanted to let you know that it is worth insisting a bit, in case you encounter the same problem. For the time slot reservations we are using Calendly. It works quite well, and the options for embedding the system on the wesite are very flexible also. The site is responsive, of course. Feedback is more than welcome, thanks!
- 2 replies
-
- 14
-
Sorry @abdus, only saw this now. I just merged your pull request, thanks!
-
You can use from the API: $pages->emptyTrash(); It's even better if you can do it by bootstraping PW from the terminal.
-
Turns out that the problem is multisite. I removed emptied the $config->MultisiteDomains array, and the script was called normally and I was able to bootstrap PW. It's really strange, and I don't have a clue what is causing this behaviour in that particular environment (as I said, in a new local install, all worked perfectly) but for now I solved it by bypassing the $config->MultisiteDomains for that particular domain. if($_SERVER['SERVER_NAME'] == "alt.domain.com") { $config->MultisiteDomains = array(); } else { $config->MultisiteDomains = array( "domain1.com" => array( "root" => "www.domain1.com", "http404" => 27 ), "domain2.com" => array( "root" => "www.domain2.com", "http404" => 5332 ) ); }
-
Hi @Soma sorry for the late answer. The version is 006, but I don't think multisite is the problem. Just installed a new multisite locally and I don't get the same problem. I'll dig a bit more and see what really happening.
-
I'm having a problem with bootstraping PW in a install with multisite active, as anyone tried that before? As soon as I include the index, I get redirected to another page and the script doesn't run. I also tested accessing it through a subdomain that is not configured in the module, but the result is the same. Is there a way to bypass the module for a specific domain?
-
Hi Jan, thanks for passing by and answer the question. Padloper is a great eCommerce platform for PW built by a really talented dev from the forums. Just thought I should let you know
-
An article from April describing a strategy for deploying PW using Robo task manager http://antonioandra.de/articles/deploying-processwire-with-robo/
-
After seeing your ode, the solution @kongondo pointed at doesn't really apply here because you're not creating a page array, but looping through the data that comes from the API. Any reason why you're not using the same variable to create a page, and to add the fields and save? You would spare a call to the database on each iteraction if you didn't: $page = wire('pages')->get("parent={$parent_page->id}, this_id={$page['id']}"); // where this_id & $page['id'] are this entities id in the api if(!$page->id) { // CREATE new page $page = new Page(); // <- removed the $new_page variable ... // Some generic fields // save $page->save(); // not needed -> $page = wire('pages')->get($new_page->id); } ... // Set some more fields based on API data // save $page->save();
-
separate OutPut of Date / Time from FieldType DateTime
diogo replied to bbeer's topic in General Support
@LostKobrakai Oh, you're right, of course. Stroked! It doesn't work only when you call a function directly: function greet() { return 'Hi!'; } echo "Trigger greeter: {greet()}"; // Trigger greeter: {greet()} -
separate OutPut of Date / Time from FieldType DateTime
diogo replied to bbeer's topic in General Support
Just a small correction on your code. In this case it doesn't apply, because $event->zeit() is not an actual function, but in the case that it was, you could never call it inside the curly braces, because with that method of echoing strings the functions are not processed. In that case you would want to do: $content .= "<p>Datum:" . $event->zeit(); -
separate OutPut of Date / Time from FieldType DateTime
diogo replied to bbeer's topic in General Support
Hey Beat, no need to bang your head If you didn't change the output in the field settings, you should be getting a timestamp (1475743564). You can just break it down into date and time like this: echo "<p>Datum: " . strftime( '%d/%m/%Y', $event->zeit ); echo "<br />Zeit: " . strftime( '%H:%M:%S', $event->zeit ); The strings that I'm passing to the function are time representations from this list: http://php.net/manual/en/function.strftime.php You can do something more elaborate like this: strftime( '%A, %e of %B of the year %Y', $event->zeit ); which would output "Thursday, 6 of October of the year 2016" In that case, you would probably want to output them in German, so you have to set the locale if the system isn't already: setlocale(LC_ALL, "de_CH", "de_CH.utf-8", german") strftime( '%A, %e of %B of the year %Y', $event->zeit ); -
https://www.reddit.com/r/Wordpress/comments/55pe4l/processwire_vs_wordpress/ These guys need some fight PS: I posted something already: https://www.reddit.com/r/Wordpress/comments/55pe4l/processwire_vs_wordpress/d8dsole
-
Robin's method would work in that case. Maybe you should go with that.
-
You can still replace one instance of $("#container1") by $container on the line you just added. $("html, body").animate({ scrollTop: $container.offset().top }, 'slow'); It's good practice to avoid calling the jQuery function when not needed to save processing, and since you have the element already in a variable.
-
/* JS */ var $container = $("#container1"); // avoid calling jQuery all the time $container.on('click','.MarkupPagerNav a', function() { $container.load( $(this).attr("href") + " #content1", function() { $container.removeClass('loading'); }).addClass('loading'); return false; }); /* CSS */ #container1 > * { opacity: 1; transition: opacity 200ms; } #container1.loading { background: url('http://cdnjs.cloudflare.com/ajax/libs/semantic-ui/0.16.1/images/loader-large.gif') no-repeat center 40vh; } #container1.loading > * { opacity: 0; transition: opacity 200ms; } Much simpler and lighter
-
On the first code you're trying to scroll inside the element itself. On the second code you're animating the whole page to it's top. You don't want either, what you want is to animate the whole page to the position of the top of the element, that you can get by using $("#container1").offset().top $("html, body").animate({ scrollTop: $("#container1").offset().top }, 'slow');
-
You're loading the links dynamically, so your 'click' event won't be bound to them, and the click assumes the default behaviour (without JS). That's why the url changes, and you get a page refresh. Try this instead: $("#container1").on('click','.MarkupPagerNav a', function() { Like that. the event is delegated to "#container1" — that will never change — and the dynamic content is searched for from there down. Documented here: http://api.jquery.com/on/#direct-and-delegated-events Edit: FYI I have it working on the live website only by executing this block of code on the console: $("#container1").on('click','.MarkupPagerNav a', function() { $("#container1").load( $(this).attr("href") + " #content1" ); return false; }); The miracle of inspector tools
-
I agree. No need at all for utf8 on urls. PS: good advice with the flags. I hate to see the brazillian flag representing the Portuguese language in international sites, and I'm sure Brazilians feel the same when it's the other way around. A flag represents a country, not a language.
-
I think it should be "Português" because it's directed at people that want the content in Portuguese. Usually that doesn't make much difference, but think of the extreme case of a website in Chinese (again Chinese, but for the other question) — if you have the language links in chinese, the people to whom they concern won't understand them.
-
Thanks Antti! But credit where it's due — the typography work was mostly from Royal Studio, and fortunately the guys at AIM were quite picky with me concerning detail
-
The whole text of that page should be "see footer"