Jahia in English > Create a custom...

0 (0 Good)
0 (0 Bad)

Create a custom link in Jahia

by  dclarence »  2012/12/12 09:43

I would like to know if exist a component to create a simple link in Jahia. By simple link, I mean the equivalent of <a href="#"> where I can precise a the href, alternate text and the text inside the a tag and also a css tag. It seems that Jahia doesn't offer this possibility. I have 2 solutions in mind :

1) The first one is to use a Rich Text with a view of type Link. But the problem with that is I cannot add custom css in my link (or maybe go to the source and add my custom link) 

2) The second step is to create a custom component for adding links in my project and precise . This seems to be fastidious. 

3) I also saw the NodeLink component but I dont see how to use it and it's been used in Jahia.

What is the best way to achieve that? Forget to say I am a newbie in Jahia. 

 

In fact, my real question is if I would like to apply a custom css to a component in Jahia, how can I achieve that. 

Thanks for your reply

  (dclarence)

Number of messages  2
Registration date
0 (0 Good)
0 (0 Bad)

Re: Create a custom link in Jahia

by  glucazeau »  2012/12/12 13:33

Hello Dimitri,

when you add a link into a rich text component you should have an "Advanced" tab on the link panel that allows you to set every attribute of the link, including the CSS class.

To manage your custom styles on your component, I'd suggest you to create a set of templates and manage your CSS into it.

Regards,

Guillaume

  • Re: Create a custom link in Jahia
    2012/12/12 13:33

    glucazeau <p> Hello Dimitri,</p> <p> when you add a link into a rich text component you should have an &quot;Advanced&quot; tab on the link panel that allows you to set every attribute of the link, including the CSS class.</p> <p> To manage your custom styles on your component, I&#39;d suggest you to create a set of templates and manage your CSS into it.</p> <p> Regards,</p> <p> Guillaume</p>

  • Number of messages  95
    Registration date Dec 12, 2012
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page