Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/20/2017 in all areas

  1. I built this one on bootstrap 4 with a number of extras. ie. Animate on scroll for photos and carousels, navbar animate on scroll, lightbox, google map embed, and font awesome. I am using the page tree as a row builder instead of navigation. I detached the menu system from the page tree to give more control on external links, single page website situations that need to link to sections, and add new window target options. It also lets you have different footer links vs header links this way. You can add something like a privacy policy to the footer and not the header and still have one place that controls your menus. Extensions used: Color Picker, Inputfield ACE Extended, Google map marker, MarkInPageTree, Media Library, and Hana Code.
    5 points
  2. Maybe use url segments for the whole url and just render the pages located elsewhere based in the infos supplied by the url.
    4 points
  3. i recently found one very nice solution that would even be free for 1 "operator" and that has an API and is abased on PHP & MySQL so it should perfectly fit with processwire: https://www.livezilla.net/features/en/ so we would have a live-chat AND helpdesk in one place. and it should be quite easy do create a processwire module that creates a widget on our clients sites where they can report issues in the way WE want (with custom forms and the info we need). it would just have to create a ticket via the api and we could manage all the tickets in one place for all our customers. i didn't try it until now, but if anybody wants to give it a try i would be interested in the results
    2 points
  4. Hi Nancy Reagan fan, There are a number of different ways you could do this, but if you want the class added to all images inserted via CKEditor then the simplest is to do it client-side with jQuery. 1. In your template file(s), wrap the output of your CKEditor field(s) with a div so you can identify them: echo "<div class='cke-content'>$page->body</div>"; 2. In a Javascript file: $(function() { $('.cke-content img').addClass('img-responsive'); }); But consider if you really need to add this class or not. If you wrap your CKEditor content as in step 1 then you can target the images in your CSS/JS with ".cke-content img" without needing to add a class to the images themselves.
    2 points
  5. I will be giving it a try. Thanks for the heads up.
    1 point
  6. perhaps this could work too echo str_replace('<img', '<img class="img-responsive"', $page->body);
    1 point
  7. like @LostKobrakai wrote are url segments for the whole store your weapon of choice... if you could live with http://www.example.com/store/username/ and then /username/chart/....and so on you could all serve it from the /store/ template as routing to the needed data and users...
    1 point
  8. Yes it is: http://modules.processwire.com/modules/pad-loper/ https://www.padloper.pw/
    1 point
  9. @artaylor, I tested this and PW does not interfere with htpasswd protection of a folder in the site root. Your folder structure should look like this: /protected-folder/ protected-file.txt .htaccess .htpasswd /site/ /wire/ ...etc This works for protecting 'protected-file.txt' (or any file in this folder). But you cannot get the directory listing for 'protected-folder' unless you explicitly enable indexes in /protected-folder/.htaccess by adding this: Options +Indexes
    1 point
  10. Sincerely hoping you're talking about the same CMS but two different ladies and not the opposite ?
    1 point
  11. Thanks, Mike! Not sure what's the overall statistics (all users/installs), but for me it's still 100% 2.8.x (never touch a running system )
    1 point
  12. @ryan, stuff like this is super-interesting to us aspiring devs and I for one would give my right arm to take a peek at your code and see how an expert approaches these things. It would be a really great learning opportunity. In general, would your client contracts allow you to share snippets of project code with the community? Would you be comfortable doing that? (not expecting you to reveal all your secrets!) Not in any way that would require you to invest time in making things plug-and-play or offering support for them - just dropping some interesting bits as Gists on Github. A possibility?
    1 point
  13. Very interesting, that CSS-Grid stuff. I'm thrilled. Here is a short list of usefull links: (must read) http://jensimmons.com/post/feb-27-2017/learn-css-grid http://gridbyexample.com/examples/ (some specs and technical info) http://gridbyexample.com/browsers/ https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/CSS_Grid_and_Progressive_Enhancement https://drafts.csswg.org/css-grid/#grid-containers (some more) https://css-tricks.com/css-grid-one-layout-multiple-ways/ PS: you also can support older browsers with different fallbacks, there are tuts over that too.
    1 point
  14. If you don't need to worry about browser support then you should take a look at the newly available css grids.
    1 point
  15. Had this written before Macrura's post so I'll leave it here. $x = 0; foreach($recipes as $recipe){ $class = "class"; $imageSrc = $recipe->image->first()->size(200,200)->url; if($x == 1){ $class = "otherClass"; $imageSrc = $recipe->image->first()->size(500,200)->url; } echo "<div class='{$class}'><img src='{$imageSrc}'></div>"; $x++; } You can also use css :nth-child pseudo class
    1 point
  16. Just a little update because of new API additions, so now you could just do foreach ($pag as $p) { foreach ($languages->find('name!=default') as $lang) { $p->setAndSave("status$lang", 1); } } Thanks @szabesz for mentioning I'm adding this here for completeness
    1 point
×
×
  • Create New...