Blog

Access external database

If you wish to access an external database either with the ORM or with a direct DB::Query you can...
Read more about 'Access external database'...

Save $many_many_extraFields when adding a DataObject to a list

Assuming you have a $many_many relation and SortOrder defined as $many_many_extraFields you can add an item to this ManyManyList and pass the extraFields as an array:
Read more about 'Save $many_many_extraFields when adding a DataObject to a list'...

Dates Formatted Based on Locale

$MyDate.Format(...) doesn't format based on locale, but $MyDate.FormatI18N(...) does :)
Read more about 'Dates Formatted Based on Locale'...

Changing the Name of "Settings" (aka SiteConfig)

If you wish to change the name of Settings then it cannot be done with normal methods.  Create mysite\lang\en_GB.yml and update the menu title this way...
Read more about 'Changing the Name of "Settings" (aka SiteConfig)'...

Re-ordering the CMS Menu Items

Manually changing the order of the menu items is a little time consuming with all the dev building, place this in your _config.php...
Read more about 'Re-ordering the CMS Menu Items'...

Performance

If you are looking to improve a sites performance this article is the foundation...
Read more about 'Performance'...

Remove Help Menu Item

As the menu item is created late in the process you need to extend LeftAndMain and then in onAfterInit remove the item...
Read more about 'Remove Help Menu Item'...

Can you use Facebook, Google or Twitter to login / get Member details?

Yes you can you can use any of the above for single-sign-on (SSO) and also to retrieve member information, please use the following module...
Read more about 'Can you use Facebook, Google or Twitter to login / get Member details?'...

Hooking into Dev/Build

If you would like to hook code before / after the dev/build ...
Read more about 'Hooking into Dev/Build'...

1 2 3 4 5 6 7

RSS feed for this blog