Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Did you know that
Elxis 5.x
uses HTML5, CSS3 and pure javascript without external libraries such as jQuery?
Home
Help
Login
Register
Elxis CMS Forum
»
Extensions
»
Templates
(Moderators:
Coursar
,
ks-net
) »
can't assign template to menu items
« previous
next »
Print
Pages: [
1
]
Author
Topic: can't assign template to menu items (Read 6976 times)
seadhna
Hero Member
Posts: 507
can't assign template to menu items
«
on:
January 14, 2012, 16:45:10 »
Hi there, I'm having a problem with assigning templates to menu items. I have a default template which is still being used on pages to which I have assigned a different template. I can't understand why...
Have not altered the call for template in the html: <link href="<?php echo $mainframe->getCfg('live_site'); ?>/templates/<?php echo $mainframe->getTemplate(); ?>/css/template_css.css" rel="stylesheet" type="text/css" media="all" />
I think part of the problem might be that I am using 'placeholder/separators' in the main menu?
However, even if I create a menu item in 'othermenu' for a particular category or content item, and then assign a template to those menu items, the default template is still being used...
Any other info. I can provide?
Thanks for any assistance!
Logged
xmanhattan
Hero Member
Posts: 1235
If I'm still breathing, I'm doing something!
Re: can't assign template to menu items
«
Reply #1 on:
January 15, 2012, 12:16:25 »
Hello seadhna,
If you have a default template and have added a new template either your own or another and uploaded them into the templates folder, then you can assign a template to particular menu items.
e.g. assigning a 2 column template to have an extended amount of content data area.
After you click on
site templates
from the
template manager
, I assume that you are selecting a secondary template and then clicking on
assign template
. Use the ctrl key while clicking on the particular menu items where you want that template to be used. You should not be doing the same for the default template.
The placeholders should have no affect on this. If you designed the additional template, then you should also check that the menu has been assigned to the proper position from the
site modules
.
Another line to check in the template index is
Code:
[Select]
<?php mosLoadModules
(&
#39;top', -2);
?>
to see if the position has been assigned a placement.
Hope this helps.
Logged
Bournias.net
seadhna
Hero Member
Posts: 507
Re: can't assign template to menu items
«
Reply #2 on:
January 15, 2012, 19:17:28 »
Hi, thanks for your response.
Yes, I'm using my own templates.
I forgot to mention - I am using DSMenu - rather than the 'mainmenu' module.
Something strange is happening and it is somehow related to using 'placeholders' in the menu, because when I go to 'Assign template' it does not show any menu items that I have added with a placeholder as the parent item. It only shows 'Home', 'Calendar' and 'Contact' because these are not placeholders as the parent menu item.
I have to add everything I want to assign a template, to 'othermenu' (which is not published) and then I can see it when I go to 'Assign Template'.
Am I doing something wrong or is this a bug with DSMenu?
Logged
babis1
Hero Member
Posts: 1538
Re: can't assign template to menu items
«
Reply #3 on:
January 15, 2012, 20:24:56 »
you cant find the main menu links if you use dsmenu and you have unpublish the main menu, but there is a solution make a new menu (menu manager) call it whatever and make all the menu links from the main menu copy to the whatever menu, then publish the whatever menu at the hidden position, or try (i havnt try that) to publish the main menu at hidden position
Logged
xmanhattan
Hero Member
Posts: 1235
If I'm still breathing, I'm doing something!
Re: can't assign template to menu items
«
Reply #4 on:
January 16, 2012, 09:45:28 »
Its just what Babis1 says!
Logged
Bournias.net
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Extensions
»
Templates
(Moderators:
Coursar
,
ks-net
) »
can't assign template to menu items