We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Allow blank partial to be created

Feature Requests

dwg-andy's avatar
dwg-andy
27 posts
8 years ago
dwg-andy's avatar dwg-andy

The request: When creating a partial or variable, I’d like to be able to save it as blank.
The story: We use a CDN on many of our sites. To set this up, we prefix every asset url with {cdn} which is a partial (example src=”{cdn}/images/thisimage.jpg”). Since we don’t use the CDN in development, the CDN partial is blank. However in production we enter the actual url for the CDN, thus completing the image source path. Basically what I do now is create the partial with a slash in it, then go into the code and delete.
Not a huge deal, just a small time saver. I do think there could be other similar use cases, just can’t think of any now.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.