Jump to content

diogo

Moderators
  • Posts

    4,315
  • Joined

  • Last visited

  • Days Won

    80

Everything posted by diogo

  1. You're welcome Cramer
  2. It was a good great comment Joss!!
  3. Oh man... http://wptavern.com/if-i-switched-publishing-systems-processwire-wouldnt-be-my-first-choice
  4. Welcome to the forum! I've never done anything similar so I'm probably not the best to give advice. But in my understanding, if you will have to write custom code anyway, pw would be a perfect fit, at least as much as any other framework because it will give you all the flexibility while providing some great time savers. If you need something that pw doesn't have but you find on another framework or library you can always integrate it. We usually advice people to look for out-of-the-box solutions when they want to do this kind of large projects without wanting to write most of the code themselves but that doesn't seem to be your case. For what you wrote I suspect you will have fun with pw.
  5. A "?" is missing in <?php
  6. You can always make those images responsive. Thanks to Horst, PWs native images sizer provides images with much more quality than before. It's really easy to create responsive images with JS or even with the new SRCSET attribute for images or the <picture> element and respective polyfills http://scottjehl.github.io/picturefill/#examples It's great that you give the option to collapse the menu to show the images in bigger, but I think the wording could be better: I don't really want to "collapse the menu", what I really want is to see the content in bigger. What I mean is that the wording could be something like "enlarge content" and turning it into "show menu" as you already have there. I also think that this ability should only be present in the gallery pages as there's no point on seeing the blog or the copyright notice in larger. Just a suggestion
  7. You can use Hanna code to replace shortcodes by html tags, or even create a formatter that turns something like (----------) in a closing and opening div. I suspect that Ryan's new Pagination Textformatter could also be a good fit for you, but I'm not sure what it does exactly yet http://modules.processwire.com/modules/textformatter-pagination/ As for me, I prefer the template way whenever I can.
  8. diogo

    Yoga-Lounge-Berlin

    I hope you pass by Portugal on the way
  9. There was the need for more moderators because of a wave of spam that happened last week, but someone got too carried away with the bells and whistles That's the way to go
  10. Only in this thread Joss went already from 1853 to 1855 Distinguished has to do with the access to the payed modules forum.
  11. If you want to write raw html, you can even use ACE http://modules.processwire.com/modules/inputfield-ace-editor/
  12. The simple solutions are always the best And that's exactly what I did before in other projects Edit: Just a short explanation, as this was also the sort of my confusion. This solution only works because the stylesheet as precedence over the "height" attribute, if the RTE would be outputting style="height:400px" instead (like it happens sometimes), it would have precedence over the Stylesheet, and "height:auto" wouldn't work.
  13. In this particular case I'm not interested in resizing the images inside the editor, would be even nice not to have that option there. Is it that uncommon to prefer this over giving that option? We could have the option on the field settings of not allowing the resize, and in that case the image tag doesn't need the height there. Until then, I will continue to use the module.
  14. I hope there is a way to it in the RTEs themselves. Would prefer that than the stupid work of removing them in PHP for sure. But I googled it and didn't find anything for CKEditor. The module was a quick fix for my particular problem.
  15. Good point Martijn! I solved that problem by finding the images, and only then removing the attribute. To make it easier I'm using PHP's native Dom parser instead of regular expressions: $dom = new DOMDocument(); $dom->loadHTML(mb_convert_encoding($str, 'HTML-ENTITIES', 'UTF-8')); $images = $dom->getElementsByTagName('img'); foreach ($images as $image) { $image->removeAttribute('height'); } $str = $dom->saveHTML(); Beautiful, isn't it?
  16. Hey guys! I was having some trouble with the RTEs adding the height attribute to images, because it was distorting all my images (I'm using max-width on the CSS), and decided to do something about it. So, here's a small Textformatter module that removes all the Height attributes from RTE fields where it's activated. https://github.com/ocorreiododiogo/PW-removeHeights
  17. diogo

    Hosting advice

    Already done
  18. diogo

    Hosting advice

    I went ahead and removed the affiliate links and altered the first one to a regular link to the digitalocean homepage. Sorry @goro2, I would prefer to be welcoming you for the first post, but nothing on it tells us that you will stick around in the forum after dropping the link here.
  19. Eheh, I give an example for my second suggestion on that thread, thanks Adrian http://modules.processwire.com/authors/adrian/
  20. Not possible, you can only have field names on the left of the operand. Alternatively you could either find all the pages where price is not empty, and then remove the ones where retail price is the same inside a foreach: // not tested $result = $pages->find('Price!='); foreach ($result as $r) { $result->remove($result->get("RetailPrice=$r->Price")); } or create a new field that holds the diference of those two fields by hooking on page save to populate it.
  21. You might also want to have a look at some ready solutions for selling digital goods. Smashing Mag has a good article about it http://www.smashingmagazine.com/2012/03/29/selling-digital-goods-online-e-commerce-services-compared/
  22. Of course! Just have a look at how the admin works: .../processwire/page/edit/?id=1031 In that particular case, the query is handled by the ProcessPageEdit module with the following line: else if(isset($_GET['id'])) $this->id = (int) $_GET['id'];
  23. Sorry, didn't read the title...
  24. diogo

    Social Website.

    @totoff, did you actually post a second time 30 minutes later, or is this a forum problem?
  25. $page->repeaterfield->imagefield Make sure you are calling the field correctly. If it's a single image field (limit is 1): $page->repeaterfield->imagefield->url and if it's a multiple image field (limit is 0 or more than 1): foreach($page->repeaterfield->imagefield as $img) { echo $img->url; }
×
×
  • Create New...