Foren

default value in <liferay-ui:asset-tags-selector> when editing an entity

thumbnail
Puj Z, geändert vor 13 Jahren.

default value in <liferay-ui:asset-tags-selector> when editing an entity

Regular Member Beiträge: 220 Beitrittsdatum: 14.01.10 Neueste Beiträge
Hi,

I am using <liferay-ui:asset-tags-selector> to tag an entity (model). I use serviceContext to get the tags in my xxLocalServiceImpl add() method and update the corresponding asset. I can also read it afterwards.

The problem is by editing. I don't know how the current tags and categoryIds can be retrived and put as default value in <liferay-ui:asset-tags-selector> (and <liferay-ui:asset-categories-selector> respectively)

does anyone know a solution?

Cheers,
Puj
thumbnail
Puj Z, geändert vor 12 Jahren.

RE: default value in <liferay-ui:asset-tags-selector> when editing an entit

Regular Member Beiträge: 220 Beitrittsdatum: 14.01.10 Neueste Beiträge
anyone?
thumbnail
Raju OO7, geändert vor 12 Jahren.

RE: default value in <liferay-ui:asset-tags-selector> when editing an entit

Regular Member Beiträge: 239 Beitrittsdatum: 27.04.10 Neueste Beiträge
Are u using
AssetEntryLocalServiceUtil.updateEntry(userId, groupId, className, classPK, categoryIds, tagNames) 
method to add the asset?


The same className and classPK u have to configure with <liferay-ui:asset-categories-selector classPK=" " className=" " / > to get categories added to the entity
zahra zarei, geändert vor 12 Jahren.

RE: default value in <liferay-ui:asset-tags-selector> when editing an entit

New Member Beiträge: 9 Beitrittsdatum: 26.08.11 Neueste Beiträge
Hi dear Puj Z,

I'm trying to do what you did, I mean categorized my entity. but unfortunately I didn't find any sample of how doing that but your post!
can you help me with that please, I will appreciate that if you put some code!
thumbnail
Mayur Patel, geändert vor 12 Jahren.

RE: default value in <liferay-ui:asset-tags-selector> when editing an entit

Expert Beiträge: 358 Beitrittsdatum: 17.11.10 Neueste Beiträge
Hello guys,

I recently created one nice blog based on my experience , Please refer to this

http://mpatel3.blogspot.com/

Tell me If you need more on this, I can help you out on this.

Regards,
Mayur Patel
zahra zarei, geändert vor 12 Jahren.

RE: default value in <liferay-ui:asset-tags-selector> when editing an entit

New Member Beiträge: 9 Beitrittsdatum: 26.08.11 Neueste Beiträge
thanks!
It was great, I want to know if its possible to limit category selector so users can only select one category at a time? or I have to do it in code?

thanks
thumbnail
Mayur Patel, geändert vor 12 Jahren.

RE: default value in <liferay-ui:asset-tags-selector> when editing an entit

Expert Beiträge: 358 Beitrittsdatum: 17.11.10 Neueste Beiträge
Hello zahra ,

For limiting category selector you have to change logic of that asset-selector from this path by using hooks -

\html\taglib\ui\asset_categories_selector\page.jsp

HTH, Mayur
zahra zarei, geändert vor 12 Jahren.

RE: default value in <liferay-ui:asset-tags-selector> when editing an entit

New Member Beiträge: 9 Beitrittsdatum: 26.08.11 Neueste Beiträge
thanks!
zahra zarei, geändert vor 12 Jahren.

RE: default value in <liferay-ui:asset-tags-selector> when editing an entit

New Member Beiträge: 9 Beitrittsdatum: 26.08.11 Neueste Beiträge
Hi guys!
I really don't know where should I post my question, So I put it here and hope somebody help me,
I want to use liferay for a company with two groups of users(supplier and custommer) so I made two communities for this users which can join, But for example I want
a supplier has a some page which could place and edit his information , so i make private pages for community but it is like that information there is for everyone who is a member of the community, can anyone please tell what should I do?should I use user groups or organization?
thumbnail
Kamesh Sampath, geändert vor 12 Jahren.

RE: default value in <liferay-ui:asset-tags-selector> when editing an entit

Regular Member Beiträge: 158 Beitrittsdatum: 27.05.10 Neueste Beiträge
i don’t think it will work the way you have designed, always provide access to the portal resources based on roles and private pages are meant to be strictly private for a user.

Try like this, what you have done creating new communities is right, crate the roles for users based on your authorization model and add groups to roles. Now attach the role with community or its pages.

it will make your job easier later when adding and removing users which can be done @ Group level.

I hope I have answered you partially. Let me know if you want any further clarification.


~Kamesh
zahra zarei, geändert vor 12 Jahren.

RE: default value in <liferay-ui:asset-tags-selector> when editing an entit

New Member Beiträge: 9 Beitrittsdatum: 26.08.11 Neueste Beiträge
Hi Kamesh
I create a user groups with pages and portlets that I want, and I create a Regular Role and add the
user group to that role(It's not possible to add group to a community role) but Now I can't Assign the role
to community,
you know, I want every one who Join this community has some predefine pages who only can view and
edit his contents,
I am not sure if I must use private pages or user groups.
Sikendar Kumar, geändert vor 6 Jahren.

RE: default value in <liferay-ui:asset-tags-selector> when editing an entit

New Member Beiträge: 22 Beitrittsdatum: 02.09.15 Neueste Beiträge
zahra zarei:
Hi Kamesh
I create a user groups with pages and portlets that I want, and I create a Regular Role and add the
user group to that role(It's not possible to add group to a community role) but Now I can't Assign the role
to community,
you know, I want every one who Join this community has some predefine pages who only can view and
edit his contents,
I am not sure if I must use private pages or user groups.



Hi All, I have all tags , when try to select tags only its appear for the signed user , its not appear for anonymous user.can any one help me out where i need to change.