Can the version placeholder be displayed in the custom thumbnail info? If so, what's the code?
Thanks.
displaying version placeholder in thumbnail info
displaying version placeholder in thumbnail info
- Attachments
-
- thumb.jpg (10.72 KiB) Viewed 3085 times
photography.dougwieringa.com
Re: displaying version placeholder in thumbnail info
Hi Doug,
For the next update (1031) I've added a macro command for this; %CatalogPlaceholderList
Also...
For now you can achieve the same with a script (just copy/paste the entire script to a custom thumb info line).
Hope that helps
For the next update (1031) I've added a macro command for this; %CatalogPlaceholderList
Also...
Keep in mind that one image can be assigned to multiple version placeholders.Can the version placeholder
For now you can achieve the same with a script (just copy/paste the entire script to a custom thumb info line).
Code: Select all
%code
var
ACatItem, AMain: TCatalogItem;
APhs: TCatalogPlaceHolders;
i: Integer;
begin
result := '';
ACatItem := TCatalogItem.Create(nil);
AMain := TCatalogItem.Create(nil);
try
if Catalog.FindVersionImage(ImageItem, ACatItem) then
begin
if Catalog.FindMainVersionForItem(ACatItem, AMain) then
begin
APhs := TCatalogPlaceHolders.Create(TCatalogPlaceHolder, '');
try
Catalog.EnumPlaceHoldersForVersionInMain(AMain, ACatItem, APhs);
for i := 0 to APhs.Count - 1 do
result := result + iif(i = 0, '', ',') + APhs.Items[i].PlaceHolder;
finally
APhs.Free;
end;
end;
end;
finally
AMain.Free;
ACatItem.Free;
end;
end;
%/code
This is a user-to-user forum. If you have suggestions, requests or need support then please send a message