Sharepoint Doc Lib Content Types - sharepoint-2007

So I would like it when a user creates a new folder in my sharepoint document library that 4 template documents also get added inside the new folder. I get that the user could just click on the document template for each template individual but I want them added all the time.
There doesn't seem to be an option to add template documents to a document lib folder content type.
Sooo.... Is my only alternative to create a custom sharepoint workflow that checks for the folder creation inside my doc lib. (Ideally maybe restricting it to only when a specific folder of my custom content type is created.. ) This seems like a simple workflow to create but I want to make sure that I even need to create one since I haven't actually created a custom sharepoint workflow yet...
Thanks,
Chris

You're right; there's no built-in functionality for this. It should be reasonable simple to write a workflow that runs when something is added to a library, checks to see if it is a folder, and adds the items into the folder. It would probably be easiest to have the template documents in another folder somewhere, and then copy them over.
Good luck!

I found this example that helped out a lot:
http://www.codeproject.com/KB/sharepoint/MOSS_FolderContentTypeWF.aspx

Related

Queue for transfer doesn't include contents within folder

In my Umbraco cloud instance I can't see option to include contents within any child folder while using option "Queue for transfer". I can do this with home folder(top folder). See below screenshot.
Not sure if this is a temporary bug in cloud instance or there is any option I am missing. Can any one suggest if there is any option to transfer, content in chunk for child folders?
So, further chasing the issue with Umbraco cloud support, I found that it is a know issue with Umbraco cloud and for document type configured to show as list view. The work around for this issue is to disable the list view for document type.

Create a combined view list in SharePoint 2007

I like to have a main page Web part with a link to each one of the shared documents in our portal.
The problem is that they are from different libraries and also I want the SharePoint to keep track of check in and check outs of the files. When I use, Content Editor to add the links, and then click on the list, it download a copy of file and saved changes do not change the original document.
I thought about creating a modified view in that specific library and filter out just one file. Then put that file in the front page. But, the first problem is that the file is 2 or 3 level deep in hierarchy. Also, even if I manage to do that, what should I do about different files in different libraries?
Please Advise

iOS file browser example

Does anyone have some sample code demonstrating how to make a "file browser" view? I'd like to be able to navigate through directories and drill-down the sub-directories and see files located within the various folders. I want the user to be able to create new directories/files and even select an existing file. Is there sample code out there already available to do this?
I don't know about sample code, but this wouldn't be too complicated to achieve using NSFileManager and a UITableView.
You can obtain arrays of directory contents using the subpathsOfDirectoryAtPath:error and associated methods of a file manager. These arrays in turn can populate a UITableView. It would be fairly easy to put together a navigation controller that could display a series of table views showing a file hiearchy.
Bear in mind, however, that you'll only be able to access the directories inside your application sandbox, unless you're running on a jailbroken device.
The iOS programming guide says that
You should never present users with the list of files in this directory and ask them to decide what to do with those files. Instead, sort through the files programmatically and add files without prompting.
This is assuming you are trying to implement file browse feature for your documents directory.
I'm an author of FileExplorer which is a file browser for iOS and fulfills most of your requirements.
Here are some of the features of my control:
Possibility to choose files or/and directories if there is a need for that
Possiblity to remove files or/and directories if there is a need for that
Built-in search functionality
View Audio, Video, Image and PDF files.
Possibility to add support for any file type.
You can find my control here.

How to create a new "templates" category on Xcode 4 and use my own file templates there?

I would like to start using my own templates for iOS applications. I don't want any significant changes, but simpler things like
add/remove some boilerplate code
add some pragma mark sections
hardcode my company's name and some comments for every file
change the indentation
etc etc etc
The idea is that we will share these templates when we create apps, but at the same time we want to keep the default template files that Xcode 4 already provides. So, in the following screenshot, how can I add a "CompanyName Application" section that contains exactly the same templates (Navigation-based, View-based etc), but with my own changes?
I found that I can add a folder under /Developer/Library/Xcode/Templates/ or /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/ but I'm a bit confused with what do I need to do exactly. I would really appreciate it if you could help me with that, as I have already messed up my folders twice with no luck. Thanks!
This blog post by borealkiss has detailed instructions. For starters:
If you add your own templates, the place you should use is under the following path:
~/Library/Developer/Xcode/Templates/
The problem is that it is quite hard to create a custom template.
For example, to copy and paste the
built-in template to your place will
not show up the template on Xcode 4
until you manually change its
identifier in TemplateInfo.plist.
I just found this article from Bob McCune "Creating Custom Xcode 4 File Templates" that is exactly what I needed, so I put it here for reference.

Make a document library that with links to filesystem

I want to make a "master" list or document library on our sharepoint site of links that point to various documents on across our different sites but also ones located in the filesystem eg. \someshare\somefile
I would like have to have the ability to sort these links in folders. I know I can use a list and set the group by columns, but that only gives me a folder structure that is 2 levels deep.
The "Link to Document" content type that can be added to a docoument library works fine for point to documents in sharepoint, but it requres that the url starts with http or https. Is there any way to add a link to a document library that will point to files located on a network share? Note: Due to some large file sizes uploading these files to sharepoint is not an option.
Thanks in advance.
For anyone who has this same problem I found an excellent and simple solution here: http://os.com/blog/linking-to-file-shares-from-sharepoint-document-libraries
Basically it involves modifying one of your layout files to accept file:// at the start of a link.
EDIT:
That link has dissapeared so here is the fix:
Find the file newlink.aspx on your Sharepoint web server(s). Located here by default: Drive:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\newlink.aspx
Whenever making any changes to layout files I recommend creating a backup of the just in case.
Add the following function to the script section:
function HasValidUrlPrefix_Override(url)
{
var urlLower=url.toLowerCase();
if (-1==urlLower.search(“^http://”) && -1==urlLower.search(“^https://”) && -1==urlLower.search(“^file://”))
return false;
return true;
}
Now you have you to change the ValidateInput() and TestDir() functions to call the function you just added. Change every instance of HasValidUrlPrefix(folderUrl) to HasValidUrlPrefix_Override(folderUrl). There should be 2 instances to change. On my original unedited file they were lines 43 and 62.
Save the changes and run iisreset.

Resources