+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Image Library: Images with same title

Image Library: Images with same title

17 posts, 0 answered
  1. Gary
    Gary avatar
    91 posts
    Registered:
    19 Jul 2007
    30 Nov 2008
    Link to this post
    When I give multiple images the same title within an image library, all the images will become the same.

    Tested with Sitefinity 3.5 SP1.

    Regards,
    Gary
  2. Nikolai
    Nikolai avatar
    216 posts
    Registered:
    21 Nov 2016
    01 Dec 2008
    Link to this post
    Hello Gary,

    In the database the images are searched by their name and not by id. So this is the expected behavior. You could use Batch Edit screen to rename them manually. Once their names are different all images will show correctly.

    Sincerely yours,
    Nikolay
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Gary
    Gary avatar
    91 posts
    Registered:
    19 Jul 2007
    01 Dec 2008
    Link to this post
    Dear Nikolay,

    "Expected behavior" is not an answer I can give to my customers. The UI needs to be robust. Either prevent the user from giving the images the same name (which I'm not endorsing because there is no valid business reason for it) or save the image by the id rather than the name (which is a good database design principle that should always be followed).

    Also, renaming them differently after they have the same name does not fix the problem.

    Please log this as a bug.

    Regards,
    Gary
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    03 Dec 2008
    Link to this post
    Hello Gary,

    I can understand how you feel.
    The problem is that we are looking for item names instead of IDs in the database when we show the thumbnail or the real image byte-stream.

    We already logged this as a bug in the system. You are right that the UI should be robust and this is in fact unexpected for the end user.

    We have updated your Telerik account.

    Kind regards,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Gary
    Gary avatar
    91 posts
    Registered:
    19 Jul 2007
    03 Dec 2008
    Link to this post
    Great news, Georgi.

    Thanks,
    Gary
  6. Schneider
    Schneider avatar
    29 posts
    Registered:
    02 Nov 2008
    08 Dec 2008
    Link to this post
    The same problem exists with tags (and no doubt many other parts of the system).

    The fact that this 'bug' exists at all is very shocking. It is a very rudimentary concept to use an unique Id to IDENTIFY an object such that you can rename its display name with impunity.

    That fact sitefinity does not even use the Id is a devastating blow against the perceived quality of this product, and rightly so.
  7. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    08 Dec 2008
    Link to this post
    Hello Jack,

    Could you elaborate on how you added two tags with the same name?

    We would also appreciate if you elaborate on why do you need two images with the same name in one library, or two tags with the same name in one provider. Perhaps we are missing something.

    All the best,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  8. Schneider
    Schneider avatar
    29 posts
    Registered:
    02 Nov 2008
    08 Dec 2008
    Link to this post
    We simply used the API to create tags with the same name.

    As for creating images with the same name - we have no business requirement for this - I was simply supporting the original poster who was saying, quite rightly, that this was a defect in the design and that users should not be allowed to damage their own system by accidentally naming two images the same.
  9. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    09 Dec 2008
    Link to this post
    Hello Jack,

    Thank you for the additional details. We will have this in mind.
    We are working on a new APIs set and will definitely have this in mind.

    All the best,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  10. Lara
    Lara avatar
    6 posts
    Registered:
    05 Feb 2009
    12 Feb 2009
    Link to this post
    I have a client who is very upset about the fact that they cannot name images by the same name...and that it is a required field.

    Essentially they have several very large galleries with many pictures of the same thing from different angles. They must be named by the product name. This presents a very large organizational issue for them.

    Each time they added a new set of images, they then have to sort through all the other images they have already uploaded to ensure they are not named the same. This makes it very difficult to find any kind of naming convention.

    If you want the titles of each image to show, then you must use 1, 2, 3 after the name of each image to differentiate them. It is not very aesthetic.

    This combined with the inability to sort the images simply by moving them to the place you want them, makes the gallery Control extremely cumbersome.

    I hope you will log this as a VERY important bug to address. From the end-user point of view it is not at all user friendly.

  11. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    13 Feb 2009
    Link to this post
    Hi Lara,

    Thank you for sharing your thoughts.

    We would like to open this for a discussion. As we stated, we have already logged this as a bug, but we are interested in your opinion in the following areas:
    • If you have two images/documents in the same library, how are you going to create links to them? If you create a link http://site.com/library/image.jpg, how Sitefinity will know which item to show, as there are two items with name "image" in the same library?
    • We are already placing a (x) after the name of the item, where x is an integer number. The convention is the same which is used in Windows. While (x) stands for a copy, if we append _x or just x, regarding the conventions, this will stand for a different version of the same item.
    Sorting - if you take a look at the items in View List mode, you will see a grid which supports sorting. You might use this for your needs.

    I am going to suggest you a solution though, for the issue with the same names. You can add a custom metafield to all library types, which will be named for example "Original_Title". Then, you can create your items and use this metafield for the items title. You will still use the Title metafield (the default one), but it will act more like an identifier. Something more - you can even attach to the event, when an new item is added to the library, and set your metafields (Title, Original_title, Description etc) dynamically. You can perform a search before that to ensure there is or there is no item with such name, then set the name as you wish.

    Last but not least, I checked your account and did not see any downloads of Sitefinity. If you are developer to some other account, please let us so we could update our records. We are looking forward for your reply about this and your thoughts on the proposed solutions/topic for discussion.
    Kind regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  12. Lara
    Lara avatar
    6 posts
    Registered:
    05 Feb 2009
    13 Feb 2009
    Link to this post

    Hi Georgi,

     

    I do not see any sorting functionality in List view. I’m looking in Modules>Images & Documents.

     

    We downloaded the Community Edition. Our account is under our company name. If you do a search in your dbase under that name, you will find our download. If you need additional information, please contact me by email directly.

    Thanks,
     

    Lara.

     

  13. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    17 Feb 2009
    Link to this post
    Hello Lara,

    The Grid allows sorting for the Name and File Type columns, please check the attached screenshot.

    Kind regards,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  14. Lara
    Lara avatar
    6 posts
    Registered:
    05 Feb 2009
    17 Feb 2009
    Link to this post

    Thanks for that.

    What I was referring to was having sorting freedom for the site, not the "view" in the Sitefinity.

    I want to be able to see images in the live Gallery in certain places. Not according to a prescribed rule like alphabetical or chronological.
  15. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    19 Feb 2009
    Link to this post
    Hello Lara,

    You can use any of the metafields presented for the Images and Documents module to perform sort operation on. Out of the box, the following meta fields are defined:
    <add key="Libraries.Name"  
    <add key="Libraries.Width" 
    <add key="Libraries.Height 
    <add key="Libraries.Size" 
    <add key="Libraries.Extension" 
    <add key="Libraries.AlternateText" 
    <add key="Libraries.Author" 
    <add key="Libraries.Description" 

    You can use a SortExpression like:
    • Name ASC
    • Author DESC
    You may define a new meta field, and sort ASC or DESC with it as well.

    Let me know if I am missing something.

    Greetings,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  16. Richard Baugh
    Richard Baugh avatar
    201 posts
    Registered:
    22 Aug 2012
    20 Apr 2009
    Link to this post
    I have added a new meta field called "Ordinal" to the meta fields section of the web.config, set the value type to integer, and also added the entry to the meta keys attribute for the three entries under the library section in the web.config. I have also made the changes to the ControlPanelEdit.ascx, ControlPanelEdit_Image.ascx, and BatchEditor.ascx in order to set this new meta field. When going into the "Image Gallery" control on the front end, I cannot get the list to order by this or any meta field. We are using SF 3.5 sp1 and nothing seems to work. I have set the SortExpression to the following values with no luck: Ordinal, Ordinal ASC, "Ordinal ASC". As a matter of fact, if I just put in Ordinal then the list returns nothing.
  17. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    24 Apr 2009
    Link to this post
    Hi Richard Baugh,

    Could you please open a new support thread and send me the web.config file? I suspect there might be something wrong in the libraries metafields configuration. I have tried to reproduce this locally, but was not able to.

    Greetings,
    Georgi
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
17 posts, 0 answered