Forum

Accueil » Liferay Portal » English » 2. Using Liferay » General

Vue combinée Vue Plate Arborescence
Sujets [ Précédent | Suivant ]
toggle
Asset Publisher doesn't sort correctly by "Publish Date", "Create Date",... Xavier Rodríguez Angrill 17 décembre 2013 08:08
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date" Marina Batet 18 décembre 2013 00:22
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date" James Falkner 18 décembre 2013 06:16
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date" Xavier Rodríguez Angrill 18 décembre 2013 07:12
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date" Giuseppe Cultrera 5 février 2014 00:34
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date" Marina Batet 5 février 2014 00:48
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date" Melvin Williams 11 février 2014 03:10
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date" Marina Batet 11 février 2014 03:25
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date" juan meza 25 février 2014 08:20
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date" James Falkner 26 février 2014 07:27
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date" Melvin Williams 6 mars 2014 04:21
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date" Muhammad Umer Zubair 12 mars 2014 03:53
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date" Juan Gonzalez 12 mars 2014 03:56
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date" Sergio Cabedo 13 mars 2014 04:21
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date" Marina Batet 18 mars 2014 06:02
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date" Melvin Williams 18 mars 2014 22:19
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date" Muhammad Umer Zubair 21 mars 2014 02:58
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date" Juan Gonzalez 21 mars 2014 03:05
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date" robin thakur 11 juin 2014 23:52
Xavier Rodríguez Angrill
Asset Publisher doesn't sort correctly by "Publish Date", "Create Date",...
17 décembre 2013 08:08
Réponse

Xavier Rodríguez Angrill

Rang: New Member

Publications: 18

Date d'inscription: 1 août 2013

Publications Récentes

Hi,

I use 6.2.0 CE GA1 and I have problems with the "Asset Publisher" portlet. When I put it in my public or private page and then select "Configuration" --> "Ordering and Grouping" only works fine the ordenation by "title". If I choose "Publish Date", "Create Date",.. it is sorted wrong, without a logic order.

anyone can help me?

Regards,

- Xavier -
Marina Batet
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date"
18 décembre 2013 00:22
Réponse

Marina Batet

Rang: New Member

Publications: 24

Date d'inscription: 18 avril 2011

Publications Récentes

I'm having the same issue. Asset publisher ordering doesn't work with date fields. And that's a pretty big issue for me. I'm reading the asset publisher portlet source code right now, trying to understand where this goes wrong.
James Falkner
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date"
18 décembre 2013 06:16
Réponse

James Falkner

LIFERAY STAFF

Rang: Liferay Legend

Publications: 1361

Date d'inscription: 17 septembre 2010

Publications Récentes

Marina Batet:
I'm having the same issue. Asset publisher ordering doesn't work with date fields. And that's a pretty big issue for me. I'm reading the asset publisher portlet source code right now, trying to understand where this goes wrong.


I ran into a similar issue on 6.1 on the release dashboard page (which is a collection of web content articles sorted by date using asset publisher). What I found was that when you sort by date, it considers the date of each article as the "Display Date" of the earliest approved version of the article. So even if you update the 'Display Date' for the article, that display date is recorded with respect to the new version, and you have to go and delete the older versions so that the most recently approved version of the article corresponds to the one with the display date you wish to sort by. I see you filed LPS-42985 but I think if LPS-18407 is implemented it will resolve this issue.

The workaround I used was to just delete older versions of the article so that there is only one version of the article, then the sorting should work correctly.
Xavier Rodríguez Angrill
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date"
18 décembre 2013 07:12
Réponse

Xavier Rodríguez Angrill

Rang: New Member

Publications: 18

Date d'inscription: 1 août 2013

Publications Récentes

Hi James,

As I understand in bug LPS-42985 is that if you modify an article, the assetentry.publishdate field isn't updated with the journalarticle.displaydate. Then, the latest version of the article has the field journalarticle.displaydate updated correctly but not in the assetentry.publishdate. If you delete the older versions, you still have the problem.

