| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
5.3 version of XLite\View\FormField\Textarea\Simple | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
5.3 version of XLite\View\FormField\Textarea\Simple
Hello,
I would like one of my fields I'm adding to be a simple textarea. In 5.2 I used: Code:
I'm having trouble locating the 5.3 equivalent although the advanced text area works fine: Code:
I don't want any of the markup from the WYSIWYG editor. Any guidance is appreciated! Thank you.
__________________
X-Cart Gold 4.4.5 X-Cart Ultimate 5.2.22 X-Cart Business 5.3.2.13 X-Payments 3 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: 5.3 version of XLite\View\FormField\Textarea\Simple
I believe you can use older classes via "XLite\View\FormModel\Type\OldType" type.
Here is an example from the source code: PHP Code:
So, you may try something like this with 'oldType' => 'XLite\View\FormField\Textarea\Simple'. I think this should work.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
#3
|
|||||||
|
|||||||
Re: 5.3 version of XLite\View\FormField\Textarea\Simple
Quote:
I had tried that, and it does produce a simple textarea field, but unfortunately it would not populate or save the data. Do I need to use any particular fieldOptions because I did not include that parameter.
__________________
X-Cart Gold 4.4.5 X-Cart Ultimate 5.2.22 X-Cart Business 5.3.2.13 X-Payments 3 |
|||||||
#4
|
|||||||||
|
|||||||||
Re: 5.3 version of XLite\View\FormField\Textarea\Simple
I can't find examples in the source code, but it may be that you should specify your "fieldName" in the "fieldOptions" array.
Check the HTML source code of the page when you use TextareaAdvancedType and compare the "name" attribute of the text area with the one that is used when you change the type to OldType.
__________________
Alex Solovev, Qualiteam --- User manual Video tutorials X-Cart FAQ You are welcome to press "Thanks" button if you find this post useful Click here to learn how to apply patches X-Cart Extensions |
|||||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|