Jake Churchill

… on Flex, ColdFusion, FarCry, and much more …

  • Home
  • About
  • Projects

28

Sep

Farcry Navigation Move Permissions

Posted by Jake Churchill  Published in Farcry

I received a question today about how to stop the contributor policy group from being able to re-order navigation nodes. There are a lot of things that you can control via the group permissions section. For some information on those, see this post: http://www.reynacho.com/?p=49.

However, these permissions deal primarily with the approval process and webtop sections. dmNavigation does not go through the standard approval process and basically everyone can access the site tab. So, how do we accomplish this?

Basically, we set up node-specific permissions. I have discussed this before in creating a Members Only Section but we can control users who have webtop access in a similar way.

In order to stop contributors from being able to re-order Navigation Nodes, we need to turn off the “Move” menu and sub-menu. How do we do that? Well, a quick read through /core/tags/navajo/overview.cfm gave me my answer. Please do not read this file without a king-sized bottle of Ibuprofen handy. In my version 4.0 install around line 1244 I found my answer. Move checks to make sure the user has “Edit” permissions on the node in question. So, let’s turn those off:

  1. Make sure you are logged in as an admin
  2. Go to the Site Tab and find the node you want to limit
  3. Right click and select “Permissions”
  4. Change the select box to Contributor (or any other group you wan to affect)
  5. Change “Edit” to “No” (or “Inherit” if you’ve already set this to “No” on a parent node)

And there you go, the Contributor group no longer gets the “Move” menu.

On a side note, thank you to the guys on this thread for bringing this up.

no comment

17

Jun

Farcry Custom Config

Posted by Jake Churchill  Published in Farcry

How I’ve gone as far as I have without looking into this sooner is beyond me. Creating Custom Types is basically how I spend 80% of my time and I had hit a wall until now. Custom Types deserve custom config options so their behavior can be configured by the users. Here’s how…

I have a very simply type which is a way to track registrations. The fields are unimportant, it’s simply a way to track what’s entered on registration forms. The client came back and wanted to be able to send the completed forms to someone via email but that person might change. So, rather than me having to change the code manually any time the email had to change, I set up a custom config for this type.

  1. Create a .cfm file in /farcry/ /system/dmConfig/ with the name you want to show up (i.e. myCustomConfig.cfm will show up as myCustomConfig in the config files list)
  2. Inside the file create a structure containing the config options with defaults:
  3. <cfscript>
    	stConfig = StructNew();
    	stConfig.EmailFrom = "info@bryanlgh.org";
    	stConfig.EmailTo = "55PLUS@bryanlgh.org";
    	stConfig.EmailSubject = "55PLUS Application";
    </cfscript>
  4. Log into farcry and navigate to Admin -> Custom Config
  5. Deploy your config
  6. navigate to Admin -> Config Files
  7. Update as necessary

Doing this will essentially create a new key in the structure “application.config” with the same name as the filename you created and placed in dmConfig. Farcry automatically handles updating the custom config files.

There is additional information at the Farcry Wiki

4 comments

19

Mar

dmFlash Technique

Posted by Jake Churchill  Published in Farcry

I’ve had some requests that I blog a dmFlash technique that I use in both version 3 and verion 4 of Farcry. This sounds much more glamourous than it actually is. I really just use a container with a handpicked rule but here are the details you will need to use this for yourself:


continue reading "dmFlash Technique"

1 comment

17

Mar

Custom contentObjectGet Widget

Posted by Jake Churchill  Published in Farcry

Something about Farcry has bothered me for a while. It is difficult to link to content programatically, especially if you have a navigation node with multiple content items under it. For example, I have an application that I was writing which contained a calendar and a registration piece. Each was a separate dmInclude under the same dmNavigation node. So, how do I create a “Register Now” button from the calendar to the registration piece programmatically? Sure, I could hard-code the objectID but that just wasn’t cutting it for this. Sure, it would work, but would be easily broken. If the registration piece was ever deleted and re-created, there would be a new UUID for it and the user would not be able to recover the functionality without editing code or the database record. So, I came up with a better solution…


continue reading "Custom contentObjectGet Widget"

no comment

5

Feb

Farcry Typeadmin pagination trick

Posted by Jake Churchill  Published in Farcry

I was searching through typeadmin for something unrelated to this post and found something interesting that I thought I’d share.

It often annoys me that there are only 15 items displayed per page. Show me a site that’s been live for more than a month and I’ll show you an image library with WAY more than 15 items. Usually there are more than 15 pages.

Typeadmin takes a couple of attributes that I was not aware of until today (numitems and numPageDisplay). Here are their defaults:


continue reading "Farcry Typeadmin pagination trick"

no comment

5

Feb

Delete Core Webtop Links

Posted by Jake Churchill  Published in Farcry

I ran into a situation where I wanted to re-order an entire spot of the webtop. So, how do you do that. I know how to extend the webtop using customadmin.xml, can you get rid of things the same way?

The answer is yes, using the “mergetype” attribute. Here’s how…


continue reading "Delete Core Webtop Links"

no comment

1

Feb

Farcry Containers – Not Just For News

Posted by Jake Churchill  Published in Farcry

I’m sure many people, like me, have taken the short-sighted approach when it comes to pages and containers. Let me just say that the Handpicked Rule is definitely the almighty divine rule as far as I’m concerned.

I have had customers who want a contact form. Simple enough, right? Well, what if they want to add text at the top of the form and want control over it. A CMS should be able to handle that right? I actually went to the extreme of extending the dmHTML type and creating a custom webskin to allow the user to drop in an included object below their dmHTML content. That was a good 4 hours wasted!


continue reading "Farcry Containers – Not Just For News"

no comment

1

Feb

Learning Farcry – Ongoing Support

