Fórumok

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

thumbnail
Puj Z, módosítva 13 év-val korábban

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

Regular Member Bejegyzések: 220 Csatlakozás dátuma: 2010.01.14. Legújabb bejegyzések
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, módosítva 12 év-val korábban

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

Regular Member Bejegyzések: 220 Csatlakozás dátuma: 2010.01.14. Legújabb bejegyzések
anyone?
thumbnail
Raju OO7, módosítva 12 év-val korábban

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

Regular Member Bejegyzések: 239 Csatlakozás dátuma: 2010.04.27. Legújabb bejegyzések
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, módosítva 12 év-val korábban

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

New Member Bejegyzések: 9 Csatlakozás dátuma: 2011.08.26. Legújabb bejegyzések
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, módosítva 12 év-val korábban

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

Expert Bejegyzések: 358 Csatlakozás dátuma: 2010.11.17. Legújabb bejegyzések
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, módosítva 12 év-val korábban

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

New Member Bejegyzések: 9 Csatlakozás dátuma: 2011.08.26. Legújabb bejegyzések
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, módosítva 12 év-val korábban

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

Expert Bejegyzések: 358 Csatlakozás dátuma: 2010.11.17. Legújabb bejegyzések
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, módosítva 12 év-val korábban

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

New Member Bejegyzések: 9 Csatlakozás dátuma: 2011.08.26. Legújabb bejegyzések
thanks!
zahra zarei, módosítva 12 év-val korábban

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

New Member Bejegyzések: 9 Csatlakozás dátuma: 2011.08.26. Legújabb bejegyzések
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, módosítva 12 év-val korábban

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

Regular Member Bejegyzések: 158 Csatlakozás dátuma: 2010.05.27. Legújabb bejegyzések
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, módosítva 12 év-val korábban

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

New Member Bejegyzések: 9 Csatlakozás dátuma: 2011.08.26. Legújabb bejegyzések
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, módosítva 6 év-val korábban

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

New Member Bejegyzések: 22 Csatlakozás dátuma: 2015.09.02. Legújabb bejegyzések
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.