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

Image Drop Caps

Development and Programming

Luca Chiesa's avatar
Luca Chiesa
3 posts
about 16 years ago
Luca Chiesa's avatar Luca Chiesa

Hi, I’ve just updated the DropCaps plugin to work with EE2.

Maybe this update could be useful for someone out there 😊

I changed a little how this plugin works because I needn’t subfolders or “key” values… Now you can use {exp:imgdropcaps} adding parameters only if you need them.

This plugin will replace the first character of a paragraph using a Drop Cap raster image. ********* INSTALL copy “imgdropcaps” folder to /system/expressionengine/third_party ********* SETUP -Default directory for your images is /images/dropcaps/ (if you use another folder check the code above and edit this path) -You can change file extension (default is PNG), height, width and alt value checking the code above. It’s really simple. -The name of your files need to be lowercase (example: a.png AND NOT A.png) ********* USAGE {exp:imgdropcaps folder="folder_name" key="0"} {copy} {/exp:imgdropcaps} Where: - {exp:imgdropcaps} is the tag you use to parse the text paragraph - {copy} is the text that will be parsed by the plugin OPTIONAL PARAMETERS: - folder=”” use if you want to add a subfolder where the alternative versions of dropcaps are stored - key=”” this value indicates how many charachters come before the beginning of your text. For example you could use key=”3” if your text is wrapped around tag.
       

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.