Elxis CMS Forum

Extensions => Components => Topic started by: rentasite on September 27, 2009, 23:11:25

Title: IDEA! For Elxis banner component
Post by: rentasite on September 27, 2009, 23:11:25

I'm creating a site with 2 languages. Greek and English.  And my question is "Can we show a banner depending on the language of a site?" I think we cannot[/u]! What i mean...

Example: Let's say i have a banner in two different versions. Greek and English, and i assign them on a client. But i want the English banner to show when English language is switched on the site.... same for the Greek banners also. Right now this cannot be done!

Setting module language, does not work. As it still shows the banners total random... so it does show the Greek ones too.
Title: Re: IDEA! For Elxis banner component
Post by: ks-net on September 28, 2009, 01:05:16
actually you can...

in a tricky but...  working with no problems way

make copies of banner module assign each of them  per position or(and) language or(and) banner dimensions...

configure each copy to take form specific client... the trick is the clients... forget the word client.. write it in your mind as size-lang etc..

create clients(not real persons) like  banner-el-480x60  or banner-en-12x60

a quick map>>
client                      banner-module-copies           properties of module
banner-el-480x60 ->  assigned to bannercopy-el-top         el-lang header-position
banner-en-480x60 ->  assigned to bannercopy-en-top       en-lang header-position
banner-el-120x60 ->  assigned to bannercopy-el-right         el-lang right-position
banner-en-120x60 ->  assigned to bannercopy-en-left       en-lang left-position

put your banners in each client(not real person...) eg. like this in order to make easy to manage your banners

sidiropoulos-480x60-el in to client banner-el-480x60
sidiropoulos-480x60-en in to client banner-en-480x60
panagiotopoulos-480x60-el in to client banner-el-480x60
panagiotopoulos-480x60-en in to client banner-en-480x60


the trick is the client... you have to put in your mind that is not necessary to be a real person, it can be anything.. position, lang, dimension
Title: Re: IDEA! For Elxis banner component
Post by: rentasite on September 28, 2009, 01:07:18

Wow!  ;D  I will read this carefully tomorrow and i will try it!

Thnx
Title: Re: IDEA! For Elxis banner component
Post by: ks-net on September 28, 2009, 02:42:07
post converted to wiki article ;D

http://wiki.elxis.org/wiki/Multilingual_multiply_banners