IntroductionIntroduction

Craft 3.4 & Commerce 3 RCs, Dot One Tix, loads of Craft tips

Welcome to another issue of Craft Link List. Are you surprised that you’re receiving this on Jan 21? If case you missed the announcement, CLL now publishes on the 1st and 3rd Tuesday of the month instead of specific dates. No more weekend issues!

We kick off the issue with the release candidates for Craft 3.4 and Commerce 3. DotOne is also on the horizon. There are lots of great tips and plugins as well.

If you have a link to share, head over to the submit a link page. It helps with putting each issue together.

Thank you to Solspace for sponsoring this issue.

Solspace is growing and is hiring a full-time developer. Are you the one? Start the new decade with a new job!

Let’s hit the links.

-John Morton

Craft Link List  

News




Tools, tips, and fundamentals


Using a subdirectory for Craft

A question came up on Discord recently about using a subdirectory to contain Craft app files. In this instance, the hosting company only allowed uploading files to the public directory, which meant the traditional home for the Craft application files, one level above the publicly facing directory, wasn't possible. Craft CMS expects its app files, as seen in this link, to be one level above the public folder.

Brandon shared the following steps for dealing with this situation.

  1. Rename web/ to public_html/ (i.e. the directory that is typically publicly viewable in a Craft site)
  2. Move all the Craft files/folders that live alongside public_html/ into a folder inside public_html/ (i.e. public_html/craft/...)
  3. Assuming this is Apache, create a .htaccess file inside that folder (public_html/craft/.htaccess) with this content: Deny from all
  4. Change this line (https://github.com/craftcms/craft/blob/master/web/index.php#L7) in public_html/index.php to:
define('CRAFT_BASE_PATH', __DIR__ . '/craft');
Craft Link List  











Perfecting your technique








Sponsor

Plugged In






The Craft Advantage

Overheard



It’s not Craft, but it’s interesting.