Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Stefan 117 posts 215 karma points
    Jul 18, 2013 @ 14:07
    Stefan
    0

    Force folder consistency

    I have AutoFolders working for the news section of my website, but I would like to know if it is possible to prevent users from creating nodes when the rightclick anything other than the rootfolder?

    Otherwise I would like a feature that instead of nesting the folder structure below the date folder that is rightclicked (to create new node) it just places the new node in the appropriate folder.

    This is the structure of my site:

    EN
    -- News
    ---- Year
    -------- Month
    ------------ News node
    ---- Year
    ...

    If rightclicking "Month" to create a new node, AutoFolders will create the following structure:

    EN
    -- News
    ---- Year
    -------- Month
    -------- Year
    ------------ Month
    ---------------- new news node

    ------------ News node
    ---- Year
    ...

    Which is not what I intended when creating the node. The appropriate location would be together with the "News node" (expected that the new node is created within the same month...)

    Here is my autofolder.config

    <?xml version="1.0" encoding="utf-8" ?>
      <settings> <folderProvider alias="NewsContainer"
    assembly="/bin/AutoFolders"
    type="AutoFolders.Providers.DateFolderProvider">
    <property alias="MonthFormat">MM</property>
        <property alias="YearFormat">yyyy</property>
    </folderProvider>
      </folderProviders>
      <autoFolders>
    <autoFolder docType="NewsItem"
    folderProviderAlias="NewsContainer"
    folderDocType="NewsFolder"
    rootFolders="//* [@isDoc and @level = 2]" 
    />
    </settings>

    Any ideas if this is possible?

Please Sign in or register to post replies

Write your reply to:

Draft