This file contains hidden or 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 | |
//File: /custom/Extension/modules/Leads/Ext/clients/base/layouts/convert-main/mapNewFields.php | |
//One Gotcha with this, this file will be required | |
//when metadata is being rebuilt and so you must avoid defining the following | |
//variable names here: $module and $type | |
//Doing so will override those variables in the MetaDatFiles parser and cause | |
//un-expected results. |
This file contains hidden or 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 | |
// Enrico Simonetti | |
// enricosimonetti.com | |
// | |
// 2018-12-28 Sugar 8.3.0 | |
// Show last 10 commentlog entries on Cases, with the newest one at the top | |
// | |
// file: custom/Extension/modules/Cases/Ext/Vardefs/commentlog.php | |
// |
This file contains hidden or 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
(function (app) { | |
app.events.on("app:init", function () { | |
/** | |
* This plugin allows views that contain *_postalcode attributes | |
* to be wired up with a keypress event that will contact a postal-code validator | |
* service | |
* | |
* <pre><code> | |
* { | |
* //Sample component |
This file contains hidden or 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 | |
//----------------------------------------------------------------------------- | |
if(!defined('sugarEntry'))define('sugarEntry', true); | |
require_once('include/entryPoint.php'); | |
//----------------------------------------------------------------------------- | |
$db = DBManagerFactory::getInstance(); | |
//-- TEMPLATE = birgit | |
$query = "SELECT id from users where user_name='birgit'"; | |
$result = $db->query($query, true,"Error fetching birgit: "); |
This file contains hidden or 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
/** | |
* More fun with positioning | |
*/ | |
div#page-wrap { | |
width: 700px; | |
margin: 25px auto; | |
border:1px dashed black; | |
background-color: rgba(0,0,0,0.5); | |
/* height:600px; */ | |
display:inline-block; |
This file contains hidden or 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
/* DIV positioning */ | |
#left-div { | |
width:400px; | |
border:1px solid red; | |
background-color:grey; | |
float:left; | |
} | |
#right-div { |
This file contains hidden or 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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
div#page-wrap { | |
width: 500px; | |
margin: 25px auto; | |
} | |
.header { |
This file contains hidden or 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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
div#page-wrap { | |
width: 500px; | |
margin: 25px auto; | |
} | |
.header { |
This file contains hidden or 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
/** | |
* More fun with positioning | |
*/ | |
div#page-wrap { | |
width: 700px; | |
margin: 25px auto; | |
border:1px dashed black; | |
background-color: rgba(0,0,0,0.5); | |
/* height:600px; */ | |
display:inline-block; |
This file contains hidden or 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
/** | |
* Positioning | |
*/ | |
div { | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
width: 100%; | |
padding: 20px; | |
box-sizing: border-box; |