This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{exp:channel:entries ... } | |
{exp:playa:parents field="matrix_field_name" col="playa_col_name" var_prefix="parent"} | |
{parent:matrix_field search:matrix_col_name="[{entry_id}]" var_prefix="row"} | |
{row:some_col_name} | |
{!-- we can even loop through all of those related entries | |
(which will include the top-level entry) if we want... --} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git Source/craft/app/variables/HttpRequestVariable.php Source/craft/app/variables/HttpRequestVariable.php | |
index fad31b7edab84f5c428e3ce2c3b3ec6e8d92e7ef..430e1adcdf801cccabaf67c89001465c8835fba7 100644 | |
--- Source/craft/app/variables/HttpRequestVariable.php | |
+++ Source/craft/app/variables/HttpRequestVariable.php | |
@@ -201,4 +201,14 @@ class HttpRequestVariable | |
{ | |
return craft()->request->isMobileBrowser($detectTablets); | |
} | |
+ | |
+ /** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// ... | |
public function getFieldByHandle($handle) | |
{ | |
return craft()->fields->getFieldByHandle($handle); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Craft; | |
class CompatibilityPlugin extends BasePlugin | |
{ | |
function getName() | |
{ | |
return Craft::t('Browser Compatibility'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Craft; | |
class CompatibilityPlugin extends BasePlugin | |
{ | |
function getName() | |
{ | |
return Craft::t('Browser Compatibility'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// __call() test | |
// =========================================================================== | |
class MyBaseClass { | |
function _call($method, $args) | |
{ | |
echo($args[0]); | |
return TRUE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Code trimmed out while porting Playa to a FieldFrame extension | |
// =========================================================================== | |
/** | |
* Extension Constructor | |
* | |
* @param array $settings | |
* @since version 1.0.0 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// What I did | |
$myField.resizable({ | |
handles: ['.ui-resizable-handle'], // I already have this as a jQuery object, but passing it threw an error | |
alsoResize: '#'+myFieldId+' .scrollPane', // No way to specify the containment, so I had to add prepend the field ID. (allowing a jQuery object would fix that as well) | |
containment: 'parent', // This keeps the width from getting wider | |
resize: function() { | |
$(this).width('100%'); // This keeps the width from getting narrower | |
$('.scrollPane', this).width('100%'); // This keeps the alsoResize elements from changing widths | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!(/\.(?!htaccess|gitignore)[^/]*|\.(tmproj|o|pyc)|/Icon\r|/svn-commit(\.[2-9])?\.tmp)$ |
OlderNewer