mirando
1 Copper

Why Have MetadataTags that are not listable?

Jump to solution

Can someone give me an example of why you would have a Metadata tag that is not listable?

For example, if I create listable tags of files uploaded by year (let's say 2010, 2011,2012) I can list these tags by using getListableTags. What about the unlistable ones? I've tried the equivalent of getListableTags('privatetag'); and it's gives an ESUException when I use the ESU PHP Framework.

Labels (2)
0 Kudos
1 Solution

Accepted Solutions
aashishpatil
4 Tellurium

Re: Why Have MetadataTags that are not listable?

Jump to solution

The non-listable tags are similar to properties on each object. You can read / set their values once you have retrieved the object. You cannot list on them.

Thanks,

Aashish

0 Kudos
5 Replies
aashishpatil
4 Tellurium

Re: Why Have MetadataTags that are not listable?

Jump to solution

The non-listable tags are similar to properties on each object. You can read / set their values once you have retrieved the object. You cannot list on them.

Thanks,

Aashish

0 Kudos
mirando
1 Copper

Re: Why Have MetadataTags that are not listable?

Jump to solution

So what solution would you propose if you want to list all tags except exclude printing a few of them to the user interface? i.e. I'm using listable tags as data directories. I also wanted to try to use it to list files that can be streamed.

The solution I'm using right now is to loop through the tags and just exclude certain ones from being printed as clickable links in the user interface, via a code snippet. This could get cumbersome the more complicated my application gets.

Thanks.

0 Kudos
aashishpatil
4 Tellurium

Re: Why Have MetadataTags that are not listable?

Jump to solution

Thought I replied to this by email yesterday but the reply did not go through. Here it is -

Hi Mirando,

One way would be what you are doing in the application itself.

Another I can think would be to use tag hierarchies. Atmos allows creation of nested tags tag1/tag2/tag3. Then using the api, you can get all tags under tag1, or all tags under tag1/tag2.
Now, all your viewable tags could be in one root while all your hidden could be under another group. Then you could just get all the listable tags in the viewable group.
E.g.

Tag-viewable/viewable1
Tag-viewable/viewable2

Tag-hidden/hidden1
Tag-hidden/hidden2

Thanks,
Aashish

mirando
1 Copper

Re: Why Have MetadataTags that are not listable?

Jump to solution

Thanks, Aashish.

So can you remove a user metadata tag?

For example, to move an object between hidden/ and viewable/

0 Kudos
aashishpatil
4 Tellurium

Re: Why Have MetadataTags that are not listable?

Jump to solution

Yes, you should be able to delete a metadata tag and add a new one.

Check the Delete Metadata section in the Atmos Programmer's Guide

Regards,

Aashish