Elxis CMS Forum
Support => Elxis 4.x/5.x DEV => Topic started by: exanimo on February 18, 2014, 10:53:03
-
Καλημερα
Πως μπορω να συνδεσω ενα αντικειμενο μενου σε διαφορετικο θεμα?
-
Hello,
Please write in English at this board of Elxis forum!
Thank you!
-
Sorry
How can i assign a menu object to a new template?
Thanks
-
If you are talking about Elxis 4.x you can not do this
If you are talking about Elxis 2009.x then from admin panel you go to menu and you select Site -> Templates manager -> Site templates and you click on a template'sname and then you click on Assign (top right) where you choose the menu item you want.
-
What nikos wrote is not fully true. You can not assign templates to menus (because menus are just links) but you can achieve the same result differently.
You can have different templates on different pages in Elxis 4.x, by detecting the pages you want to switch with hundreds of combinations. Elxis 4.x is much more flexible than 2009.x. For example if your menu points to a category and you want to have a different template on this category pages all you have to do is to check the value of ELXIS_CATID constant.
Scenario: you use template Delta, and you want on category with id =5 to switch to Aiolos.
Open delta's index.php and at the very top write:
if (defined('ELXIS_CATID') && (ELXIS_CATID == 5)) {
include(ELXIS_PATH.'/templates/aiolos/index.php');
return;
}
That's all.
You can detect article pages (ELXIS_ARTID), components (eFactory::getURI()->getComponent()), languages, browsers, and many more things.
Personally speaking I believe it is not the best option to change template but differ the current one on certain pages instead. For example change the logo, the background image, or the loaded modules or number of columns. This approach is much more interesting and easy than changing the template.
-
Thank you both for your answers
In fact i am setting up my site from the begining based on Elxis 4.
I have modified Aiolos template to my personal taste.
The only reason to use a new template is to include weblinks, with component wrapper maybe, from the previous version.
http://diadiktio.gr/newsite
Your opinion worths
Thank you again
-
Thank you, Exanimo!
As you can easily realize, everything can be done on Elxis depending in which point of view every user are looking to. Practically everything can be done. However there are always some suggestions.
-
Have you seen the Weblink plugin (https://www.elxis.net/edc/miscellaneous/40.html)?
-
I have seen it, but i think it is quite diferent from component weblinks of Aphrodite.
I think i cannot have thumbs and as i remember when i tried to make a link like"Submit Weblink" instead of "Submit Article" i could not find the way to do it.
I will try it once more and i will come back with new questions.
I also think as an option to make a clear new instalation of Aphrodite and keep only the weblinks component.
Thanks
-
Hi again
I finaly desided to use Aphrodite weblinks component.
Is it posible to have grouped listing, with Privious - Next buttons?
For example in business category there are 344 entries and i get a very long page as in most categories.
Thank You