-
Posts
2,769 -
Joined
-
Last visited
-
Days Won
31
Everything posted by Martijn Geerts
-
Great work Horst!
-
@Radek... It's amazing how you take care of this language pack. Thanks
-
wow ! thanks Teppo
-
So true Pete ! Next we have the question which hours do we charge. Example: you need study for a project ( without you'll not succeed the job ) how do you charge those ? Experienced developers can charge way more an hour then a less experienced programmer and in the end the bill will be lower. I do think that customers want to know the cost of the product, not the hours it took (in first place).
-
I did thought you were talking about canvas color that can be created with GD, not about incorrectness or not assigning of color profiles to images while resizing.
-
I know it now
-
There is no sorting in that module, it just handles the Pagearray as it is. Sort on date doesn't exists if you don't have a Datetime field called date. if you want to sort on date created it's: $posts = wire('pages')->find("template=post, sort=-created, $selector"); if you want to sort on date modified it's: $posts = wire('pages')->find("template=post, sort=-modified, $selector"); if you want to sort on a date field it's: (thats is what you've done now) $posts = wire('pages')->find("template=post, sort=-nameofdatefield, $selector");
-
Out of the box. No changes.
-
I only install Processwire in a sub directory when there's an other site already running in that install. Say: MODX site is running in the root. And I want to make a survey or what so ever with processwire. I install processwire in www.your-domain.org/servey/ So ./ will access MODX and ./survey/ access PW. If the site is only ProcessWire, I 'always' install it in the root. This way, no need for RewriteEngine stuff....
-
What is the find call to find pages in the RSS ?
-
Cool one Reno ! I was still scrabbling with pete's puzzle...
-
It's stored in the fieldgroup. If you know the page, you can access it via the page.
-
We need the old technic here: Post some clumsy text. After that -> edit the post. (then you're first one that responded )
-
@MikeB, How you structure your projects is up-to-you. The blog profile is just one way to do it. but there's no best way. The beauty of processwire is that you as developer are totally free how to handle those structures.
-
First I don't understand why you would send "unnecessary" pixels over the internet. I would say, don't send them and make the space you need with the HTML container element. Second, why do want to spoil server CPU for this. Third, if you want to make it your self difficult. here is the documentation.
-
Please add your site(s) to our directory (in addition to here)
Martijn Geerts replied to ryan's topic in Showcase
Great work Ryan ! Marty the MACHINE ! -
And all those 1048 likes were second or less ? lol
-
You did draw: resize the image till one of the edges reach 150px, can be width or can be height or both if the original is square. if you don't want this, do you want to mesh up with the aspect ratio ?
-
$ratioX = 150 / $image->width; $ratioY = 150 / $image->height; // the least expensive, is taken for size caculation $width = min($ratioX, $ratioY) * $image->width; $height = min($ratioX, $ratioY) * $image->height; $image->size($width,$height);
-
current user-role in the classes from body tag
Martijn Geerts replied to Martijn Geerts's topic in Wishlist & Roadmap
Use case could be styling / javascript etc depending on role. I think you're right about the data attribute. it's more flexible & better extendable. With dropped support of old IE, I don't see any issue not using the that attribute. -
$pages->find("selector") response time
Martijn Geerts replied to dfunk006's topic in Getting Started
<qoute>experience with running $pages->find("selector") api call on over 10,000 pages?</quote> I Don't think you will have any noticeable slowness with that amount of pages to be searched. You can't compare getResources with the ProcessWire way of finding pages. So far I understand Modx loads all the fields with getResources & the custom fields if needed in your results. ProcessWire wil only load the fields when you access them, so there's no field load with a page find. Result, searching 100.000 pages is not a problem. Searching 10.000 pages, just a blink of an eye.- 11 replies
-
- 4
-
-
- response time
- modx
-
(and 1 more)
Tagged with:
-
Teppo pointed us to this jQuery selector for linking to images only if they are in ProcessWire. $('a[href*="/assets/files/"]:has(img)').addClass('fancybox'); Next I want to point out, if you set a maximum height & width for the image, you always know the maximum image size for the popup image.