Jump to content

Christophe

Members
  • Posts

    688
  • Joined

  • Last visited

Everything posted by Christophe

  1. Hello, What do you think about this entire article?: https://mindtheshift.wordpress.com/2015/04/02/r-i-p-rem-viva-css-reference-pixel/ Edit: I'll try to read all the article's comments.
  2. Hello, Which version of ProcessWire are you using? You need the 3.x dev version for this (please see the content of the following page): https://processwire.com/blog/posts/hello-健康長壽·繁榮昌盛/ But it could be that it also works with the 2.x dev version. 2.7.3 development will normally soon become 2.8 stable. If I'm not wrong, functionalities/features of the 3.x dev branch are now synchronized with functionalities of the 2.x dev branch. https://processwire.com/download/
  3. I will try it in new projects with Atom and/or Sublime Text editor. https://atom.io/packages/autoprefixer https://developers.google.com/web/tools/setup/setup-editor#autoprefixer https://github.com/sindresorhus/sublime-autoprefixer Edit: https://github.com/mikaeljorhult/brackets-autoprefixer (Brackets)
  4. Hello, Imagine a homepage child page, Presentation. One of its siblings, Relooking, has a child page named Books. Presentation needs 3 images that are already in Books. These 3 images could also be in a page named Shared images or in a child page of Shared images named Books images, for instance (in this case, it would not be one page per image that is created, with Shared images being their parent. The same problem would exist with one page per image: having to click too many times to select multiple images, but this time from (different) children of the same parent page). In this case, 8 clicks are mandatory to insert each image, the first click being on the image icon in ckeditor. Perhaps there is a "solution" with "Bookmarks"... Any solution? [ ProcessWire 2.7.2 ] Edit: instead of clicking on the button to insert the image and go back to the ckeditor textarea field, perhaps a new button/functionality could be created to add another image from the same page or same parent, in order to not have to go again through all the path to the page or parent page. After saving the page, or simply going back to ckeditor, all would be set back to "normal", for example. I don't know if it's (easily) feasible or not...
  5. Sure. $i starts at 2 in the foreach statement. I guess you can do something like $row -= $i if ($odd) { echo "<div class='item-$row item-odd'>"; // Use .item-1, .item-2, etc to style /* OR */ echo "<div class='item-$row item-odd' style='background:{$repeater->color_field}'>"; // Or use a the color field by soma to select color in repeater ... } else { echo "<div class='item-$row item-even'>"; ... I haven't eaten yet today, so I could be wrong... Perhaps you have already done something similar to this...
  6. Hello Peter, Isn't something like this just what you need to add?: div.odd-item img {float: right;} div.even-item img {float: left;} And adjusting the margins and/or paddings. For a different background color on each row, are you going to use something like :nth-child(1), :nth-child(2)... [ https://developer.mozilla.org/en/docs/Web/CSS/:nth-child ] or :nth-of-type(1), :nth-of-type(2)... [ https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-of-type ]?
  7. There is also if (! Quick research via Google: For example, take a look at the current last answer here : http://stackoverflow.com/questions/6311040/php-if-not-equal-and-or-issue-why-doesnt-this-work (one example with || and one example with &&).
  8. Don't forget to read the "Responses"/Comments.
  9. Hi, Normally, as written above the Extra Allowed Content box, i(*) and h4(*) have to be on separate lines. h4(uk-panel-title) and i(uk-icon-credit-card-alt) should work. (uk-panel-title) and (uk-icon-credit-card-alt) also.
  10. Hello, How many pages do you want to display in the footer? Do they all have the same (direct) parent (that is a direct child of the homepage(?))? Or are they located a little bit everywhere (but under a direct child of the homepage(?))? Do they use the same template? You could "call" them directly. Perhaps you could add a field to the template used for the pages, and try something like this in the template file: if($homepage->children->displayed_in_the_footer_menu) { // code displayed if the field is checked I haven't used something like that for a menu yet, but I have in order to display content on the homepage, for example. You will have of course to hide these pages in the backend if you don't want them to show up in the top menu. And will perhaps have to use $homepage->children("include=hidden") (with single or double quotes), instead of just $homepage->children Can you give more details?
  11. I've just found this: https://www.sendinblue.com/mailchimp/ (comparison). The website and administration are available in several languages (like for MailerLite).
  12. You have a nice ProcessWire website with interesting products !
  13. If I'm not wrong... <?php foreach($page->team as $member): ?> goes hand in hand with <?php endforeach; ?> and allows you to put html code between them, without needing to echo it for instance. It could be that here <ul class="modal-list"> <?php foreach($member->tasks as $task){ echo "<li>$task->description</li>"; } </ul> ?> is missing between } and </ul>. Or that you have to remove <?php NB: I could be wrong, I'm a beginner at PHP...
  14. Perhaps not yet, but it could become... They talk about Laravel, October CMS, using a framework or plain PHP... it could be an opportunity to present ProcessWire (which has advantages of a CMF/CMS and advantages of plain PHP, etc.). I'm open to put this post elsewhere (I wasn't sure where to put it).
  15. In case someone knowledgeable enough wants to give an answer here: http://programmers.stackexchange.com/questions/314496/open-source-project-framework-or-core-php (I've found this indirectly while reading the book jump start php environment.)
  16. I don't know where to put it so I'm creating this topic here (feel free to move it). I've just found it indirectly: http://www.sitepoint.com/easy-dynamic-on-demand-image-resizing-with-glide/ http://glide.thephpleague.com/ Just in case it interests someone.
  17. I'll test pocket grid, lost grid, jeet grid, a flexbox grid, a css grid, and/or susy... when I have a moment... NB: I had a problem once when I tried the "flip" functionality with uikit. It would'nt work correctly. Has anyone tried it? This "functionality" worked well with kraken css (even though I couldn't control it like I wanted when having 3 columns).
  18. @bernhard I had seen the page https://processwire....ldtypes/images/. The fact that until now, I have most often, if not always, "deactivated" these kinds of options in config.php (like cropping and other ones) and that the times I have used size, with the width and height chosen and/or with the dimensions of the images, I haven't had the opportunity to notice how it really worked, made me think that it was something different. I simply haven't used it enough.
  19. "the images are tremendously huge!! the first for example is 2248x3000 @ 1.9MB" With tinypng/tinyjpg it becomes 189.0 KB (−91%)... @bernhard: <img src="<?= $page->your_image->size(1000, 1000, array('cropping' => false))->url ?>" alt="..."> Does this code mean that the dimension closest to 1000 will have this value, and that the other dimension's new value will be proportional? Edit: the opposite had more sense.
  20. Has someone here already tried this one?: http://daneden.github.io/Toast/ It was created by Daniel Eden (animate.css, etc.). It seems interesting, but perhaps (can) uses too many (large) classes...
  21. It should be $root = $pages->get(1052); and not $root = $pages->get("1052"); , shouldn't it? Is it the id, or the name of the page?
  22. I remember now that I've found it here: https://www.meteor.com/case-studies/build-apps-with-meteor
×
×
  • Create New...