A content items navid id is stored in request.navid. If the content
isn't in the site tree it defaults to home.
Blair
On 10/1/08, Chris Kent <[EMAIL PROTECTED]> wrote:
>
> Chris,
>
> This will do it.
>
> <cfset objNavigation =
> CreateObject("component","#Application.packagepath#.types.dmNavigation")>
> <cfset qNavigation = objNavigation.getParent(YourNavObjectID)>
>
> Chris,
>
> On Sep 30, 8:49 pm, Chris Roth <[EMAIL PROTECTED]> wrote:
>> Thanks chris... this is a 4.10 site. Do you know the function off hand
>> to get an htmls nav id?
>>
>> On Sep 30, 10:44 am, Chris Kent <[EMAIL PROTECTED]> wrote:
>>
>> > Chris,
>>
>> > I have used the code below to check permissions for navigation.
>>
>> > <cfset nodeOK =
>> > request.dmSec.oAuthorisation.checkPermission(permissionName="View",objectID="YourNavObjectID",lPolicyGroupIDs="6")>
>>
>> > This was to check for "anonymous" user group permissions.
>>
>> > Replace "YourNavObjectID" with the navigation node for the html page
>> > your wish to check - you may need to grab the html pages nav node -
>> > try
>> > Replace "6" with the visitors policy group ids, this used to be in
>> > session.dmsec.authentication.lpolicyGroupIds
>>
>> > This was for a V4 site, things may have changed in V5.
>>
>> > Hope this gets you started.
>>
>> > Chris.
>>
>> > On Sep 30, 6:12 pm, Chris Roth <[EMAIL PROTECTED]> wrote:
>>
>> > > Any help on this appreciated. Is there a function I can call in the
>> > > _search.cfm include to check permissions on a dmhtml object, and not
>> > > output it in the results if the user is not logged in or does not have
>> > > permission?
>>
>> > > On Sep 29, 3:14 pm, Chris Roth <[EMAIL PROTECTED]> wrote:
>>
>> > > > I have a protected node with sub navs and dmhtmls. Is it possible
>> > > > somehow to...
>>
>> > > > 1. filter these dmhtml's from the verity search results..
>>
>> > > > or.
>>
>> > > > 2. some how denote on the results that the page requires a login/
>> > > > particular membership type?- Hide quoted text -
>>
>> > - Show quoted text -
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---