Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > Plone Extensions

    jyu.z3cform.placeholder 1.0 Beta 3

    Download button

    No screenshots available
    Downloads: 135  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Asko Soukka | More programs
    GPL / FREE
    February 24th, 2011, 06:56 GMT [view history]
    ROOT / Internet / Plone Extensions

     Read user reviews (0)  Refer to a friend  Subscribe

    jyu.z3cform.placeholder description

    Integrates jQuery Watermark for z3c.form on Plone

    jyu.z3cform.placeholder is a Plone module that integrates jQuery Watermark for z3c.form on Plone by

     1. registering jquery.watermark's JavaScript and CSS
     2. introducing ''placeholder''-directive to be used in schemas
     3. registering value adapter to for annotated placeholder value
     4. registering custom JavaScript to initialize watermarks

    I wonder, if this product should've been named ''formwidget''-something...

    Example of Use

    from zope import schema

    from plone.directives import form

    from jyu.z3cform.placeholder.directives import placeholder

    from zope.i18nmessageid import MessageFactory as ZopeMessageFactory
    _ = ZopeMessageFactory("my.domain")

    class MyForm(form.Schema):
     """An example form
     """
     placeholder(subject=_u("Type something here.."))
     subject = schema.TextLine(
     title=_(u"Subject"),
     description=_("Subject of this submission"),
     required=True,
     )


    Overlay Support

    When you register custom form overlays in your custom JavaScript, you'd like to include placeholder support in your JavaScript like:

    $(document).ready(function() {
     $($('#my-form-link').prepOverlay({
     subtype: 'ajax',
     cssclass: 'content',
     formSelector: 'form',
     width: '40em',
     }).attr("rel")).bind("onLoad", function() {
     $(this).find("form .field").placeholder_z3cform();
     });
    });



    Product's homepage

    Requirements:

    · Plone CMS
    · Python

    What's New in This Release: [ read full changelog ]

    · Disabled textarea placeholder due to problems with TinyMCE's textarea.

      


    TAGS:

    jQuery watermark | z3cform placeholder | jQuery | watermark | Plone

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM