core icon indicating copy to clipboard operation
core copied to clipboard

Copied Folders/FileAssets not indexed properly

Open DeanGonzalez opened this issue 13 years ago • 2 comments

This is follow up fix task for: https://github.com/dotCMS/dotCMS/issues/1685

The same problem as originally reported still exists:

1) Create an advanced template with the following code on it:

set($showSubgalleryTitle=false)

set($showPhotoTitle = false)

set ($thumbnailWidth = "150")

set ($thumbnailHeight = "150")

< h1> EXISTING assets</h1>

photoGallery("/resources/images")

<hr/>

< h1> COPIED assets</h1>

photoGallery("/images/icons/images")â

2) Creat an html page and use the advanced template... you will see the Existing Assets display images 3) Now copy the images folder in the resources folder and paste the images folder into the /images/icons folder 4) Now go back to your html page... the copied file assets should also be displaying now on the page but they do not unless you re-index... that is the bug. Please follow these steps exaclty to verify when applying the code fix.

Tested on master running dotCMS on postrgres.

DeanGonzalez avatar Dec 19 '12 15:12 DeanGonzalez

fixed it in previous commit.

ravit avatar Jan 09 '13 08:01 ravit

fixed issue was the reindexunderFolder method wasn't being used.

jtesser avatar Jan 09 '13 11:01 jtesser