First off some general thoughts on how to use opengraph metatags.
Since the uprise of Social Media, sharing sites, deeplinking and snippetting content has become a important aspect of SEO and so almost every site has some kind of facebook-like-button to let user easily share the page.
Most sharing endpoints, facebook f.e, bring a more or less good parser/linter to summarize the page content. So the first text paragraph will be taken as text snippet and all images that fit certain requirements will be offered to chose a preview-thumbnail from.
So far so good.
Continue reading “Opengraph MetaTags in SilverStripe”
Symfony2 Starter Tweaks
When you start with symfony you probably use the Symfony Standard Edition.
This is a quite good start but there are somethings that helped me and might help you aswell.
Since every beginning is “schwer” :)
So here there are.
Continue reading “Symfony2 Starter Tweaks”
Silverstripe Profilable module
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.
Hosting multiple Express (node.js) apps on port 80
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. Continue reading “Hosting multiple Express (node.js) apps on port 80”
how to add placeholder attributes in Silverstripe Userforms Module
to be honest i didn’t find a clean way yet, but i thought this workaround might be worth sharing.
…since Silverstripes‘ Userforms Module Uses jQuery for Validation you can put these lines of code in your UserDefinedForm.ss Template: Continue reading “how to add placeholder attributes in Silverstripe Userforms Module”
javascript benchmarking with jsperf
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:
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.
Continue reading “javascript benchmarking with jsperf”
Tools for jade template development
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. Continue reading “Tools for jade template development”
[Symfony 2] composer.json for a assumed-stable symfony 2 distribution
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. Continue reading “[Symfony 2] composer.json for a assumed-stable symfony 2 distribution”
run JavaScript code in PHP 5.3 with the v8js extension
…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. Continue reading “run JavaScript code in PHP 5.3 with the v8js extension”
Silverstripe – has_many- and many_many-relations when duplicating pages
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. Continue reading “Silverstripe – has_many- and many_many-relations when duplicating pages”