cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

add ContentSlot to search result-page

Former Member
0 Likes
274

Hi there,

I´d like to add a contentSlot to the search result-page. In order to do that, I wanted to add a relation into 'ContentSlotForPage' the same way it´s done with e.g. the Homepage, ProductDetails-page...

I just can´t find any code on where it´s done bevore (only the search result-page. The others I find).

cheers

Raphael

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi Raphael

Here is the impex that might help you

$contentCatalog=apparel-deContentCatalog 
$contentCV=catalogVersion(CatalogVersion.catalog(Catalog.id[default=$contentCatalog]),CatalogVersion.version[default=Staged])[default=$contentCatalog:Staged]
INSERT_UPDATE ContentSlotForPage;$contentCV[unique=true];uid[unique=true];position[unique=true];page(uid,$contentCV)[unique=true][default='search'];contentSlot(uid,$contentCV)[unique=true];;;
;;searchPageContentSlotForPage;;;search-content-slot;;;

Answers (0)