-
Posts
4,314 -
Joined
-
Last visited
-
Days Won
80
Everything posted by diogo
-
This looks great!
-
Good suggestions, by using Pia, you won't have to touch the slick code. If you would decide to convert some images to vertical, you would have some big headaches to change the css that you already defined for slick. If you do decide to go with vertical images, I would advise you to use the images as background of an empty element instead to make them responsive and avoid strange distortions. You can keep the proportions of an empty element with this very interesting but simple trick http://stackoverflow.com/questions/1495407/maintain-the-aspect-ratio-of-a-div-with-css, and then set the images as background with cover and contain sizes.
-
Slick slider doesn't enforce any markup on you (that's why it's my favorite slider), so, we really need to know more about your markup to be able to help. Is there an page where we can have a look?
-
Check also if the limitation is not on the FB API side. I remember that I had to do the same with youtube, but YT allowed me to call a limited amount of videos on the same request.
-
Your German is very clear to me, I think your screencasts will be useful for some language learning
-
Oh, of course. When using this kind of foreach structure you have to reopen PHP to echo your object properties. You can open it with <?php or echo them with the shorter version <?= <?php foreach ( $pages->find('template=single, limit=5') as $single ):?> <div class='post'> <div class='content'> <a href='<?=$single->url?>'><h3><?=$single->title?></h3> </a> </div> </div> <? endforeach; ?> You can also use the most common PHP structure, where you don't go in and out of php. Your choice. Anyway, I think you would benefit a lot from studying the basics of PHP while using ProcessWire.It's not hard at all and will making everything more clear for you.
-
First of all, welcome to the forums! Hm, you have more than one problem in this line <?php foreach $pages->('template= home-single, limit=5'); ?> Try this instead: <?php foreach ( $pages->find('template=home-single, limit=5') as $single ); ?>
-
And css animations. I simplified their code to demonstrate: div { animation-name: enter_animation; animation-duration: 6s; animation-timing-function: ease; -webkit-animation-fill-mode: forwards; opacity: 0; } #first { animation-delay: 0; } #second { animation-delay: 4s; } #third { animation-delay: 8s; } @keyframes enter_animation { 0% { opacity: 0; } 100% { opacity: 1; } } http://codepen.io/diogo-ed/pen/pywjxN
-
Installation Method of ProcessWire on Cloud Server
diogo replied to Atif Shahab Qureshi's topic in Tutorials
Welcome to the forum Atif, thanks for the guideline and thanks again for the nice interview with Ryan. -
Because the markup is so simple, and the sections have all the same structure, I'm actually not using the render() function, so the children template simply doesn't have a template file. But if you are using the render() there are still some possibilities: — The most immediate is to set those pages to hidden; — Another option is to check if the page is being called by the render() function, you can do this by checking for the presence of the $options array if( isset( $options ) { // spit the content } else { // redirect to home or throw a 404 }
-
Hi all! Here is a very small website that we made for this event promoted by two landscape architects. This is a one day event where private gardens in Freiburg are open to the public. There are also some planned workshops and other activities. http://freiburger-gaerten.de/ This is one of the simplest websites we did. A one pager with smooth scrolling based on anchor links. The PW part was very easy, the content of each section is in a children of home, so on the home template we simply have to iterate all the children and render them.
-
Well spotted Willy! Cintia, before translating from portuguese to english, make sure you don't have mistakes on the portuguese words because it messes up the translation even more than usually. For instance, you missed the R in "Brasileia" and the G on "seuinte", and there are more. edit: Duh, you won't understand this probably , here you go: Cintia, antes de traduzires para inglês verifica que não tens erros no português. Isso vai tornar a tradução ainda mais caótica do que já fica normalmente. Por exemplo, falta o R em "Brasileia" e o G em "seuinte", e há mais assim.
-
How to get array of page ids by selector if there are 10000+ pages?
diogo replied to valan's topic in API & Templates
Not knowing exactly what you want to do it's difficult to help, but it seems to me that it would be better to use "limit" on the selector and do whatever you have to do in chunks. Honestly I don't see how an array of 10000 IDs could be useful. -
The idea of the process that I described is exactly to avoid locking the live site. That's why doing all the nondestructive changes on the live site and avoiding any DB changes on the local copy.
-
It's an old problem, and no, there isn't a simple solution. I think the most commonly adopted solution is still this one, back from 2011 http://ben.kulbertis.org/2011/10/synchronizing-a-mysql-database-with-git-and-git-hooks/
-
The system that's proven more effective for me is: 1 — do all the non destructive database changes on the live site (adding fields and adding them to templates, creating new templates and so on) 2 — import the database to the development server and do the templates changes 3 — pull the new files to the live site without touching the database 4 — do some cleaning on the live database if needed (remove fields, templates and so on) Another tip, although this one doesn't really answer your question, just because I think it can be useful One system that I already used effectively was to create another install of PW (a copy of the other) in the live server (on a subdirectory or subdomain) that connects to the same database, and develop all the changes on the template files right there, using real and up-to-date content. Then I simply replace the template folder by the new one.
-
A very honest write up by our very own André (@onjegolders) http://milktop.co.uk/articles/picking-the-right-cms-for-the-job I already told him about the built-in frontend editing on 3.0 and the Pro Drafts live editing
-
I'm building a image heavy site on Digital Ocean with a default Server Pilot configuration. Although the site is still not published, the team from the client is uploading content for at least 4 months and everything seems to be fine. You can for instance create a new VPS on Servint and let Server Pilot do the configuration, if all seems well, you just have to compare both configurations. Edit: strike that, Servint doesn't serve unmanaged VPSs. Maybe you can do it on Digital Ocean or Linode in that case.
-
Short answer because on mobile. Look on the docs for url segments
-
I think the main difference of PW to those two is the flexibility that the tree offers in terms of creating your own relations between pages, and how powerful the API is in returning them from any point. this: $pages->find("template=skyscraper, year<1950, floors>=10, sort=-year, sort=-floors"); and this: $items = $pages->find("template=product, stock>0, (featured_from<=today, featured_to>=today), (highlighted=1)"); and this: $items = $pages->find("template=product, company=[locations>5, locations.title%=Finland]");
-
Wow!!! Wordpress, Drupal and ProcessWire?? http://hackwithkali.net/how-to-be-a-professional-hacker-complete-guide/ Should we be worried?
-
You don't need regex. You can test simply by converting the string to uppercase and then compare it with the original string: if (strtoupper($str) === $str) EDIT: Or in Js if (string.toUpperCase() === string)