so in the case of your set-up.....you need to create two templates. One is the listing template (memo) which would list all of the articles, and the second is the details template (article 1). For this example I will use the following aliases: listing template -> newsListing, details template -> newsDetails
The two values you will need to update are the XXX after rootFolders. The XXX should be the level that Memo is. So Content->Home->Memo would be 1 level (I think). If this doesn't work, change it to 2.
The second value is the DateField. In your Details template, you will have a field where you enter in the date that you would like the auto folder to use for the folders. I normally use a Date Picker called displayDate or articleDate. You would enter the alias for the field where it says YOUR_DOCTYPE_FIELD_ALIAS_HERE.
Well, your config looks good to me. The one question may be the rootFodlers level. Please try and remove that line (for now) and see if that works. The root folder element basically forces the autofolders to only work if the memodetails item is at the second level. If you're trying to add at a different level, then it won't work.
If it works, then we'll want to add it back in....and get it working properly.
Hi chad.. i really appreciate your help, but i don't know where i am going wrong.. i removed the root folders but still not working. The umbraco version i am using is v
4.0.2.1 (Assembly version: 1.0.3441.17657). is there anything that autofolders v2.0.1 has issues with umbraco versions?
I'm glad it's not just me having problems with this, I am running an Umbraco V4.0.3 website and I am having all sorts of problems with this package, I have tried all different types of configurations but I either get nodes that dissapear or various other asp.net errors when trying to publish a node. Think I might give Tim's package a try instead.
not understanding how to use
I want to create a structure like
Memo |_
2009
12
14
Article 1
please tell what document types i need to create and settings changes in the autoconfig file.
Thanks
which version are you using.....v1 or v2?
-Chad
Hi Chad.
I am using v2.0.1
Thanks
so in the case of your set-up.....you need to create two templates. One is the listing template (memo) which would list all of the articles, and the second is the details template (article 1). For this example I will use the following aliases: listing template -> newsListing, details template -> newsDetails
The two values you will need to update are the XXX after rootFolders. The XXX should be the level that Memo is. So Content->Home->Memo would be 1 level (I think). If this doesn't work, change it to 2.
The second value is the DateField. In your Details template, you will have a field where you enter in the date that you would like the auto folder to use for the folders. I normally use a Date Picker called displayDate or articleDate. You would enter the alias for the field where it says YOUR_DOCTYPE_FIELD_ALIAS_HERE.
Hope this helps.
-Chad
Chad,
thanks for you help.. i tried but not able to get it.. the newsListing and newsDetails are the document types right?
thanks
Correct.
can you post your autofolder.config? and include your aliases for your your different doctypes?
created 2 document types
memodetails -- alias(memodetails)
articledetails -- alias(articledetails) -- under generic proerties created a proprty with datepicker datatype -- alias(pickdate)
The following is the autosettings.config file
<?xml version="1.0" encoding="utf-8" ?>
<settings>
<folderProviders>
<folderProvider alias="DateFolderProvider_Full"
assembly="/bin/AutoFolders"
type="AutoFolders.Providers.DateFolderProvider">
<property alias="DayFormat">dd</property>
<property alias="MonthFormat">MM</property>
<property alias="YearFormat">yyyy</property>
<property alias="DateField">pickdate</property>
</folderProvider>
</folderProviders>
<autoFolders>
<autoFolder docType="articledetails"
folderProviderAlias="DateFolderProvider_Full"
rootFolders="//node[@level=2]"
folderDocType="memodetails"
/>
</autoFolders>
</settings>
Thanks
Naren
created 2 document types
memodetails -- alias(memodetails)
articledetails -- alias(articledetails) -- under generic proerties created a proprty with datepicker datatype -- alias(pickdate)
The following is the autofolders.config file
<?xml version="1.0" encoding="utf-8" ?>
<settings>
<folderProviders>
<folderProvider alias="DateFolderProvider_Full"
assembly="/bin/AutoFolders"
type="AutoFolders.Providers.DateFolderProvider">
<property alias="DayFormat">dd</property>
<property alias="MonthFormat">MM</property>
<property alias="YearFormat">yyyy</property>
<property alias="DateField">pickdate</property>
</folderProvider>
</folderProviders>
<autoFolders>
<autoFolder docType="articledetails"
folderProviderAlias="DateFolderProvider_Full"
rootFolders="//node[@level=2]"
folderDocType="memodetails"
/>
</autoFolders>
</settings>
Thanks
Naren
Well, your config looks good to me. The one question may be the rootFodlers level. Please try and remove that line (for now) and see if that works. The root folder element basically forces the autofolders to only work if the memodetails item is at the second level. If you're trying to add at a different level, then it won't work.
If it works, then we'll want to add it back in....and get it working properly.
-C
Hi chad.. i really appreciate your help, but i don't know where i am going wrong.. i removed the root folders but still not working. The umbraco version i am using is v 4.0.2.1 (Assembly version: 1.0.3441.17657). is there anything that autofolders v2.0.1 has issues with umbraco versions?
got working with DateFolder package of Tim. Thanks a lot chad
Wow, I could not get this package working either. Very confusing setup and got all sorts of errors. Weird.
What could possibly be wrong with my config file?
<autoFolders><autoFolder docType="news"
I'm glad it's not just me having problems with this, I am running an Umbraco V4.0.3 website and I am having all sorts of problems with this package, I have tried all different types of configurations but I either get nodes that dissapear or various other asp.net errors when trying to publish a node. Think I might give Tim's package a try instead.
is working on a reply...