LemonStand Forum: Custom field / HTML editor settings? - LemonStand Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Custom field / HTML editor settings?

#1 User is offline   Dominic 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 63
  • Joined: 24-January 12

Posted 30 January 2012 - 11:25 AM

I've added a new text block on the product page by extending the product class.

In settings > HTML editor settings I can adjust the various CK editor fields that appear for long description, such as tables, bold, fonts etc, however, I can't seem to do the same for the text field I added previously?
0

#2 User is offline   EHLOVader 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 247
  • Joined: 05-May 11

Posted 30 January 2012 - 05:07 PM

View PostDominic, on 30 January 2012 - 11:25 AM, said:

I've added a new text block on the product page by extending the product class.

In settings > HTML editor settings I can adjust the various CK editor fields that appear for long description, such as tables, bold, fonts etc, however, I can't seem to do the same for the text field I added previously?


Did you add your text block as frm_html?

There are a few field definition types which aren't 100% documented. I believe that is one. Here is a full excerpt of the field definition type defines
define('frm_text', 'text');
	define('frm_password', 'password');
	define('frm_dropdown', 'dropdown');
	define('frm_autocomplete', 'autocomplete');
	define('frm_radio', 'radio');
	define('frm_checkbox', 'checkbox');
	define('frm_checkboxlist', 'checkboxlist');

	define('frm_textarea', 'textarea');
	define('frm_html', 'html');
	define('frm_code_editor', 'code_editor');
	define('frm_grid', 'grid');

	define('frm_datetime', 'datetime');
	define('frm_date', 'date');
	define('frm_time', 'time');
	
	define('frm_onoffswitcher', 'on_off_switcher');
	define('frm_record_finder', 'recordfinder');

	define('frm_file_attachments', 'file_attachments');


some more info can be found here. http://lemonstandapp...ion_area_forms/
1

#3 User is offline   Dominic 

  • Member
  • PipPipPip
  • Group: Members
  • Posts: 63
  • Joined: 24-January 12

Posted 05 February 2012 - 11:53 AM

Yup:


    	  $product->add_form_field('x_product_features', 'left')->tab('Product')->renderAs(frm_html)->size('huge');


The result is:

http://screencast.com/t/9F4sRX3Cgj

Firstly, the new field is not as wide as Lond Description, although I've used size(huge)?
Secondly, the new field only has one row of tools, whereas the Long Description has a row of Table tools which I added via the CMS settings for HTML editable content blocks..
0

Share this topic:


Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users