-
-
-
- Building blocks of the data model
- Basic concepts
- Classes
- Key fields
- Local lookup lists
- Fields and data types
- Defining the columns of a table
- Relations between classes
- Global lookup lists
- Filters
- Universal connected classes
- Deleting foreign records
- Class inheritance
- Storage of personal data on test and develop environment (scrambling)
-
- User interface versions
- Building blocks for user interface design
- Adding styles with a css
- Surrounding page
- Changing snippets
- Creating a custom login page (pre 3.4)
- Creating a custom login page
- Using velocity templates within the blueprint
- Create your own web pages
- HTML delivery requirements
- How to customize system mails
-
- Resource files
- Velocity - How does it work?
- Quick Velocity Tutorial
- Debugging velocity scripts
- Velocity Command Reference
- Script Editor Tutorial
- Using velocity for calculations
- Using predefined forms in a html design
- Velocity forms
- Data field identifiers
- Macros and methods
- Velocity library
- Velocity: using the #macro command
- velocity and xml
- Using AJAX in your velocity scripts
-
-
- Argon2 password conversion
- Introduction to security
- Secure development
- Security certification
- Security Exam
- Field properties concerning security
- Developing user groups securely
- Security considerations for user interface
- Secure file organization
- Securely using the request
- Cross Site Scripting (XSS)
- Other options concerning secure development
- Security analysis
- Secure deployment
- Secure application management
- Scrambling of testdata
- Anonymization of personal data
- Using robots.txt
- Permission settings
- Security measures
- Data encryption
-
- Search Engine Optimization
- OTP
- User Interface migration guide
- User account management
- Instructies voor implementatie van visueel editen van nieuwsbrieven
- Login as another user
- Support
- More information about moving to User Interface Version 4.0
- Standaard page layout
- Sections moved to layout
- Aanpassingen in release 2024-7
- Media library
- Aanpassingen in release 2024-10
- Analytics and Matomo
- Registration forms
- How to change names of classes and fields?
- Responsible Disclosure Policy
- How to upload a blob in Velocity?
- Aanpassingen in release 2024-2
- Instances
- Componenten in onze technologie
- Google Analytics
- Street and City helper (postcodecheck)
- Responsible disclosure-beleid
- Postcode check service (straat en huisnummer) kosten
- Expressions
- Regular Expression Reference
-
Media library
Class 'Format':
-a Field 'Width'
-a Field 'Height'
Class Image:
-a Field 'Image' to contain the original image with Field role 'Original blob field'.
-a Field 'Width'
-a Field 'Height'
-a Field 'Filesize'
Class 'Resized image':
-a field 'Main image' linking to class 'Image'
-a Field 'Image' that contains the resized image
-a Field 'Format' linking to the 'class 'Format'
-an Integer Field 'Minimum width' with Field role 'Minimum crop width'. This is a calculated value from class 'Format'.
-an Integer Field 'Minimum height' with Field role 'Minimum crop height'. This is a calculated value from class 'Format'.
Class trigger script on class 'Image':
## If the main image was not modified we do nothing
#if(!$record.isModified('image'))
##stop
#end
## Get the original image (full size)
#set($image = $record.getOriginalBlob('Image'))
## Remove previous resized images
#if($record.isEditableRecord())
#set($resizedImages = $record.getRelevantEditableConnectedTable("Resized image"))
#else
#set($resizedImages = $record.getConnectedTable("Resized image"))
#end
$resizedImages.deleteAll()
#if($image)
## Get metadata
#set($dimension = $image.getDimension())
#if($dimension)
#set($originalWidth = $dimension.getWidth())
#set($originalHeight = $dimension.getHeight())
$record.unconditionalUpdate('width', $!originalWidth)
$record.unconditionalUpdate('height', $!originalHeight)
#end
#set($lengthBytes = $image.length())
#if($lengthBytes)
#set($lengthKB = $lengthBytes / 1000)
$record.unconditionalUpdate('filesize', $lengthKB)
#end
## Create resized images
#set($formats = $session.getTable('format'))
#foreach($format in $formats)
#set($height = $format.get('height'))
#set($width = $format.get('width'))
#if($height < $originalHeight && $width < $originalWidth)
#set($newImage = $image.crop($width, $height))
#if($newImage)
#set($resizedImage = $resizedImages.addRecord())
$resizedImage.put('main image', $record.getSingleKeyValue())
$resizedImage.put('format', $format.getSingleKeyValue())
$resizedImage.put('image', $newImage)
#if(!$record.isEditableRecord())
#set($result = $resizedImage.save())
$session.addOneTimeInfo("$result")
#end
#end
#else
$session.addOneTimeWarning("The original height and width are smaller than the resized format $height x $width")
#end
#end
## Save if not editable
#if(!$record.isEditableRecord())
$resizedImages.save(false)
#end
#end