9

If I am using DD4T or MVC framework, what are the options integrating smarttarget? Obviously we won't to be able to use the TBBs.

10

There's no reason why you still can't use the TBB's. I'd recommend using them in the event you wish to move away from the DD4T mvc framework in the future.

Simply output your content as REL and transform the TCDL tags yourself when you return your content from the broker.

  • This can only be done through custom Java code though right? – Neil Nov 20 '13 at 10:17
7

You can also query Fredhopper directly via the query web service -passing the various facets you wish to query on.

Fredhopper will return results that contains several components such as a breadcrumb, facetmap, item lister and promotions.

You can then render these as you wish.

Cheers

  • 3
    You absolutely can, but I would consider that a last resort since you lose the functionality added by SmartTarget. An example of that would be the filtering by region and maximum items - you'd need to implement that yourself then. The tags and controls (and the API) are there to help you query Fredhopper easily and display the results correctly. It's rare that you would need to go directly to Fredhopper. – Peter Kjaer Nov 20 '13 at 9:04
  • Not sure about regions, but isn't max items just "fh_view_size"? Ultimately filtering can be achieved using the Fredhopper Query Language can't it - I agree though that tags and controls make this easier. – Neil Nov 20 '13 at 9:24
  • Not exactly - fh_view_size is the number of items per page and I think it's only when displaying items (so not the ones returned from Promotions). The way the MaxItems property works in SmartTarget is restricting the total number of CPs to display across all returned Promotions. – Peter Kjaer Nov 20 '13 at 9:27
  • Also you cannot get Fredhopper to filter on the regions (it's a custom field). Anyway, as I said there might be reasons to bypass SmartTarget in some specific cases but I would first exhaust all over options. SmartTarget is essentially an integration with Fredhopper, so if you bypass it you're just making your own integration :) – Peter Kjaer Nov 20 '13 at 9:33
  • Perhaps I need to read up on REL and TCDL a little more - we're close to delivering a DD4T/MVC site where SmartTarget was installed and we went with querying FH directly -admittedly we weren't doing regions/promotions/campaigns more faceted content so just needed to get the content out. – Neil Nov 20 '13 at 9:41
5

You can output the TCDL tags yourself which the Deployer transforms to your site's target language or render the target language tags in your template directly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.