This site uses cookies and similar technologies.

If you don't change browser settings, you agree to it.

I understand

Hello Seblod community,

to create placeholders on multilanguage sites, you have to to little steps:

1. Give the field a css class with "has_placeholder"

2. Create a jquery: 

jQuery(document).ready(function($) {

   $('.has_placeholder').each(function() {
       var placeholder = $(this).parent().siblings('.cck_label').children().text();
       $(this).attr("placeholder", placeholder);
       $(this).parent().siblings('.cck_label').children().hide();
   });

});

That˚s it! In the jquery we search all elements with ".has_placeholder", grap the label text from the sibling and push it als a placeholder in our input field. So we don˚t need the label anymore and hide or kill that with .delete().

Regards,

RaSchDMD