OXID Community Forum> change DB-field to display in editor of article_main |
Login |
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Reply |
|
|
Thread Tools | Display Modes |
|
Hello all,
how can I change the Database field that is displayed in the editor of article_main? I think I have found the correct code of line in in article_main.php: Code:
$this->_aViewData["editor"] = $this->_generateTextEditor( "100%", 300, $oArticle, "oxarticles__oxlongdesc", "details.tpl.css"); But if I just change oxarticles__oxlongdesc to oxarticles__beschreibung it does not work. Many thx in advance, Florian |
|||
|
Hello Florian,
I don't know a field called "beschreibung" in oxarticles. Actually "beschreibung" is the German translation of oxlongdesc ![]() Regards
__________________
Marco http://about.me/marco.steinhaeuser Will ignore unsolicited support requests via PM, email or IM. |
||||
|
you probably have to write a getter. know what it is?
cheers
__________________
Marco http://about.me/marco.steinhaeuser Will ignore unsolicited support requests via PM, email or IM. |
||||
|
Magic, innit? :-)
__________________
Marco http://about.me/marco.steinhaeuser Will ignore unsolicited support requests via PM, email or IM. |
||||
|
Hello all,
it is really strange... just an example: If put that line in the render function of article_main.php: Code:
$this->_aViewData["editor"] = $this->_generateTextEditor( "100%", 300, $oArticle, "oxarticles__oxlongdesc_1", "details.tpl.css"); I updated the view and cleared the tmp folder. Then it seems that I also had to update the save function... I think I have to change that line in the save function to something else :Code:
$oArticle->setArticleLongDesc( $this->_processLongDesc( $aParams['oxarticles__oxlongdesc'] ) ); Florian |
|||
| Reply |
| Bookmarks |
| Tags |
| articlemain, change, dbfield, display, editor |
| Thread Tools | |
| Display Modes | |
|
Nicht Sichtbar
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Add field to oxarticles table | spierala | Newbies | 4 | 10-23-2012 09:50 AM |
| How create a Select Field (multiple) in Admin (article_main) | spierala | Newbies | 4 | 01-25-2012 12:24 PM |
| Oxtags Field | Sean | Templates and Design | 3 | 05-24-2011 07:18 PM |
| add custom field - parse html?! | scuba303 | Developers | 1 | 12-01-2010 01:34 AM |
| article_main.tpl | marcus d | Templates und Design | 3 | 10-12-2010 06:19 PM |