Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Convert
Wordpress to Elxis
with
Elxis importer
!
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
Menu object asign to new template
« previous
next »
Print
Pages: [
1
]
Author
Topic: Menu object asign to new template (Read 7219 times)
exanimo
Jr. Member
Posts: 67
Menu object asign to new template
«
on:
February 18, 2014, 10:53:03 »
Καλημερα
Πως μπορω να συνδεσω ενα αντικειμενο μενου σε διαφορετικο θεμα?
Logged
webgift
Elxis Team
Hero Member
Posts: 4193
Re: Menu object asign to new template
«
Reply #1 on:
February 18, 2014, 11:03:30 »
Hello,
Please write in English at this board of Elxis forum!
Thank you!
Logged
Elxis Team •
Custom web design [EN]
-
[EL]
•
.GR Registrar
exanimo
Jr. Member
Posts: 67
Re: Menu object asign to new template
«
Reply #2 on:
February 18, 2014, 11:21:20 »
Sorry
How can i assign a menu object to a new template?
Thanks
Logged
nikos
Elxis Community
Hero Member
Posts: 1094
Re: Menu object asign to new template
«
Reply #3 on:
February 18, 2014, 16:48:09 »
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.
Logged
Elxis Community |
Open Source Web Lab
datahell
Elxis Team
Hero Member
Posts: 10356
Re: Menu object asign to new template
«
Reply #4 on:
February 18, 2014, 18:44:01 »
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.
«
Last Edit: February 18, 2014, 18:47:18 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
exanimo
Jr. Member
Posts: 67
Re: Menu object asign to new template
«
Reply #5 on:
February 19, 2014, 09:40:06 »
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
Logged
webgift
Elxis Team
Hero Member
Posts: 4193
Re: Menu object asign to new template
«
Reply #6 on:
February 19, 2014, 11:12:03 »
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.
Logged
Elxis Team •
Custom web design [EN]
-
[EL]
•
.GR Registrar
datahell
Elxis Team
Hero Member
Posts: 10356
Re: Menu object asign to new template
«
Reply #7 on:
February 19, 2014, 13:53:03 »
Have you seen the
Weblink plugin
?
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
exanimo
Jr. Member
Posts: 67
Re: Menu object asign to new template
«
Reply #8 on:
February 19, 2014, 14:42:09 »
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
Logged
exanimo
Jr. Member
Posts: 67
Re: Menu object asign to new template
«
Reply #9 on:
February 26, 2014, 10:43:25 »
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
Logged
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
Elxis 4.x/5.x DEV
»
Menu object asign to new template