Jump to content

diogo

Moderators
  • Posts

    4,296
  • Joined

  • Last visited

  • Days Won

    79

Everything posted by diogo

  1. Apeisa created a module for this kind of scenario http://modules.processwire.com/modules/multisite/
  2. The links won't work without it. You would have only the homepage visible, and you also wouldn't be able to access the admin.
  3. You have two options. 1. move all the files and the database to the server. You have instructions here http://processwire.com/talk/topic/27-moving-pw-between-staging-and-live-server/#entry63 2. create an installable copy of the website with the Site Profile Exporter module http://modules.processwire.com/modules/process-export-profile/
  4. I agree that Scribus is not good for drawing, but what I mean is importing the SVG to Scribus and convert it to CMYK there.
  5. Michel, you can do it with scribus. We should rime. A good tag would be "i admire processwire" Edit: one more, "processwire is on fire"
  6. if($withThisCat->count() > 0) checks if the array of posts where the category page is present is not empty this is what happens: Find all categories and loop through them | | Design <-- are there more than 0 posts with this category? yes! -> print it | Development <-- are there more than 0 posts with this category? yes! -> print it | One more <-- are there more than 0 posts with this category? no! -> don't print it | Last one <-- are there more than 0 posts with this category? yes! -> print it | | Leave the loop.
  7. This is a bit confusing because you have two pages called notes. Still, I will give it a try. Is this what you want? foreach ($pages->get("/category/")->children as $cat) { // find all pages with this category $withThisCat = $pages->get("/notes/")->find("note_category=$cat"); // if some pages have this category if($withThisCat->count() > 0){ // print the category link echo "<p><a href='{$cat->url}'>{$cat->title}</a></p>"; } } edit: added variables to make it more clear
  8. I think has_parent is not a selector. try parent=2293|1038 Sorry, it is a selector...
  9. diogo

    That Ryan Bloke.

    Gave a like to him just before reading this, so it goes on 998 now. wait, 999 now... This is exciting +1
  10. Should be possible. Confirm that you have it in field>details>valid file extensions
  11. I don't see any logic way of grouping the fields automatically. But maybe what renobird is suggesting wouldn't be illogical at all for organizing them manually. Also tabs or simply the ability of ordering them with drag and drop would make sense...
  12. You don't have to compile it! Apparentl. nginx needs php-fpm. Install it via apt-get. I'm on mobile, so i can't help you more than this. But search on Google for any tutorial on how to install nginx and php on ubuntu. It should be something like: apt-get install php-fpm
  13. They can already be filtered by template or field type. Just in case someone missed it Edit: oh, Apeisa said this before. This will teach me not to read in diagonal...
  14. I don't think it's a good idea to give them access to the database... There is another nice solution. You can use the http://modules.proce...export-profile/ for backing up the site folder and the database at the same time. And you can do it with one click through the admin. The problem is that, if there is already a backed up folder on the server, the module tells you to delete it before continuing. So much for the one click solution Ryan, couldn't this behavior be changed to something different? EDIT: Forget what I wrote, you can do it with one click Well, with some more clicks, but the module is not prepared for this purpose, and the instructions can become confusing for the clients. Also, be aware that although this does backup the database, this folder will still be in the same computer and folder as the website is. Not a very effective backup if it's the only one.
  15. You just have to export the database, and keep a copy of your "site" folder
  16. Yep, the problem is the GD library. When this happened to me I confirmed on info.php that I had it installed, but it was fixed only when I reinstalled
  17. Oh, I had that exact problem some days ago... can you go to your assets folder and check if the images are on the folder with the same number as the page?
  18. Welcome to the forum Miguel! I think that might be the problem. Have a look at this thread http://processwire.com/talk/topic/275-processwire-on-nginx/
  19. diogo

    web experiments

    Here is one. After I saw this, I decided to also build my small icon with css ➔ http://diogoo.com/ I love it
  20. It's quite simple. If you create a variable in a script tag it will be available to any js file that is called after it. This just allows you to use php, thus, making it dynamic. This will apply to anything that you need to be dynamic and want use with js,
  21. instead of hardcoding the url, why don't you define it on a script before linking to the main.js? <script>var myUrl = "<?php echo $pages->get('mypage')->url";</script>
  22. What about a module that would temporarily replicate the admin behaviour for any user without leaving the superuser session?
  23. Is it possible to make double password check?
  24. Ryan, there is one parameter that is not specified on the documentation, but that can be very useful if you want the video to be behind an html element. Would be nice if you would also add it: &wmode=transparent &wmode=opaque http://php.quicoto.com/how-to-fix-z-index-in-youtube-iframes/
×
×
  • Create New...