Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Andrés Cerezo
Asset related with order by
September 15, 2011 4:23 AM
Answer

Andrés Cerezo

Rank: Junior Member

Posts: 92

Join Date: November 11, 2010

Recent Posts

Hello all, I need to order the asset related inside an activity, I've attached a image.

Anyone can help me, please?


Thanks.
Attachment

Attachments: ScreenClip.png (65.4k)
Ravi Kumar Gupta
RE: Asset related with order by
September 15, 2011 8:11 PM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1145

Join Date: June 23, 2009

Recent Posts

Never done so.. but if priority is not there already, a custom field can be used and accessed using expando. Then if possible using hook modify the query to list the related assets. Or may be modifying the query in this case may be difficult then get the results and sort them according to priority..
Hitoshi Ozawa
RE: Asset related with order by
September 15, 2011 8:49 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

I don't think you'll be able to add custom field to Related Assets.
Ravi Kumar Gupta
RE: Asset related with order by
September 15, 2011 9:04 PM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1145

Join Date: June 23, 2009

Recent Posts

then a new table may hold the values... ??
Hitoshi Ozawa
RE: Asset related with order by
September 15, 2011 9:17 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

It's probably enough to add a column to the existing table manually.
Maybe submitting a request for this feature is the best way. emoticon
Ravi Kumar Gupta
RE: Asset related with order by
September 15, 2011 9:48 PM
Answer

Ravi Kumar Gupta

Rank: Liferay Legend

Posts: 1145

Join Date: June 23, 2009

Recent Posts

hmm... i might not be completely with you to add a field manually.. emoticon but ya.. new feature request can be filed.. emoticon

One more thing though.. where can the priority be set.. ?
Hitoshi Ozawa
RE: Asset related with order by
September 15, 2011 10:41 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

I just finished modifying the Bookmark portlet to add the current page url.
Took away all the unnecessary items that was making the operation complicated. :-).

Having a "Standard Liferay" portlet would be nice addition though.
Hitoshi Ozawa
RE: Asset related with order by
September 15, 2011 10:44 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Yes, I was just going to delete it, but you replied before I had a chance.
Hitoshi Ozawa
RE: Asset related with order by
September 15, 2011 10:52 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Related Assets are used by many different portlet and it would be difficult to just modify for one portlet.
The place to add priority would be in the Related Assets table. May be between Title and "Remove" column. I haven't look too much into it
because I don't need it, but I think that portion is in on jspf.