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

Bring2mind Forums

Template by permissions
Last Post 12/17/2013 2:29 PM by Peter Donker. 1 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
SolihullIntranet
New Member
New Member
Posts:2


--
12/04/2013 1:21 PM
I am trying to get a subtemplate that will only show to to adminstrators and document managers. I am using DMX 6.1.4 full version.

I have followed the example in the documentation [subtemplate|Log.html|log|pagesize=10,permission=admin,entrytypes=file] to try and even limit it to just the administrators of the site.

This is what I am using [subtemplate|ViewEntry.html|permission=Administrators;Document Managers,entrytypes=file]

Both the example and my code still shows the template to people that don't have the correct permissions to the page, module or documents.

Is there separate permissions that I should be using, or is my version of DNN 7.06 and DMX not compatible doing this.

Any help would be greatly appreciated.

Cheers,
Scott
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
12/17/2013 2:29 PM
Hi Scott,

Unfortunately it doesn't work that way. The two patterns are:
- Simple conditional template e.g. [subtemplate|Foo.html|entry:iscollection|false]
- or a repeating template [subtemplate|Foo.html|entrylist|pagesize=6]
Where the first one will show if entry:iscollection = false and the second one is repeating over a collection of entries of the current context. You may be able to achieve what you want with this:

[subtemplate|ViewEntry.html|query:isdocadmin|true]

Peter

You are not authorized to post a reply.