RSS Feed
^__^

Silverstripe Profilable module

Ivo Bathke, 2012/05/03 17:03

This is a reoccuring requirement: you need a profile for some object in your project.
FE you have a company, a member or a location that should get an address, a marker on the map, an icon, homepage etc.

So I created a small silverstripe module that adds a profile tab to any object you choose in your Silverstripe CMS backend.

Silverstripe-profilable-300x129 in Silverstripe Profilable module
» read more

no comments yet

Hosting multiple Express (node.js) apps on port 80

Max Girkens, 2012/04/20 05:40

In the last days, i was trying to find a solution hosting multiple Express apps on my vServer the same Server.

Starting with Apache and mod_proxy, i ended up with a plain node solution, which i really like. » read more

no comments yet

how to add placeholder attributes in Silverstripe Userforms Module

Max Girkens, 2012/04/19 06:32

to be honest i didn’t find a clean way yet, but i thought this workaround might be worth sharing.

…since SilverstripesUserforms Module Uses jQuery for Validation you can put these lines of code in your UserDefinedForm.ss Template: » read more

no comments yet

javascript benchmarking with jsperf

Ivo Bathke, 2012/04/11 17:18

I might be a bit late (yeaikno it exist over a year now and a bunch of blogs had it covered) but nevertheless i would like to point out a very helpful online tool i recently ran into:

jsPerf

Its basically a online benchmark tool for testing different approaches in javascript.
It covers some important aspects of benchmarking, that your homemade bench probably wont have like milliseconds accuracy & statistical analysis.
The tests are run on your browser and the results will feed the “browserscope”. A graph of the “highest known results” for the participating browsers.
So we can see some kind of comparison.
» read more

no comments yet

Tools for jade template development

Max Girkens, 2012/04/09 12:12

I recently started digging into node.js and the express framework.
One thing i like about it is that it comes with the beautiful jade template engine by default.

Here are some things that come real hany when you are working with jade. » read more

no comments yet

[Symfony 2] composer.json for a assumed-stable symfony 2 distribution

Johannes Heinen, 2012/04/01 14:18

This small composer.json file is used in a project i am working on atm, feel free to use it at own risk. I will provide non-periodical updates and hopefully soon a full upgrade to symfony 2.1.x including doctrine orm 2.2.x.

I still did not get the point regarding dependency resolution, so i simply “composed” the composer file by writing down my own requirements (“i want only the hottest, newest stuff!!”, then tracked down the error messages, removing them by explicetly writing down the missing dependencies by using the latest “dev-*” versions. After that i tried to run the project, which actually did not work, but selective downgrade of some of the bundles (framework, security-extra blahblah) finally did the job. » read more

3 comments

run JavaScript code in PHP 5.3 with the v8js extension

Max Girkens, 2012/03/09 01:14

…for some reason i needed to get t h i s to work before going to sleep.

I’m running OSX 10.7.3 with macports which usually does the job, but  Google’s V8 Javascript Engine is not available as a port yet. » read more

no comments yet

Silverstripe – has_many- and many_many-relations when duplicating pages

Max Girkens, 2012/03/07 05:48

When you duplicate a page in the Silverstripe Sitetree, related “has_one” Items are automatically copied, which is nice.

But if you have, lets say, multiple related images on that Page, those are not copied when you duplicate that Page. » read more

no comments yet

modulo in Twig

Ivo Bathke, 2012/02/14 18:05

Ever wondered how to use the modulo operator in twig, the template engine of symfony?

Actually its like in PHP:

{{ 11 % 7 }}

As described here

But i guess for most use cases modulus is used to check if a number is divisible by another number.
Therefore Twig has the very conveniant divisibleby test function.

{% if loop.index is divisibleby(3) %}

» read more

1 comment

Silverstripe Setup Script

Ivo Bathke, 2012/02/09 11:30

We thought we had to improve our SilverStripe setup script for our development environment.
So Max and me rewrote it to add submodules and some other improvements.

Just run:

./install_silverstripe.sh mynewproject tags/2.4.7

and you have

  • silverstripe project folder structure
  • the tutorial theme
  • a already filled git repository
  • sapphire as submodule
  • cms as submodule
  • Uploadify as submodule
  • DataObjectManager as submodule
  • UserForms as submodule

» read more

no comments yet