Posted by Jake Churchill  Published in Farcry, Farcry Users

I am in charge of training nearly all of our clients on Farcry once a site is ready for them to begin adding/editing content. At first this can be a very large obstacle for many people because they are simply not used to thinking about certain things. Before Farcry they simply called their web/IT staff and requested a change. The next thing they new, the change was there…like magic.

One of my biggest obstacles is getting people to THINK like a developer. No, they don’t need to understand coding practices but they DO need to think about layouts, templates, libraries, trees, etc. They need to begin to grasp the site as a whole in order to manage it and the relationships that exist within it.

Even months after a site that I’ve developed goes live, I get questions like “How do I change the order of my nav?” or “How do I change the images on a page?” I am more than happy to help anyone whenever they need it. However, I am a STRONG believer in the idea that struggles result in learning. If you are forced to struggle with something, you are more likely to retain the information so you don’t have to struggle with it again.

So, while I am not going to stop answering questions and helping people when necessary, I AM going to strongly recommend that end users of Farcry join a mailing list that was created specifically for them. It is the Farcry-User group on Google and I believe it is severely under-utilized and has a very high potential for not only promoting Farcry but developing skills of those who use it on a day-to-day basis. I have subscribed to the group to be able to answer any questions that people have. I strongly recommend that anyone using Farcry join the group. I also recommend that anyone developing in Farcry push their users in the same direction.

Here is a link: http://groups.google.com/group/farcry-user

2 comments

24

Oct

Farcry Custom Permission Sets

Posted by Jake Churchill  Published in Farcry

I don’t really recall at this point how I got started messing around with this but I think it’s pretty neat.

I was wondering how to create custom permissions for custom types. For example, when I do a custom type, I have traditionally applied the news permissions to it so anyone who has permissions to add/edit news items would be able to add/edit my custom type. But, what if you want specific permissions for your type? Here’s how you do it (in Farcry 3 that is)…


continue reading "Farcry Custom Permission Sets"

no comment

22

Oct

Farcry View Permissions Outside the Tree

Posted by Jake Churchill  Published in Farcry

I have talked before about branch specific permissions on the site tree which go a long way to creating effective “members only” sections to your website. Recently, however, I was tasked with a situation that was slightly different.

CF Webtools works with a lot of financial sites using a product called Finwin. This is one of the first times we have put a financial site into Farcry so the unique challenge was to create a displayTeaser.cfm page for dmNews but have the content of the news stories protected. This sounds easy enough but, here is where I ran into an issue…

Farcry automatically associates an objectid with a “type” and automatically looks for a displayPage.cfm file associated with that type. The branch specific permissions are handled by the display.cfm file inside the core files. So, here is what I did to accomplish this task:


continue reading "Farcry View Permissions Outside the Tree"

no comment

Search

Blog Feed

  • Add blog to any reader
  • Comments Rss
May 2013
M T W T F S S
« Feb    
 12345
6789101112
13141516171819
20212223242526
2728293031  

 

May 2013
M T W T F S S
« Feb    
 12345
6789101112
13141516171819
20212223242526
2728293031  

Subscribe to Blog

Your email:

Subscribe   Unsubscribe

Archives

Categories

  • Browsers (3)
  • CFEclipse (2)
  • ColdFusion (7)
  • CSS (9)
  • Farcry (33)
    • Farcry Examples (2)
    • Farcry Users (1)
  • Flash (1)
  • Flex (14)
  • Javascript (5)
  • Life & Fun (3)
  • Microsoft Office (1)
  • Misc (4)
  • Random Posts (1)
  • SQL (2)
  • Uncategorized (2)

Blogroll

  • Axel Jensen
  • Ben Forta
  • Coldfusion Muse
  • Fullasagoog
  • Nicole Rutter
  • Ray Camden
  • Sandy Clark
  • Stillnet Studios

Recent Posts

  • FCKEditor Firefox 3.6 Bug (Year 2010 Bug)
  • ColdFusion using Java for regex replace
  • ColdFusion VirtualMerchant CFC
  • Farcry Navigation Move Permissions
  • Delete Mail via POP Script

Recent Comments

  • James Moberg on FCKEditor Firefox 3.6 Bug (Year 2010 Bug)
  • Jake Churchill on ColdFusion using Java for regex replace
  • Ben Nadel on ColdFusion using Java for regex replace
  • Peter Boughton on ColdFusion using Java for regex replace
  • Peter Boughton on ColdFusion using Java for regex replace

Recent Post

  • FCKEditor Firefox 3.6 Bug (Year 2010 Bug)
  • ColdFusion using Java for regex replace
  • ColdFusion VirtualMerchant CFC
  • Farcry Navigation Move Permissions
  • Delete Mail via POP Script
  • Flex 2 Datagrid not highlighting row (UPDATE)
  • Flex 2 Datagrid not highlighting row
  • Flex Dynamic casting of data
  • Reboot XP PC over Remote Desktop
  • Dynamically instantiate a class

Recent Comments

  • James Moberg in FCKEditor Firefox 3.6 Bug (Year 2010 Bug)
  • Jake Churchill in ColdFusion using Java for regex replace
  • Ben Nadel in ColdFusion using Java for regex replace
  • Peter Boughton in ColdFusion using Java for regex replace
  • Peter Boughton in ColdFusion using Java for regex replace
  • Matthew in ColdFusion using Java for regex replace
  • Matthew in ColdFusion using Java for regex replace
  • Jake Churchill in Flex Channel.Connect.Failed error NetConnection.Ca…
  • Flex Guy in Flex Channel.Connect.Failed error NetConnection.Ca…
  • Dexter in Flex Custom Preloader without SWF
© 2008 Jake Churchill is proudly powered by WordPress
Theme designed by Roam2Rome