New folder not displaying in left bar

Author Message

sajid saiyed

Monday 17 November 2003 4:34:09 am

Hi,

I have just installed ezpublish version-3 on LINUX REDHAT and was trying the ADMIN interface.

I created a corporate website, then i went inside the Products > Softwares section and created a FOLDER by selecting it from the drop down and pressing CREATE HERE button.

Then i went inside this folder and created a FILE by selecting FILE from the drop down menu and clicking the CREATE HERE button again.

In the next screen, i browsed the local machine and selected one file to upload. filled up the rest of the form and clicked SEND FOR PUBLISHING.

Then i switched to the website view. Here when i clicked the links PRODUCTS > SOFTWARES.... i did not see any folder which i just created.

SO i tried changing the URL from
http://mysite/corporate/content/view/full/50

to

http://mysite/corporate/content/view/full/55

I chaned 50 to 55 and i could see the page belonging to the folder i created with the file listed there.

Can anyone tell me how to get the folders listed in the left menu once i create them in ADMIN view?

Thanks in advance.

Tore Skobba

Monday 17 November 2003 5:02:18 am

Hi

Sounds like you have an template problem, as the menu to the left is made with a template. Try to insert this into your template for the left menu:

{section loop=fetch(content,list,hash(parent_node_id,$node.node_id, class_filter_type, "include", class_filter_array, array(1)))} <a class="path" href={concat("/content/view/full/",$:item.node_id,"/")|ezurl}>{$:item.name}</a><br />
{/section}

The above will fetch all content of type folder from your current posistion on the page. Then display the name with an link to it.

Cheers
Tore

sajid saiyed

Monday 17 November 2003 5:14:09 am

I am really new,

can you tell me which is the file that i have to edit and where do i have to place this code?

thanks

Tore Skobba

Monday 17 November 2003 6:48:10 am

Hi

In the file /design/your design/templates/pagelayout.tpl insert this

{section loop=fetch(content,list,hash(parent_node_id,$node.node_id))} <a class="path" href={concat("/content/view/full/",$:item.node_id,"/"|ezurl}>{$:item.name}</a><br />
{/section}

(fetches ALL)
Note putting this code into pagelayout.tpl could be very bad design depending upon your design.. However inserting it into pagelayout.tpl should at least give you some lins.

cheers
Tore

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 19:35:12
Script start
Timing: Jan 18 2025 19:35:12
Module start 'layout'
Timing: Jan 18 2025 19:35:12
Module start 'content'
Timing: Jan 18 2025 19:35:13
Module end 'content'
Timing: Jan 18 2025 19:35:13
Script end

Main resources:

Total runtime0.7090 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 589.1641152.6406
Module start 'layout' 0.00640.0023 741.804739.4766
Module start 'content' 0.00880.6986 781.2813484.7891
Module end 'content' 0.70730.0016 1,266.070312.1406
Script end 0.7090  1,278.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4937160.0002
Check MTime0.00140.1938160.0001
Mysql Total
Database connection0.00080.111310.0008
Mysqli_queries0.654792.3463600.0109
Looping result0.00050.0696580.0000
Template Total0.678795.720.3394
Template load0.00200.287620.0010
Template processing0.676795.436720.3383
Template load and register function0.00020.022310.0002
states
state_id_array0.00110.158110.0011
state_identifier_array0.00180.256420.0009
Override
Cache load0.00170.2431370.0000
Sytem overhead
Fetch class attribute can translate value0.00060.079820.0003
Fetch class attribute name0.00090.124740.0002
XML
Image XML parsing0.00030.038820.0001
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00070.0950100.0001
String conversion0.00000.000840.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 22
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs