[SOLVED] Multilanguage add page |
6/1/2010 12:36:35 AM |
PHPRunner General questions | |
D
ddefrain author
Hi There i just get phprunner. |
|
J
|
Jane 6/1/2010 |
Hi, |
D
|
ddefrain author 6/1/2010 |
Wow!...Awesome support i'll check it out. Hi, use custom event (Insert PHP code snippet option on the Visual Editor tab) to create dropdown with languages. Check sample code for language dropdown on the list page. This dropdown is created on the list page automatically if you select more than one language on the Miscellaneoustab. |
D
|
ddefrain author 6/2/2010 |
Hi again. |
J
|
Jane 6/4/2010 |
Hi, echo " <select name=lang onchange=\"javascript: window.location='products_add.php?language='+this.options[this.selectedIndex].value\">";
if(@$_REQUEST["language"]) |
D
|
ddefrain author 6/4/2010 |
Mamma Mia! |
S
|
simonedan 6/5/2010 |
Hi, here is a sample: echo " <select name=lang onchange=\"javascript: window.location='products_add.php?language='+this.options[this.selectedIndex].value\">";
if(@$_REQUEST["language"])
|
D
|
ddefrain author 6/8/2010 |
This sample works nice! I try to apply this Solution it dos not works. Here is the List Page Language Block: {BEGIN languages_block}<SPAN><B>{BEGIN lang_label}{mlang_message LANGUAGE}:{END lang_label}</B> <SELECT {$langselector_attrs}> <OPTION value=Czech {$Czech_langattrs}></OPTION> <option value="English" {$English_langattrs}>English</OPTION> <option value="German" {$German_langattrs}>Deutsch</OPTION> <option value="Greek" {$Greek_langattrs}>Ελληνικά</OPTION> <option value="Italian" {$Italian_langattrs}>Italiano</OPTION> <option value="Polish" {$Polish_langattrs}>Polski</OPTION> <option value="Slovak" {$Slovak_langattrs}>Slovenčina</OPTION> <option value="Spanish" {$Spanish_langattrs}>Español</OPTION></SELECT> </SPAN>{END languages_block}</DIV>{END toplinks_block} I would like to have it at the Add Page.Can You help???Thanks. |
S
|
simonedan 6/9/2010 |
Thanks, I'retry This sample works nice! Maybe you're missing something. Did you put the Add page: Before process event: ? Maybe the window.location name ? Did you put the snippet? |
S
|
simonedan 6/12/2010 |
Thanks,I'll take a look. This sample works nice! Maybe you're missing something. Did you put the Add page: Before process event: ? Maybe the window.location name ? Did you put the snippet? |
S
|
simonedan 6/12/2010 |
It works, thanks This sample works nice! Maybe you're missing something. Did you put the Add page: Before process event: ? Maybe the window.location name ? Did you put the snippet? |