Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Sorting when MCE extension used on field

phpMyEdit General     Sorting when MCE extension used on field
Post new topic   Reply to topic    
 
DeanS     Joined: 28 Mar 2006   Posts: 10  
Post Posted: 2006-12-04 10:53
Back to top  Reply with quote     

I have a couple of fields in the database that use the TinyMCE extension in phpMyEdit. When I try to use these fields in the $opts['sort_field'] = array('kitchen_group', 'range_name', 'range_colour'); line the fields are sorted by the text of the field which includes the tags. Is there a way to strip the tags for the sort only and still show the formatted
text on the screen.

I have had a reply from ajh as folows
Quote:
Re your question, you could add a virtual field which is calculated using the 'php' options

I have not been able to work out how to get the php option working for this.

Any help would be appreciated.
Thanks
Dean

 
zucarino     Joined: 29 Dec 2005   Posts: 44   Location: Rio de Janeiro - Brazil
Post Posted: 2006-12-08 11:11
Back to top  Reply with quote     

DeanS wrote:
Is there a way to strip the tags for the sort only and still show the formatted
text on the screen.


Hi, try this:

$opts['fdd']['col_name']['strip_tags'] = true;

If you need to show formated html:

$opts['fdd']['col_name']['escape'] = false;

Bye!

_________________
---
Victor Zucarino
vffzbr at yahoo dot com dot br
 
ajh     Joined: 17 Dec 2003   Posts: 236  
Post Posted: 2006-12-09 19:19
Back to top  Reply with quote     

Problem with this is that I think that the fields are sorted before they are stripped.

 
zucarino     Joined: 29 Dec 2005   Posts: 44   Location: Rio de Janeiro - Brazil
Post Posted: 2006-12-11 14:22
Back to top  Reply with quote     

Yes, it is possible...

_________________
---
Victor Zucarino
vffzbr at yahoo dot com dot br
 
DeanS     Joined: 28 Mar 2006   Posts: 10  
Post Posted: 2006-12-11 15:48
Back to top  Reply with quote     

I tried that with a virtual field and the actual field and it is still sorted by the tags.

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy