RE: Web Contents do not appear on Web Content Display Configurator.

Juan Vaca, modified 6 Years ago. New Member Posts: 10 Join Date: 8/23/10 Recent Posts
Hi everybody.  I just migrated from Liferay 6.2 to Liferay 7.0.  So far Everything looks great. The site's theme still needs a couple of adjustments, but in general, everything looks great.

But now I have a problem.  The content of a page was expired, this page is using a Web Content Display, so I went to Configuration in order to select another web content, but in the list of contents, there are no contents listed. In the Web Content section of the site, there are many contents available.  This is also happening in every page of the site that is using a Web Content Display.

So how can I figure out what is happening, why there are no contents listed in the configuration of the Web Content Display?
Vishnu S Kumar, modified 6 Years ago. Regular Member Posts: 131 Join Date: 7/28/17 Recent Posts
Did you tried a full search re-index from server adminstration ?
Juan Vaca, modified 6 Years ago. New Member Posts: 10 Join Date: 8/23/10 Recent Posts
Vishnu S Kumar:
Did you tried a full search re-index from server adminstration ?



My problem was solved.  Honestly, there was no problem.  The full search re-index toke several hours to finish.  So after the re-index process finished, all web contents were available again.  The first time I run the re-index process, I expected immediate results.  What I didn't know was that I have to wait until the process finished.

 

Thanks

Vishnu S Kumar, modified 6 Years ago. Regular Member Posts: 131 Join Date: 7/28/17 Recent Posts
Juan Vaca:
Vishnu S Kumar:
Did you tried a full search re-index from server adminstration ?



My problem was solved.  Honestly, there was no problem.  The full search re-index toke several hours to finish.  So after the re-index process finished, all web contents were available again.  The first time I run the re-index process, I expected immediate results.  What I didn't know was that I have to wait until the process finished.

 

Thanks

ok, That make sense. Happy to know that your problem has been solved. smiley

 
Amos Fong, modified 6 Years ago. New Member Posts: 10 Join Date: 8/23/10 Recent Posts
Juan Vaca:
Hi everybody.  I just migrated from Liferay 6.2 to Liferay 7.0.  So far Everything looks great. The site's theme still needs a couple of adjustments, but in general, everything looks great. But now I have a problem.  The content of a page was expired, this page is using a Web Content Display, so I went to Configuration in order to select another web content, but in the list of contents, there are no contents listed. In the Web Content section of the site, there are many contents available.  This is also happening in every page of the site that is using a Web Content Display. So how can I figure out what is happening, why there are no contents listed in the configuration of the Web Content Display?


I found a way to make the web contents appear again.  Using a grovy Script

import com.liferay.portal.kernel.service.UserLocalServiceUtil
import com.liferay.journal.service.JournalArticleLocalServiceUtil


articles = JournalArticleLocalServiceUtil.getJournalArticles(1,999999)
out.println(articles.size());

for( i=0; i<articles.size();i++){
    
    article = articles[i]
    
    article.setTitle(article.getTitle() + " ");
    out.println("Article " + i + "Titulo --" + article.getTitle() + "--");
    JournalArticleLocalServiceUtil.updateJournalArticle(article)
}

 

After execution, all web contents showed up again