CMS Development

cstone
Gestionnaire de communauté
Gestionnaire de communauté

How do you customize the "Search Module" results - editing the script?

Résolue

HubSpot hosted our first ever CMS Developer AMA on July 25th 2018. This question was submitted and the first reply is what the panelist and audience chat responded with. (view the full AMA here)

--------------------------------------------

Could you show us some ways to play with the new "Search Results" module? Particularly, I am interested in ways to edit the script.

For example, how can I set a character limit for the result.title and result.description? (Screenshot attached) I used to rely on HubL's "trucatehtml" filter but it doesn't apply to this as the result are retrieved with JS. Any other JS trick to this module would be greatly helpful Smiley heureux

1 Solution acceptée
cstone
Solution
Gestionnaire de communauté
Gestionnaire de communauté

How do you customize the "Search Module" results - editing the script?

Résolue
5 Réponses
cstone
Solution
Gestionnaire de communauté
Gestionnaire de communauté

How do you customize the "Search Module" results - editing the script?

Résolue

henryd1
Membre

How do you customize the "Search Module" results - editing the script?

Résolue

Hey @cstone, thanks for sharing but it seems that the media was removed. Any clue where I can get some information on how to truncate search results in HS search results module?

 

Cheers!

0 Votes
Jsum
Conseiller clé

How do you customize the "Search Module" results - editing the script?

Résolue

@cstone Where do you find these video sessions?

0 Votes
jausura
Formateur inbound
Formateur inbound

How do you customize the "Search Module" results - editing the script?

Résolue

Hey @Jsum, those vids are snippets from the developer AMA on 7/25. The entire session can be found here. If you want to peruse the snippets by question, @cstone posted each of those in Community, so his last few posts are a good synopsis. Does that answer the question? Let me know if I misinterpreted... 

Jsum
Conseiller clé

How do you customize the "Search Module" results - editing the script?

Résolue

@jausura that is great, thanks. I didn't know this type of content was out there, I'm glad it was shared.

0 Votes