Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

A Viewtool Implementation of the Spam-me-not Java version by Björn Bergenheim

License

Notifications You must be signed in to change notification settings

aquent/dotcms.plugins.spammenot

Repository files navigation

Spam Me Not Viewtool

This plugin turns the Spam-Me-Not Java Version by Björn Bergenheim into a viewtool for dotCMS This is the OSGI Version

Original Version of this code can be found at: http://paula.edmiston.org/nb/spamx/SpamMeNot.java

Installation

  • Navigate to the dotCMS Dynamic plugins page: "System" > "Dynamic Plugins"
  • Click on "Upload plugin" and select the .jar file located in the "build/libs/" folder
  • Click on "Exported Packages" and add the following to the bottom:
,com.dotmarketing.osgi,
com.dotmarketing.util,
org.apache.velocity.tools.view.servlet,
org.apache.velocity.tools.view.tools,
org.osgi.framework

Usage Example

<p>Email Me: 
${spammenot.encodeEmail("example@email.com", "Example Name")}
</p>

#set($href = $spammenot.encodeString("mailto:example@email.com"))
#set($name = $spammenot.encodeString("Example Name"))
<p>Email Me: <a class="mylink" href="${href}">${name}</a></p>

Building

  • Install Gradle (if not already installed)
  • gradle jar

About

A Viewtool Implementation of the Spam-me-not Java version by Björn Bergenheim

Resources

License

Stars

Watchers

Forks

Packages

No packages published