Jump to content

diogo

Moderators
  • Posts

    4,314
  • Joined

  • Last visited

  • Days Won

    80

Everything posted by diogo

  1. Horst, would you consider adding a resize mode that adds a colored or transparent padding instead of distorting the image? Something like this:
  2. All post are valuable I will just mark it as solved, if that's ok for you. Since I can't mark the original post as best answer, Martijn will have the honors
  3. owzim, that's an old one, use the version of the module that is on github, and follow the instructions from there https://github.com/ocorreiododiogo/pw-admin-custom-pages I will remove that file from that post...
  4. I run into a problem with the code that I posted above. After deleting a template via the API, I can't create a new one with the same name, and get this error message: You must save Fieldgroup 'x' before adding to Template 'x' This seems to be the same problem that Martijn had here: http://processwire.com/talk/topic/3962-you-must-save-fieldgroup-markupcsscompress-before-adding-to-template-markupcsscompress/, and modifying the code above to delete the fieldgroup with the same name as the template (besides the template itself) seems to solve the problem.
  5. Quick and dirty interface to batch delete unused templates by selecting them with checkboxes: if ($input->post->submit) { foreach ($input->post as $t) { // proceed only if the input is an integer different from 0 if (!(int)$t) return; $t = $templates->get($t); $templates->delete($t); $name = $t->name; // delete the fieldgroup associated with this template. more info in the next post $fg = $fieldgroups->get($name); $fieldgroups->delete($fg); // verify that the template is not there and print the confirmation if (!$templates->get($t)) echo "<p>template {$name} was deleted.</p>"; } } else { // print the form echo "<form method='post'>"; echo "<ul>"; foreach ($templates as $t) { // name of the temlate and number of pages it uses echo "<li>" . $t->name . " (" . $t->getNumPages() . " pages)"; // include checkbox if the template is not used by pages, and set it's id as value if (!$t->getNumPages()) echo " <input type='checkbox' value='{$t->id}' name='{$t->name}'>"; echo "</li>"; } echo "</ul>"; echo "<input type='submit' value='delete these' name='submit'>"; echo "</form>"; } Edit: Added "if ($templates->get($t)))" to the "template was deleted" line. Now we are sure that it was really deleted Edit2: Edited the code based on the problem explained in the next post
  6. Although is true that PW keeps getting better. I think Martijn's sentence is more accurate
  7. I didn't have a good experience at all with inDesign for this... ended up using Sigil (linked on my previous post), and correcting everything by hand on the code.
  8. I also want to join the party Some of these I use a lot, some I just find interesting and bookmarked: http://copypastecharacter.com/ <- absolutely love it!! http://webanywhere.cs.washington.edu/ <- screen reader anywhere http://www.monstaftp.com/ <- this one is very recent, so I hope it will get better http://photobatch.stani.be/ <- for photo batch editing. website is not working right now, see here https://launchpad.net/phatch http://redpen.io/ <- very simple tool for getting feedback on designs https://draftin.com/ <- for collaborative writting. I love where they are going with this https://delicious.com/ with this chrome extension <- still use it a lot for public and private bookmarking http://codepen.io/ <-everyone knows this, right? http://color.hailpixel.com/ <- nice color picker http://tinypng.org/ <- make pngs smaller https://avocado.io/ <- for couples. use it everyday https://aerofs.com/ <- very fast file sharing http://www.justbeamit.com/ <- also for sharing files without an intermediary server https://www.hightail.com/ <- speaking of file sharing. Did you know that yousendit changed? http://www.adminer.org/ <- my favorite for managing mySQL https://code.google.com/p/sigil/ <- for making ebooks http://elementaryos.org/ <- not an app, i know... but this is my current OS http://codev.it <- for quick file editing through ftp http://flackr.github.io/circ/ IRC client for chrome https://talky.io/ very easy video conference edit: added codev to the list edit2: added CIRC edit3: added talky
  9. Here I have mostly vruuums and beeps, and even dling-dlongs from the church bell Edit: "Here" means Frankfurt, not Porto
  10. And have you seen the posts from Horst?
  11. @alkahest, as always the built-in way to do things in PW is the simplest possible: create a new page "selects" under admin (like this it will be automatically hidden from the editors), and create any new selectors and it's options under it. edit: Martijn was faster
  12. I don't know why your init.php file doesn't work if it's included before all other files. Anyway, have you seen this in the config file? /** * prependTemplateFile: PHP file in /site/templates/ that will be loaded before each page's template file * * Uncomment and edit to enable. * */ // $config->prependTemplateFile = '_init.php';
  13. I don't know if this will help, but can you try this $children = $page->rootParent->children("menu_name!='')->sort("sort");
  14. Although Tumble has a great API, making it really easy to pull things to your website, personally I don't think you should do it without considering that you will lose all the social things that Tumblr has to offer. You can, of course, style the tumblr blog to fit better visually and you should definitely have, either a link back to the website, or even all the navigation on the blog.
  15. Independently of this discussion, I find this a good idea.
  16. Tiago, maybe you could rethink your only JS approach. I know this is an experimental website, but it would give so much more flexibility to do it in be a different way. You could for instance create all the postcards as divs (or articles in html5) and have them, already styles, in a normal posts structure. Then, with JS you would have only to pick them and put them inside the box.
  17. It does distract me. I love to listen to silence when I'm focusing on it only. When I'm focusing on something else, it distracts me. I like to work with music or in a coffee place. But that's me. Maybe I am empty and never noticed it
  18. refer to this http://processwire.com/talk/topic/4114-как-вставить-flash-в-структуру-сайта/
  19. Nico, I love how this looks like and where you are going with this. but the pages pan doesn't work for me as it is. on my laptop it just pushes the content to outside the screen on the right, and it doesn't feel natural that a menu item does something different from the others... Still, I love this theme and would like to help finding a solution if you are open for it
  20. In my experience, clients understand and accept very well when you tell them that you created some constrains on purpose. The important is that they look at their website and their friend's website and see why theirs looks much better.
  21. You can use an html parser to, both, create the templates in PW and pull the content to the database. It's some work, but perfectly doable.
×
×
  • Create New...