Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

4283

September 8th, 2010 14:00

Why Have MetadataTags that are not listable?

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.

212 Posts

September 8th, 2010 23:00

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

12 Posts

September 20th, 2010 15:00

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.

212 Posts

September 21st, 2010 11:00

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

12 Posts

September 24th, 2010 07:00

Thanks, Aashish.

So can you remove a user metadata tag?

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

212 Posts

September 24th, 2010 09:00

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

No Events found!

Top