Using getValue() with Date Fields in MODX

In a recent article, we looked at a very fast and efficient xPDO method for getting the value of a single field from a MODX object using the getValue method of the xPDO object. For example, this code will get the introtext field from a resource with the pagetitle “Products”:

$query = $modx->newQuery('modResource', array(
    'pagetitle' => 'Products',
));
$query->select('introtext');
$intro = $modx->getValue($query->prepare());

In this article, we’ll look at using it with date fields like createdon, and publishedon. Learn More

Tags: , , , , , , , , | Posted under MODX, MODX | Leave a comment

SocialEngine 4: Add Jbimages To TinyMCE Editor

Andrew - SocialEngine

Have you wanted to allow your members to upload jbimages to articles that are posted to your site?

Now you can with this quick and easy mod.

You have to edit TinyMce.php you can find that in application/libraries/Engine/View/Helper around line 56

To activate jbimages you have to add the code below: Learn More

Tags: , , , , , , , , , , , , , , , , , , , , , | Posted under SocialEngine | Leave a comment

[TomatoCart] New Arrival, Feature Items and Hot Deals Within Tabs

In this article, I will show you an amazing product content module including new arrival, feature items and hot deals. The user just need to click the tab to see different products in your store. But, I just implement it for bootstrap template now. If you are using the default template, this tutorial is not proper for you. Learn More

Tags: , , , , , , , , , , , , , , , , | Posted under TomatoCart | Leave a comment