Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
My site structure is as following:
I wanted to use the Autofolder on the News and Events folder.
I've installed autofolder on an clean installed Umbraco 4. After this i modified the config like this:
<?xml version="1.0" encoding="utf-8" ?><Settings> <FolderProviders> <FolderProvider alias="Newsoverview" assembly="/bin/AutoFolders" type="AutoFolders.Providers.DateFolderProvider" TruncatedFolderUrl="folder-1/folder-2/newsitem" rootFolder="//node[@level = 2]"> <Property alias="FolderDocType">Newsoverview</Property> <Property alias="DayFormat">dd</Property> <Property alias="MonthFormat">MM</Property> <Property alias="YearFormat">yyyy</Property> </FolderProvider> <FolderProvider alias="AlphaFolder" assembly="/bin/AutoFolders" type="AutoFolders.Providers.AlphaFolderProvider" > <Property alias="FolderDocType">DateFolder</Property> <Property alias="UseUppercase">true</Property> </FolderProvider> </FolderProviders> <DocTypes> <DocType alias="newsitem" folderProvider="newsoverview"/> </DocTypes></Settings>
When I add a newsitem in the News folder I dont get the 2009 > 11 > 28 > newsitem.
If I create a newsfolder direct under the Home folder it works.
I tried to change the settings but i can't get it fixed. Can you help me please
It's probably your 'rootFolder' setting, this restricts the parent (root) nodes that autofolders will operate with. If the parent of your new page does not match the xpath then autofolders will execute.
In your structure changing the setting to rootFolder="//node[@level=3]" will probably work, but you coculd also use the docType alias ofyour parent nodes.
The discussion that spawned this feature is http://our.umbraco.org/projects/autofolders/general/4415-Possible-New-feature
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted