Elxis CMS Forum
Support => Language => Topic started by: mazzeltof on October 20, 2009, 22:05:49
-
well since me previos topic was taken over and I could not make head or tails off it, I created a dummy site online to start fooling around with this.
first reread http://wiki.elxis.org/wiki/Frontpage_setup#Multilingual_Site_Title (http://wiki.elxis.org/wiki/Frontpage_setup#Multilingual_Site_Title) and did this according to option b.
what i found out was that fore each lang you have to create a new link in the main menu ???
next just foulling arround i found out that you can also put de link to your com_frontpage lower then your new index pages and it still works :o
now iff You are willing to try this http://elxis.comhair.nl/ (http://elxis.comhair.nl/) you can see what i mean
ps I dont know how long i will leave this site in action
ps I don't want to comment the good work of the elxis team ;D
just thought i let you know
and things work fine
-
actually i don't really get your point?
first link to any page of each lang in mainmenu is set as frontpage content... unless you have a link to com_frontpage that takes over ..thats why b' option described here
http://wiki.elxis.org/wiki/Frontpage_setup
requires to eliminate com_frontage link even from trash, not only from mainmenu but from all menus + trash... nothing more-nothing less!
The link(and this post) you added pointing to multilingual title and meta-data documentation... but you talk about links that work...
still i don't get it..
you found a wrong in docs?
you find something missing or not well explained?
what?
did you read carefully it? .. what i miss here? i can't understand!
****
something else.. who told you this? .. this is only one of the ways to have a multilingual frontpage
what i found out was that fore each lang you have to create a new link in the main menu
cutting from wiki... When using option B'(link to a page) then the first linked page in mainmenu of each language will become your home page content, so take care on setting the proper order of links and you will get a multilingual front-page..... cut from http://wiki.elxis.org/wiki/Frontpage_setup#Multilingual_frontpage
-
i Just wanted to let you know this
requires to eliminate com_frontage link even from trash, not only from mainmenu but from all menus + trash... nothing more-nothing less!
i still have the com_frontpage in the main menu
and it does not take over from the option b (wich works perfect)
next i wanted to clear up what I and maby others mist and that is
what i found out was that fore each lang you have to create a new link in the main menu
take a look at the englische page now iff You are willing to try this http://elxis.comhair.nl/ you can see what i mean
Just trying to point out some things ???
-
when seo enabled?
-
with the seo enabled it will still show the option b page.
the home link ( link to com_frontpage ) in the main menu however will always show the option b page
The meta tags <meta name="description" content="our new frontpage" />
<meta name="keywords" content="our new frontpage" />
allways come from the option b linked page
iff you want to see go here http://elxis.comhair.nl/ (http://elxis.comhair.nl/)
-
I know it..
the way that these issues described there(wiki) are the most easy(hope) and safe to use .. lets call them .. the standard ones...
we promote(demand) to delete com_frontapge-link if not used(when option b) in oder to avoid conflicts or malfunctions(more than you see) at that time or later..
at the other hand.. no purpose to hold a non working link to com-frontpage ...when option b
Also Remember that page belongs to "Start with elxis" section.. thats why must be absolute-straight-directional against new users... we want to guide at this page rather than expand every single step in deep,
having in mind this we want expand to how link-to-com_frontpage reacts but we will only promote to just delete when option b is used!
***
As for the lang:
what i found out was that fore each lang you have to create a new link in the main menu
as i told is clear.. i think... when we say the 1st of each lang we mean that must exist(or to create).. don't you agree?:
cutting from wiki... When using option B'(link to a page) then the first linked page in mainmenu of each language will become your home page content, so take care on setting the proper order of links and you will get a multilingual front-page
beside this, at the very bottom is that box that reminds again that need of a page per lang...
and remember this is only for b option, also is only one of the ways to have multilingual home page
-
I will mention also that you can do great things with template parameters in Elxis 2009.1 (or newer).
I will soon release a template fully customizable via template parameters to see what this baby can do, without touching the code ;)
Here is a quick example.
Template parameters (for 2 alternative languages)
<param name="par_lang1" type="folderlist" dir="ltr" directory="/language" default="" label="Alternative language 1" description="" />
<param name="par_keys1" type="text" default="" label="META keywords 1" size="40" description="" />
<param name="par_desc1" type="text" default="" label="META description 1" size="40" description="" />
<param name="par_lang2" type="folderlist" dir="ltr" directory="/language" default="" label="Alternative language 2" description="" />
<param name="par_keys2" type="text" default="" label="META keywords 2" size="40" description="" />
<param name="par_desc2" type="text" default="" label="META description 2" size="40" description="" />
PHP code on template's index.php (before HTML)
<?php
if ($tplparams->def('par_lang1', '') == $lang) {
if (trim($tplparams->def('par_keys1', '')) != '') {
$mainframe->_config->MetaKeys = $tplparams->def('par_keys1', '');
}
if (trim($tplparams->def('par_desc1', '')) != '') {
$mainframe->_config->MetaDesc = $tplparams->def('par_desc1', '');
}
} else if ($this->tparams['lang2'] == $lang) {
if (trim($tplparams->def('par_keys2', '')) != '') {
$mainframe->_config->MetaKeys = $tplparams->def('par_keys2', '');
}
if (trim($tplparams->def('par_desc2', '')) != '') {
$mainframe->_config->MetaDesc = $tplparams->def('par_desc2', '');
}
}
?>
We are focusing on extending more XML parameters in Elxis 2009.2 by adding the option to query the database! (f.e. select column list from given db table)
-
Hi,
is there a way to pass a template parameter via a menu item
Case I have is that I am using the wrapper to call in another program (a gallery). When this program runs I would like to pass a rightcol parameter to the template (philoxenia) to tell it to switch to 2 column mode from default 3 column mode to give the gallery more page space
Is this possible either through the wrapper or if not then directly to a module ?
cheers
Jim
-
Just as an extra - in the standard comntent that comes with an install I see:
"You want to assign diferrent templates to various pages? This is a piece of cake! "
Guess this would be what I would like to do ? I could easily create a new copy of my template with a two col config and then use that for this page - does that make sense?
Jim
-
Just as an extra - in the standard comntent that comes with an install I see:
"You want to assign diferrent templates to various pages? This is a piece of cake! "
Guess this would be what I would like to do ? I could easily create a new copy of my template with a two col config and then use that for this page - does that make sense?
Jim
found answer to this one - using Assign in template manager
still interested in trying to pass parameters to a template through a menu though :-}
Jim
-
well I did it a different way - a workaround - but would be nice to do it prettier
I went in and changed the index.php for the template. If the $Itemid was the one I wanted (my gallery) then I over rode the CSS for the relevant divs and this allowed the gallery to spread over main and rightcol
cheers
Jim
-
Hi,
is there a way to pass a template parameter via a menu item
Case I have is that I am using the wrapper to call in another program (a gallery). When this program runs I would like to pass a rightcol parameter to the template (philoxenia) to tell it to switch to 2 column mode from default 3 column mode to give the gallery more page space
Is this possible either through the wrapper or if not then directly to a module ?
cheers
Jim
<?php
global $mainframe;
if ($option == 'com_wrapper') {
write here the commands that passed the parameters template written by joannis.
if you manage many languages for me is better define new variables in language files and write these lines
$mainframe->setPageTitle( your_title_var );
$mainframe->setMetaTag('keywords', your_metakey_var );
write here the command lines to switch at 2 columns your template. you must work on css and for to do this get a look in some templates in EDC
}
?>
with few lines of code in your template
is not necessarily assign template ;)
good luck 8)