Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

Template view and folders
Last Post 12/17/2008 9:34 PM by Phil Speth. 8 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Phil Speth
New Member
New Member
Posts:14


--
12/15/2008 9:59 PM

In template view I show a number of folders which also have subfolders.

What I would like to have happen is that when someone clicks on a folder I get a fresh view with a list of the subfolders and files.

Right now what happens is:

  1- It goes to the treeview
  2- It opens the folder, and shows its attributes along with the contents.

Option 2 is closer to my goal, but the attributes basically mess up the clean view.

Is there any way to make it act as I mentioned above.

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
12/16/2008 11:44 AM
Hi Phil,

You can edit the templates to get rid of the attributes if that's what you mean. Check out the templateview help document and check out the page template you're using. It is possible to make it behave differently for a folder than a file. Let me know if you get stuck.

Peter
Phil Speth
New Member
New Member
Posts:14


--
12/16/2008 3:29 PM
So far I am using the standard Template. I have mad a few changes.
Could you point me a little closer to where I would change the folder behavior?

Thanks
One more thing: The edit icons on my template are stacking vertically rather than horizontally.
I have checked the template and it is a single row with a varying number of Icons. I have tried widening the table and setting the cell width but the icons still stack vertically.

Does this happen to you? Here is a snippet from the rendered html:





___________________
Would display: block cause this?


New Item ...



Edit Attributes ...

Phil Speth
New Member
New Member
Posts:14


--
12/16/2008 3:32 PM

<table style="width: 250px; height: 20px;">

<tbody>
<tr>
<td style="display: none; text-align: center; width: 25px;">
<img border="0" alt="New Item ..." src="/DesktopModules/Bring2mind/DMX/images/Menu/document_new.png"/>
a>
td>
<td style="display: block; text-align: center; width: 25px;">
<img border="0" alt="Edit Attributes ..." src="/DesktopModules/Bring2mind/DMX/images/Menu/document_edit.png"/>
a>
td>

Phil Speth
New Member
New Member
Posts:14


--
12/16/2008 3:34 PM

Sorry, I can't seem to get the code inserted correctly.

Phil Speth
New Member
New Member
Posts:14


--
12/16/2008 5:08 PM

The icons were displaying horizontal in IE, but vertical in FF 3.

I changed block  style to inline on the icons table at the top and it now displays horizontally.

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
12/16/2008 10:39 PM
I believe this was fixed in the default templates for 05.00.01.
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
12/16/2008 10:42 PM
For the meta data stuff in the collection look for this:

div style="display:[entry:iscollection|block;none]" class="MetaDataContainer"

You'll notice this div displays when it is a folder (=collection) and not when it isn't

Peter
Phil Speth
New Member
New Member
Posts:14


--
12/17/2008 9:34 PM

Thanks Peter.  I will give it a look.

You are not authorized to post a reply.