-
Posts
2,769 -
Joined
-
Last visited
-
Days Won
31
Everything posted by Martijn Geerts
-
Fields, Template admin page performance
Martijn Geerts replied to Soma's topic in Wishlist & Roadmap
Install here 100 fields. no noticeable slowdown. -
Configurable Process Module (Need walk through)
Martijn Geerts replied to renobird's topic in Modules/Plugins
Great write up Adrian ! -
It's lookin great. If the silder is sliding some other element on the page move a little. ( Thats an artefact from BX Slider. ) This little annoyance can be solved by: .bx-viewport { -webkit-transform: translatez(0); -moz-transform: translatez(0); -ms-transform: translatez(0); -o-transform: translatez(0); transform: translatez(0); }
-
I read your Post atleast 5 times, But I really don't understand what you're asking.
-
note: I do use Font Awesome page label, but that one should be updated soon. Just After the release of that module, Ryan included Font Awesome int the core, next, it didn't took long before Font Awesome updated to the the new classNames. I really think that module deserve to be updated and it have to rewritten entirely. It has to adapt to how the how the things are now. I simply didn't had the time to do so.
-
Never did a comparison, but hell ya getResources was slow. Without cache, I was ashamed to deliver it to customers.
-
10 getResource calls take the same amount of time as getting 10.000 pages in ProcessWire.
-
New ProcessWire admin theme on dev branch
Martijn Geerts replied to ryan's topic in Themes and Profiles
@Soma: Ever checked out the PHP from Liip ? -
First of all I didn't use this module alot, last time I used it maybe a year ago. What is the CSS position used in the modal when initialising the map ? If that's position absolute, it could be an issue that the map doesn't get a height or width from the container and thus not render properly.
-
The height method doesn't exists in Pageimages. So maybe you trying to get a height of a Pagefiles array, and not a single image object. Soma wins...
- 4 replies
-
- 2
-
-
- error 500
- Pageimages
-
(and 1 more)
Tagged with:
-
The microsite, is a part of the site, where only a partner of pluimveeweb has his rights. Those rights are based on a parent page. I will explain this later.
-
Follow up, (scripts) For this website I needed a way to insert JS & CSS files on demand. All blocks are controlled by the editors of the website. And I don't want to serve all scripts to the client. I 'needed' a way serve one file back to the browser but only containing the scripts it needed. Most blocks are essentially pages that get rendered. So from within that block I wanted to use $config->scripts->add('my-script-here.js') to register the scripts. That Filename array is picked up by the minify script. Each file gets minified and stored with MarkupCache if not exist, or if the modified date of the original file is higher than the cached version a new markup cache file is created. This allows me to edit and save the Javascripts while the minify template serve to updated file back. ( this feels the same as using a preprocessor ). Proper headers should be send to the client so that the client don't need to re-download the minified version over an over again. This handling & the concatenate is handled all in the template file. This all felt very good, so thats why I wanted to share this with the community. I started writing this module at that crazy last day voting for ProcessWire at Bitnami for the community. For those who are interested, I wrapped the whole thing in a module, template and class. The technic used is in production at pluimveeweb, but the module here is not. If you want to use it, you should test it thoroughly! For pluimveeweb i didn't used the CSS, that part is added while writing the module. Here ya go, github: BundleFilesMinify
-
@Wanze. This module is even more useful then the analytics at google.com/analytics/ Those contain so much info, customers drowning in it. Your's has the right balance, just what we/they need.
-
Admin Page - "Recently Edited Articles" Link
Martijn Geerts replied to Peter Falkenberg Brown's topic in Wishlist & Roadmap
<qoute>. It would be cool to have them generated via the admin ui </quote> Thats easy for simple tables use repeaters. -
You should use utf-8 everywhere always.
-
It has to do with charactersets. Those question marks tells that the characters are not mapped (anymore). This can happen when there was a change in how the charactersets were saved.
-
If you guys didn't vote with your handy, try that one out.
- 191 replies
-
- 2
-
-
- bitnami
- installation
-
(and 2 more)
Tagged with:
-
Download TextWrangler or BBEdit and 'zap gremlins'. Be sure your files are saved in UTF-8
-
Thanks Joss! Nothing is lost yet. Go for it!
- 191 replies
-
- bitnami
- installation
-
(and 2 more)
Tagged with:
-
I know diogo....
- 191 replies
-
- bitnami
- installation
-
(and 2 more)
Tagged with:
-
You already voted for this application! bweugh.... Am#tys CMS cheats ! (I think)
- 191 replies
-
- bitnami
- installation
-
(and 2 more)
Tagged with:
-
Multi-page tree approach or multi-language fields?
Martijn Geerts replied to alicemccarthy's topic in Multi-Language Support
I will answer only one question. For webdevelopment / programming there should be one language and one language only. From the past till now, it was mostly english, so now we should use english. The community here is formed around interests ( rather then geological environment ) so we need a tool to communicate. This tool is english. If the past was different, and all programming started in spain for the first years, this community was talking spanish probably. I consider using any other language then english bad practise. I don't like when people using German, Dutch, Spanish, Chinese or any other language then english in programming or writing their comments. That said, I'm Dutch i'm bad with languages even bad with the Dutch language. --- <qoute>To my mind it is essential that the website's content is automatically displayed in the user's browser language as long as the website is offered in that language.</qoute> This is one of the things I really disagree. My girlfriend is from Czech, she has a Czech version of her browser/windows. Google honours those 'language settings', so for me it's almost impossible to work with her computer and I don't know how to turn it of. Every question and click google respond in Czech, i'm totally lost with her computer. It's doesn't matter for google if I chose google.nl or google.com or google.de I think the only language 'switch' that can be made is through domain name, as domain name is choosable for the visitor. Why doesn't Google trust the user here? -
As Joss mentioned ( I hope I find some time to do a case study. ) I didn't use any framework as I thought it's not necessary/not possible here as I needed specific widths. The site should run on 1024px monitors and lower, and the company wanted the 970px banner format in the top. Next they wanted a fixed sized 336px rectangle banner on the right. We wanted to have max space on 1024px and it should work on mobile. The thing I wanted was that more important content should be more in the top in the source then less important content. The max space I could give the site was: 1024px minus the 20px scrollbar for Windows XP Explorer 8. ( 1004px ) So here's the calculation what I used for the sizes: (16 pixels is gutter space ) header: banner XL 16 + 970 + 16 = 1002px body: column column banner size column 16 + 301 + 16 + 301 + 16 + 336 + 16 = 1002px So 1004 is the max width the site can be (screen wise) but I succeed it to stretch till 1002. The columns on home for example will figure out if the column should float left or float right. Those blocks can be 100% width or 50% width of the container. it's depending on height of previous blocks. I wrote this script to handle it.
-
What you've done is not wrong at all. But think I will do this a little bit different. Your function returns the global Label of the field and not the field label belonging to the requested Page. ( context settings of the field ) And I guess you want that one. // needs a Page object to function function maketable(Page $page, $field_name = null) { // escape if no fieldname given if(!$field_name) return; $field = $page->fields->$field_name; return "<tr><td>$field->label</td><td>" . $page->$field_name . "</td></tr>"; } echo maketable($looped_page, 'title'); // $looped_page, a Page that makes the table row