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

Bring2mind Forums

how does viewtype work in a template
Last Post 09/17/2009 1:41 PM by Peter Donker. 3 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Noah Bast
New Member
New Member
Posts:13


--
09/11/2009 10:30 PM

I tried to find an example of this, but havn't been successful.

 

We have some columns display only on the DetailView.  entry:isfile works great for handling the column on the itemview template, but I havn't been able to remove the column header in the PageTemplate.  From the documentation, [query:viewtype] appears to be the command to use, but I can't figure out how to query the claue of viewtype so I can change CSS is it's DetailsView.

 

Thanks.

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
09/12/2009 10:33 AM
Hi Noah,

Sorry, but the viewtype is confusing here. It is actually a parameter that was introduced to distinguish between looking at folders or categories. I don't think it's used in the viewtemplates.

What you should keep in mind is that 'entry' in the page template is the entry that is currently being viewed (i.e. the one referenced in the querystring). This can be a folder (collection), file or hyperlink. The 'entry' in the itemtemplate is the entry being enumerated underneath the entry of the page template. Naturally this is only used for folders.

I hope this helps.

Peter
Noah Bast
New Member
New Member
Posts:13


--
09/12/2009 7:48 PM

Do you have any other suggestions for how I can hide the column header on the non-file lists?

Here are links to the three views.  I need to hide the 'Last Modified' column on the first two views.

http://www.spectracomcorp...id/1192/Default.aspx

http://www.spectracomcorp...ault.aspx?EntryId=22

http://www.spectracomcorp...ault.aspx?EntryId=24

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
09/17/2009 1:41 PM
Hi Noah,

This would be very hard. In fact what you're after is detecting that a folder only has child folders and no child documents. In the former you'd like to suppress the column that is only meaningful for files. That would require quite a bit of new logic to be made. Like Windows Explorer, you get the columns regardless of the list underneath.

Peter
You are not authorized to post a reply.