~daniel 2006-08-21 06:59
hi anyone .. i want to configure product description form become to limited character for ex: maximal 1000 character. how to configure this ... ? thx
2006-08-21 09:42
where you want to set this limit? because you should add some js function if in administration or substr description in php if on client side...
~daniel 2006-08-21 11:17
hi wewior i want to set this limit character in the full descriptions form. any solutions ? tx
2006-08-21 13:48
* in ''templates/page.tpl'' file in block head after: var cfTxtToShort = ''$lang[cf_txt_to_short]''; add: var cfTxtToLong = ''$lang[cf_txt_to_long]''; * in ''lang/en.php'' file (for example) add variable ''$lang['cf_txt_to_short']'' with info about too long text * in ''js/checkForm.js'' file add function: function checkTxtMax( oObj, iMax, sInfo ) { if( !iMax ) var iMax = 1000; var check = oObj.value.replace( reS, '''' ); var bCheck = true; if( check.length > iMax ){ bCheck = false; if( !sInfo ) var sInfo = cfTxtToLong; } return fieldOperations( oObj, bCheck, sInfo ); } // end function checkTxtMax and then in that file after: else if( ( sT == 'txt' ) && ( ( aA[i][4] === true && oO.value ) || !aA[i][4] ) ) { bAllGood = checkTxt( oO, aA[i][2], aA[i][3] ); } add: else if( ( sT == 'txtMax' ) && ( ( aA[i][4] === true && oO.value ) || !aA[i][4] ) ) { bAllGood = checkTxtMax( oO, aA[i][2], aA[i][3] ); } * in file ''templates/admin/products_form.php'' in block FORM after: ,Array( 'sDescriptionShort' ) add: ,Array( 'sDescriptionFull', 'txtMax', 30 ) tested, works fine
~michael 2006-08-22 09:11
hi wewior ... I have some problem, but I want to Unlimited character in Form DescriptionFull. how to configure .. ? because when I copy & paste my content in the Full Descriptions Form, My content is automatic cut and not show all content. Where I must configure ? Thanks
~michael 2006-08-22 20:18
anyone can help me .. !!!
2006-08-23 11:42
try that: go to http://opensolution.org/Quick.Cms/docs/?id=questions and select ''The tool does not write down very long contents. How to alter this?''
ashok 2006-08-24 08:48
I want ro add my product and all feture to uptodate how can i do this
ashok