OXID Community Forum

> International Forums > Developers > Adding new (custom) database table with multilanguage
Login
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Thread: Adding new (custom) database table with multilanguage


Reply
 
Thread Tools Search this Thread Display Modes
#Top   #1  
Old 08-23-2017, 08:37 PM
bebzon_hc bebzon_hc is offline
Junior Member
Join Date: Dec 2016
Location: Poland
Posts: 13
bebzon_hc is on a distinguished road
Default Adding new (custom) database table with multilanguage

Hi!
I have small problem...
I've just add new table with CMS Pages special categories.
At this time i have create assigning categories to concrete CMS Page.

cmspagecategories tabl looks like this:
OXID, TITLE, TITLE_1, TITLE_2, TITLE_3

When i want get table name with categories by:
$this->_getViewName('cmspagescategories');
method return me string('cmspagescategories')...
question is how to use with this database views? i need oxv_cmspagescategories_de but oxid didn't create table views automatic.

i refreshed DB views...
i have turn on 3 languages in oxid.


P.S i found this: https://bugs.oxid-esales.com/print_b...hp?bug_id=2840
Resolved mean that someone answer on this bug? or it should be fixed? if yes where is solution?

Last edited by bebzon_hc; 08-23-2017 at 08:48 PM.
Reply With Quote
#Top   #2  
Old 08-23-2017, 08:57 PM
bebzon_hc bebzon_hc is offline
Junior Member
Join Date: Dec 2016
Location: Poland
Posts: 13
bebzon_hc is on a distinguished road
Default Re: Adding new (custom) database table with multilanguage

Sorry :]

I found solution:

extends of oxLang

class customoxlang extends customoxlang_parent {

public function getMultiLangTables()
{
return array_merge(array('cmspagescategories'), parent::getMultiLangTables());
}

}

and add in config.inc.php
/**
* Additional multi language tables
*/
$this->aMultiLangTables = array('cmspagescategories');

Last edited by bebzon_hc; 09-01-2017 at 07:03 PM.
Reply With Quote
Reply

Bookmarks

Tags
adding, custom, database, multilanguage, table

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Nicht Sichtbar
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
where is module data saved in database table? php_dev101 Developers 2 12-06-2016 02:02 PM
Adding new rows in database hulpert Developers 0 07-15-2015 10:41 AM
Adding Extra filed in oxpayments table amarenderReddy Developers 2 08-30-2012 06:03 AM
_aFiledNames or how to extend a database-table SubNet-One Developers 8 09-30-2009 09:39 AM
Proposal: Multilanguage administration in database instead of lang.php Thorsten Albrecht Developers 5 07-31-2009 01:31 PM

All times are GMT +1. The time now is 02:32 PM.