Get entry revisions in ExpressionEngine

ExpressionEngine is having a good feature of channel entry versioning in which entry’s versions can be saved. This feature can be enabled from the channel preferences under “Versioning Preferences”. Once this preference...

Get Last Segment of URL in JavaScript

JavaScript handles strings and arrays very well. Sometime its needed to get the last segment or file name of the current page URL and process it for another JavaScript/Ajax request. Here, I...

Search and Replace from another table in MySQL

In MySQL, its easy to find occurrence of a sub-string within string and replace all that occurrences with MySQL REPLACE() function like: UPDATE tablename set table_column = REPLACE (table_column, ‘[string to be...

Manually Clear Cached Data

ExpressionEngine have good caching feature. You can see about Data Caching and Performance. The cached data can be cleared from ExpressionEngine’s Control Panel -> Tools -> Data -> Clear Caching. Here...