The ordenation of the type "date" in the Asset Entry portlet not works fine and this is sure one of the reasons because this portlet has this problem.

Regards,

- Xavier -
Giuseppe Cultrera
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date"
5 février 2014 00:34
Réponse

Giuseppe Cultrera

Rang: New Member

Publications: 4

Date d'inscription: 20 janvier 2010

Publications Récentes

I have the same identical problem in LR 6.2 CE.... any solution or the only one is not use the assett publisher because it become useless without ordering.
Marina Batet
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date"
5 février 2014 00:48
Réponse

Marina Batet

Rang: New Member

Publications: 24

Date d'inscription: 18 avril 2011

Publications Récentes

The asset publisher ordering by dates don't work in the 6.2 version, as you can see in this bug: https://issues.liferay.com/browse/LPS-42802.

Now, in the master version in git repository they have fixed this issue, and the assets are properly sorted by date. The problem now it's that the publish date field of the asset it's not updated properly when you update a web content (see bug https://issues.liferay.com/browse/LPS-43039), so (with the master version) the assets appear sorted except if you update the asset display date.

So, as I see it, the asset publisher it's useless until they don't resolve this last bug. For me, it's a major issue, as I use asset publisher a lot.
Melvin Williams
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date"
11 février 2014 03:10
Réponse

Melvin Williams

Rang: New Member

Publications: 20

Date d'inscription: 2 octobre 2013

Publications Récentes

When will this issue be solved? I spent hours writing a program that imports my contents from an old intranet keeping time-stamps. And now they are unordered. That's really annoying.
Marina Batet
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date"
11 février 2014 03:25
Réponse

Marina Batet

Rang: New Member

Publications: 24

Date d'inscription: 18 avril 2011

Publications Récentes

Same problem here.

The https://issues.liferay.com/browse/LPS-42802 issue is closed now, so if you build the actual master version on the git repository AND then manually update the database assetentry's publishdate .... something like:

1UPDATE assetentry SET publishdate=(select journalarticle.displaydate from journalarticle WHERE journalArticle.getResourcePrimKey() = asset.getClassPK())


AND then, do a reindexing, your imported articles will appear properly sorted (it's what we are doing right now).

But I think that is a moot point until they also resolve the https://issues.liferay.com/browse/LPS-42802 issue, because even if you see your imported articles properly sorted, the new ones you create will not be, and you would be at square one again.

In order to see the new content properly ordered we added a listener on the asset entry, like:

 1@Override
 2public void onBeforeUpdate(AssetEntry model) throws ModelListenerException
 3{
 4try   
 5{
 6if(JournalArticle.class.getName().equals(model.getClassName()))
 7{   
 8JournalArticle journalArticle = JournalArticleServiceUtil.getLatestArticle(model.getClassPK());
 9if(journalArticle.getDisplayDate().after(new Date()))
10{ model.setPublishDate(null); }
11else
12{     model.setPublishDate(journalArticle.getDisplayDate()); }
13}
14}
15catch (Exception e)
16{ log.error("[onBeforeUpdate]", e); }
17}
18}


And event if it's working, it doesn't solve all the cases.
juan meza
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date"
25 février 2014 08:20
Réponse

juan meza

Rang: Regular Member

Publications: 111

Date d'inscription: 6 janvier 2014

Publications Récentes

im having this issue too
James Falkner
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date"
26 février 2014 07:27
Réponse

James Falkner

LIFERAY STAFF

Rang: Liferay Legend

Publications: 1361

Date d'inscription: 17 septembre 2010

Publications Récentes

Melvin Williams:
When will this issue be solved? I spent hours writing a program that imports my contents from an old intranet keeping time-stamps. And now they are unordered. That's really annoying.


Hey Melvin, this should be resolved in a planned upcoming 6.2 CE GA2 release, slated for next month. It's already been fixed in master (you may be interested in trying it out using the latest master nightly build).
Melvin Williams
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date"
6 mars 2014 04:21
Réponse

Melvin Williams

Rang: New Member

Publications: 20

Date d'inscription: 2 octobre 2013

Publications Récentes

Hi James,

thanks for the link. Glad to here that the problem is solved now.
Muhammad Umer Zubair
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date"
12 mars 2014 03:53
Réponse

Muhammad Umer Zubair

Rang: New Member

Publications: 18

Date d'inscription: 31 décembre 2013

Publications Récentes

James Falkner:
Melvin Williams:
When will this issue be solved? I spent hours writing a program that imports my contents from an old intranet keeping time-stamps. And now they are unordered. That's really annoying.


Hey Melvin, this should be resolved in a planned upcoming 6.2 CE GA2 release, slated for next month. It's already been fixed in master (you may be interested in trying it out using the latest master nightly build).


Hi James,

Can you please update, how to fix this problem in current release of 6.2. Or, you can advise custom application display templates (ADT) code to order the web content on Publish/Modified date.

Thanks
Juan Gonzalez
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date"
12 mars 2014 03:56
Réponse

Juan Gonzalez

LIFERAY STAFF

Rang: Liferay Legend

Publications: 2341

Date d'inscription: 28 octobre 2008

Publications Récentes

Just search the LPS code (LPS-XXX) James told you in git (maybe you want to clone thee liferay github repository).

And then you can patch your code with those changes. There are many git tutorials for proceeding with these tasks.
Sergio Cabedo
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date"
13 mars 2014 04:21
Réponse

Sergio Cabedo

Rang: New Member

Publications: 3

Date d'inscription: 30 mai 2013

Publications Récentes

Hi

I am working with Liferay 6.2 CE GA1 with Asset Publisher portlet and I have the same problem. I have run UPDATE stament that says Marina Batet, the mistake persists.

Any idea to fix it?
Marina Batet
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date"
18 mars 2014 06:02
Réponse

Marina Batet

Rang: New Member

Publications: 24

Date d'inscription: 18 avril 2011

Publications Récentes

Liferay 6.2 CE GA1 does not sort properly by date. You need to download & build the master version or wait for the 6.2 CE GA2 release. But even with the current master version, in my opinion the problem is not totally resolved (when you change the display date of a web content to a future date, the asset entry it's not properly updated and as a result, you don't see the content properly sorted).
Melvin Williams
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date"
18 mars 2014 22:19
Réponse

Melvin Williams

Rang: New Member

Publications: 20

Date d'inscription: 2 octobre 2013

Publications Récentes

The version in the master says 7.0.0. Did I checkout the wrong branch? When will GA2 be released?
Muhammad Umer Zubair
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date"
21 mars 2014 02:58
Réponse

Muhammad Umer Zubair

Rang: New Member

Publications: 18

Date d'inscription: 31 décembre 2013

Publications Récentes

Juan Gonzalez:
Just search the LPS code (LPS-XXX) James told you in git (maybe you want to clone thee liferay github repository).

And then you can patch your code with those changes. There are many git tutorials for proceeding with these tasks.



Hi Juan,

Can you explain it bit more, as i am new to git and cloning/patching liferay against LPS code.

Your help will be highly appreciated in this regard.

Thanks in advance.
Juan Gonzalez
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date"
21 mars 2014 03:05
Réponse

Juan Gonzalez

LIFERAY STAFF

Rang: Liferay Legend

Publications: 2341

Date d'inscription: 28 octobre 2008

Publications Récentes

Hi Muhammad,

you don't have to worry about this issue anymore.

Next Liferay version (where this issue is fixed) will be released very soon.
robin thakur
RE: Asset Publisher doesn't sort correctly by "Publish Date", "Create Date"
11 juin 2014 23:52
Réponse

robin thakur

Rang: Regular Member

Publications: 127

Date d'inscription: 9 janvier 2014

Publications Récentes

Hi

I am using liferay 6.2.0 CE GA1 but I am not getting configuration->Grouping and Ordering option in my portal.
Can u tell how do i get this option for my asset publisher.


Thanks