Copied to clipboard

Flag this post as spam?

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


  • Richard Barg 358 posts 532 karma points
    Feb 04, 2013 @ 20:08
    Richard Barg
    0

    Folder Properties

    I have a question re: the creation of folder classes relating to the documentaton below and the image below:

    The question is, is it the folder itself that has the configuation info or is it the actual images in the folder that has the image string. In other words, can you place images in a folder w/no <image..... string and have them automatically take on the attibutes of the folder. re: the subfolders, what is the best way to handle this?

     

     

     

    Folder Classes

    Folder classes are automatically activated based on the location of the source image. Like the default class,

    folder classes do not require the class= on the querystring. A folder class is applied when the first characters of

    the Folder= property exactly match the first characters of the image= querystring parameter.

    You may specify a single image (for example, Folder="logo.jpg") or an entire folder and all images contained

    in that folder (for example, Folder="/screenshots"). Folder classes do not apply to sub-folders; you must

    specify a folder class for each folder (though each folder can inherit from a base class).

     

     

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Feb 04, 2013 @ 20:24
    Douglas Robar
    0

    Hi, Richard,

    Folder classes are used for the physical folders on the server, not the 'logical' folder structure displayed in Umbraco. For instance, the Ascher, Nancy L images almost certainly live in 3 different physical folders on the server (/media/1234/photo1.jpg, /media/2345/photo2.jpg, /media/3456/photo3.jpg). In this case you won't find the folder classes very helpful because of the vast number of physical folders (/media/1234, /media/2345, /media/3456, etc.) that you want to track. 

    Instead, you would use a named class and include the &class= parameter when calling ImageGen to get whichever size of the original image you want.

    The folder classes only really work when you have a lot of images of the same kind in the same folder and only want to resize them to a single set of parameters. Otherwise named classes are best.

    cheers,
    doug. 

  • Richard Barg 358 posts 532 karma points
    Feb 04, 2013 @ 20:41
    Richard Barg
    0

    Thanks, Doug

Please Sign in or register to post replies

Write your reply to:

Draft