Indexing auto-generated content

Permalink
One of my templates/page_types programatically retrieves the child pages one level down and spits out a link and an area (with a uniquely named area handle) for each. The areas then have content blocks added the normal way through the CMS.

After spending an hour searching for all the steps to ensure proper site indexing I have it working, except for this last issue.

I double-checked the /index.php/dashboard/sitemap/search/manage_index/ list and the auto-generated areas are in the list so they should be indexed along with everything else, but nothing will show up from those areas on the page_types in question.

My guess is that since the pages need to be accessed for the areas to be created each time (and to display their content blocks) that they are not getting indexed.

Am I S.O.L.?

Cheers :D

beebs93
 
Mnkras replied on at Permalink Reply
Mnkras
if the data is stored in the db, then it should index it, but as you said, it won't index non created content
beebs93 replied on at Permalink Reply
beebs93
The content is already in the database, so C5 must not like areas generated from a page list.
jordanlev replied on at Permalink Reply
jordanlev
A C5 block must explicitly tell the indexer what its content is for indexing, so even if a block is in an area that is being indexed it won't actually index anything for it without this.

The pages that your page_list is listing should be included in the index, so hopefully that is an acceptable solution. Otherwise you'd have to hack the page_list controller and add a getSearchableContent() function which outputs the page list's contents (not sure exactly how you'd do this though -- would require some serious php coding).