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 | |
/** | |
* Craft CMS 5 content migration that will create a functional index for custom fields, which | |
* are now stored as a JSON column in element_sites.content. Also handles dropping the index if | |
* the migration is reverted. | |
* | |
* @licence MIT | |
* @link https://nystudio107.com | |
* @copyright Copyright (c) nystudio107 | |
*/ |
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 | |
/** | |
* Craft CMS 5 content migration that creates & deletes Fields, EntryTypes & Sections, adds the Fields to the | |
* EntryTypes, adds the EntryTypes to the Sections, and then seeds the newly created Section with faked data. | |
* Also has a `safeDown()` method to revert what the migration adds | |
* | |
* @licence MIT | |
* @link https://nystudio107.com | |
* @copyright Copyright (c) nystudio107 | |
*/ |
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\contentmigrations; | |
use Craft; | |
use craft\db\Migration; | |
use craft\db\Table; | |
use craft\helpers\ElementHelper; | |
/** |
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\contentmigrations; | |
use Craft; | |
use craft\base\Element; | |
use craft\base\Field; | |
use craft\db\Migration; | |
use craft\elements\Entry; | |
use craft\errors\ElementNotFoundException; |
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
Coverage Badges |
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 | |
/** | |
* Yii Application Config | |
* | |
* Edit this file at your own risk! | |
* | |
* The array returned by this file will get merged with | |
* vendor/craftcms/cms/src/config/app/main.php and [web|console].php, when | |
* Craft's bootstrap script is defining the configuration for the entire | |
* application. |
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
This is now part of craft-scripts: | |
https://github.com/nystudio107/craft-scripts |
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
# Using .htaccess is something you should avoid if at all possible, due to performance concerns: | |
# https://httpd.apache.org/docs/current/howto/htaccess.html | |
# Here's how to implement the rewrite rules for CraftCMS in an Apache .conf file; the key | |
# part is the "## Removes index.php from Craft URLs ##" section; the rest is provided | |
# just for context. Enjoy - [email protected] | |
<VirtualHost *:80> | |
ServerName BradsForMen.com | |
ServerAlias *.BradsForMen.com | |
DocumentRoot /var/www/BradsForMen/public |
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
This is now part of craft-scripts: | |
https://github.com/nystudio107/craft-scripts |