Forums / General / Menu based on articles in a folder
Thomas Johansen
Wednesday 19 May 2010 1:05:50 am
Hi.
I'm pretty new with Exponential and has started my first project.
The question I have, might already by covered by other posts, but I havent been able to find it yet.....
I have created some content (articles) in a folder under "Media/Things to do". Each article is a general article.
What I would like to do, is to present the content of the folder "Things to do" as a menu on the left side of the 'Frontpage' 'Things to do' and when I click the sub-items, the page stays the same, with the menu to the left and the content in the centre pane.
Can this be acieved in an easy manner?
Appreciate all assistance :)
Regards
Thomas
Nicolas Pastorino
Wednesday 19 May 2010 1:38:59 am
Hi Thomas and welcome to the eZ Community !
What you want to achieve is presented in the default "Website Interface" which you can choose form the setup wizard. In first-level entris pages, the submenu is presented on the left-hand side. Spot the template used there, and get inspiration. Should help you take the first steps.
Let us know how it goes,Cheers !
-- Nicolas Pastorino Director Community - eZ Member of the Community Project Board eZ Publish Community on twitter: http://twitter.com/ezcommunity t : http://twitter.com/jeanvoye G+ : http://plus.tl/jeanvoye
Wednesday 19 May 2010 1:52:49 am
Thanks for the reply Nicolas!
Ok, but this will affect all 'Frontpages'?
I currently have defined 5 'Frontpages' and I only want this functionality on one specific page.
-Thomas
Thursday 20 May 2010 12:46:14 am
Ok, might be that I'm quite n00bish here now :)
I'm using the default "Website Interface v. 1.6" and have activated the menu 'setup' to include top and left menu, but how do I get that left menu to show? :) ANd how do I define the content of that left menu?
Paul Leclercq
Thursday 20 May 2010 3:40:47 am
Hello Thomas,
If you are using a content type "frontpage", do you mean you are using the ezflow installation?
I am not quite sure to understand what you are trying to do?
Do you mean that you would like a specific mean for everypage?I this case, you would ideally include the menu in the full view of your template.
If you wish to have a menu which changes depending on a section then you have a number of different ways to do this.One simple method, is by using jquery or javascript:
1) Set a javascript variable in the full view of your templat:
something like:<script type="text/javascript">
var my_section = "{$my_section}";
</script>
2) in your menu, check if the variable has been set {literal} <script type="text/javascript"> $().ready(function() { if(typeof my_section != "undefined") { $(".menu_items").hide(); $("." + my_section).show();
}} </script>{/literal}
Good luck with this,
Thursday 20 May 2010 3:55:18 am
Hi Paul.
I'm using the default "Website Interface v. 1.6" - the blue layout.
What I would like to have, is a static list/view of a set of articles (if it is a menu or just behaving as a menu, I dont care) - This has been done by inserting a embeded object, but when I click on one of the items in the list, the layout changes. I would like the layout to be static - the articles displayed in the list should be displayed in the centre pane of the current layout......and this static list/menu is different from page to page (mainpages displayed in the top menubar (vertical)
Hope that made sense :)
I dont know if this makes it easier or not to show what I want, but here: http://ez.no/Exponential/manage_ez_publish on the last image, a list/meny styled like that that is static (when I click on i.e. 'Lyon pictures' - Lyon pictures are displayed in the centre pane)