Fórum

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

thumbnail
Puj Z, modificado 13 Anos atrás.

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

Regular Member Postagens: 220 Data de Entrada: 14/01/10 Postagens Recentes
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, modificado 12 Anos atrás.

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

Regular Member Postagens: 220 Data de Entrada: 14/01/10 Postagens Recentes
anyone?
thumbnail
Raju OO7, modificado 12 Anos atrás.

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

Regular Member Postagens: 239 Data de Entrada: 27/04/10 Postagens Recentes
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, modificado 12 Anos atrás.

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

New Member Postagens: 9 Data de Entrada: 26/08/11 Postagens Recentes
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, modificado 12 Anos atrás.

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

Expert Postagens: 358 Data de Entrada: 17/11/10 Postagens Recentes
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, modificado 12 Anos atrás.

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

New Member Postagens: 9 Data de Entrada: 26/08/11 Postagens Recentes
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, modificado 12 Anos atrás.

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

Expert Postagens: 358 Data de Entrada: 17/11/10 Postagens Recentes
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, modificado 12 Anos atrás.

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

New Member Postagens: 9 Data de Entrada: 26/08/11 Postagens Recentes
thanks!
zahra zarei, modificado 12 Anos atrás.

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

New Member Postagens: 9 Data de Entrada: 26/08/11 Postagens Recentes
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, modificado 12 Anos atrás.

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

Regular Member Postagens: 158 Data de Entrada: 27/05/10 Postagens Recentes
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, modificado 12 Anos atrás.

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

New Member Postagens: 9 Data de Entrada: 26/08/11 Postagens Recentes
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, modificado 6 Anos atrás.

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

New Member Postagens: 22 Data de Entrada: 02/09/15 Postagens Recentes
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.