• Créditos da HubSpot: Desbloqueie ferramentas poderosas para o crescimento

    Dúvidas?

CMS Development

IAM
Colaborador(a) | Parceiro
Colaborador(a) | Parceiro

Linking a whole module

resolver

Is there a way to link an entire module to a page? If I go into the edit template area and have a module I would like to link to a page when it is clicked on.. here is the link to where I am trying to achieve this. http://www.indres.com/-temporary-slug-e8695c22-9a78-40ac-a6ca-581bf9f38268?hs_preview=dFDWczkq-53115...

 

There are 4 boxes under "OUR SERVICES" and I have the text and image linking to a page, but I'd like to link the entire white box. I thought about making a CTA image, but then I lose the hover effect. 

0 Avaliação positiva
1 Solução aceita
ashleyidesign
Solução
Top colaborador(a) | Parceiro
Top colaborador(a) | Parceiro

Linking a whole module

resolver

One way to do this is to wrap the module in custom HTML in the design manager and insert the link there. The issue with doing that is if you ever needed to change the link it needs to be done in the template instead of on the page. I'm generally against editing content in the template itself. What would also work, which is more flexible for future use, is creating a custom module that you can then wrap in a link tag and edit on the page itself.

----------
Former HubSpotter turned Freelancer
Inbound Marketing Consulting and HubSpot CMS Expert

Exibir solução no post original

5 Respostas 5
ashleyidesign
Solução
Top colaborador(a) | Parceiro
Top colaborador(a) | Parceiro

Linking a whole module

resolver

One way to do this is to wrap the module in custom HTML in the design manager and insert the link there. The issue with doing that is if you ever needed to change the link it needs to be done in the template instead of on the page. I'm generally against editing content in the template itself. What would also work, which is more flexible for future use, is creating a custom module that you can then wrap in a link tag and edit on the page itself.

----------
Former HubSpotter turned Freelancer
Inbound Marketing Consulting and HubSpot CMS Expert
linusgrundstrom
Membro

Linking a whole module

resolver

Sorry for jumping in to this thread but how would that code look?

jjordanenvy
Participante

Linking a whole module

resolver

Thanks Ashley - I had the same question, and your explanation did the trick. Much appreciated!

0 Avaliação positiva
Jsum
Conselheiro(a) de destaque

Linking a whole module

resolver

Hey @ashleyidesign,

 

I just wanted to point out that you can use HubL in the wrapper code area for any given module so you could actualy assign the link href to a text module with no_wrapper set to True and the links would be editable in the page editor.

IAM
Colaborador(a) | Parceiro
Colaborador(a) | Parceiro

Linking a whole module

resolver

Thank you! I ended up just making them custom modules and linking the entire div.

0 Avaliação positiva