PHP code example of trendyminds / statamic-palette
1. Go to this page and download the library: Download trendyminds/statamic-palette library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
trendyminds / statamic-palette example snippets
'indexes' => [
// ...your other search indexes
// Palette search
'palette' => [
'driver' => 'local',
'searchables' => 'all',
'fields' => ['title', 'summary'],
],
]
html
<!-- if Antlers -->
{{ palette }}
<!-- if Blade -->
{{ Statamic::tag('palette')->fetch() }}