Message Boards

Structures and Templates not deploying in Resources Importer

Mashuk Choudhury, modified 3 Years ago.

Structures and Templates not deploying in Resources Importer

Junior Member Posts: 33 Join Date: 1/31/14 Recent Posts

Hi,

I have added a number of structures and templates to the resources-importer section of a theme and when I try to deploy it to our dev environment the structures and templates are not appearing in the site. It did seem to work once but subsequent deploys which included additional structures/templates have not worked. However the css and js in the theme are deploying fine. I have refreshed the cache etc but to no effect.

When I deploy it to my local machine it does however work.

I have followed the example as described in the following page:

https://help.liferay.com/hc/en-us/articles/360017883012-Importing-Resources-with-a-Theme 

In the liferay-plugin-package.properties, I have set the following properties:

resources-importer-target-class-name=com.liferay.portal.kernel.model.Group
resources-importer-target-value=Global
resources-importer-developer-mode-enabled=true
resources-importer-update-mode-enabled=true
resources-importer-append-version=false

We are currently using Liferay 7.3.5 GA6 CE, with a mysql database and deploying to a tomcat app server. 

Would appeciate any advice or assistance.

Many Thanks

Mashuk

thumbnail
Eric D, modified 3 Years ago.

RE: Structures and Templates not deploying in Resources Importer

Junior Member Posts: 55 Join Date: 3/25/16 Recent Posts

Hi Mashuk,

I have done this on a 7.3.4 GA5 Project, it works.

Here you are importing in the Global Site, I have done this on 7.2 but not in 7.3, I think it works too. But in 7.2, I have a problem because the templates are created on database but I do not see them in the screens.

You have to do a reindex of the ElasticSearch the first time, after the next deploiments it will works.

But if you add a new template, structure or template, you have to reindex again.

 

Hope that will help you,

Eric.

Mashuk Choudhury, modified 3 Years ago.

RE: RE: Structures and Templates not deploying in Resources Importer

Junior Member Posts: 33 Join Date: 1/31/14 Recent Posts

Hi Eric,

Thanks for your suggestion. I did do a re-index of Elasticsearch and the new structures and templates still do not appear. In the startup log I found the following entry

com.liferay.site.navigation.exception.NoSuchMenuException: No SiteNavigationMenu exists with the primary key 434028

I wonder if this has anything to do with it and whether I need to add the sitemap.json with a barebones layout? We have used resources-importer in Liferay 7.1 with no issues and we have not used sitemap.json.

Thanks