Share » Forums » Setup & design » New folder not displaying in left bar

New folder not displaying in left bar

New folder not displaying in left bar

Monday 17 November 2003 4:34:09 am - 3 replies

Modified on Monday 17 November 2003 4:36:56 am by sajid saiyed

Author Message

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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu