Menu based on articles in a folder

Author Message

Thomas Johansen

Wednesday 19 May 2010 1:05:50 am

Hi.

I'm pretty new with eZ Publish 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

Thomas Johansen

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

Thomas Johansen

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?

Regards

Thomas

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,

Thomas Johansen

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/ezpublish/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)

-Thomas

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 02:46:01
Script start
Timing: Jan 18 2025 02:46:01
Module start 'layout'
Timing: Jan 18 2025 02:46:01
Module start 'content'
Timing: Jan 18 2025 02:46:02
Module end 'content'
Timing: Jan 18 2025 02:46:02
Script end

Main resources:

Total runtime0.8974 sec
Peak memory usage4,096.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0084 587.9141152.6250
Module start 'layout' 0.00840.0027 740.539139.4453
Module start 'content' 0.01110.8843 779.9844653.8516
Module end 'content' 0.89540.0020 1,433.835916.1563
Script end 0.8974  1,449.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00510.5635160.0003
Check MTime0.00140.1512160.0001
Mysql Total
Database connection0.00140.154710.0014
Mysqli_queries0.814690.7643700.0116
Looping result0.00080.0859680.0000
Template Total0.855095.320.4275
Template load0.00250.275920.0012
Template processing0.852594.995820.4263
Template load and register function0.00020.025710.0002
states
state_id_array0.00140.160710.0014
state_identifier_array0.00210.232220.0010
Override
Cache load0.00210.2334610.0000
Sytem overhead
Fetch class attribute can translate value0.00090.099140.0002
Fetch class attribute name0.00200.221980.0002
XML
Image XML parsing0.00130.150440.0003
class_abstraction
Instantiating content class attribute0.00000.001980.0000
General
dbfile0.00100.1170210.0000
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 28
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs