Forum Discussion

leogomes's avatar
11 years ago

How can i edit a default Component?

Hello There,

 

One Question:

I can i edit a default component?

 

Many Thanks

  • No - you can't change in-built components, nor can you see the underlying code for them (most of them aren't written in FreeMarker like custom components are).

     

    Some of the components have undocumented parameters that allow some modifications. You can also sometimes use a combination of CSS and JavaScript to modify their appearance.

     

    If that doesn't solve the problem, you can either to write a custom component from scratch, or ask Lithium to implement something for you.

5 Replies

  • HaidongG's avatar
    HaidongG
    Lithium Alumni (Retired)
    11 years ago

    Hi leogomes, 

     

     no, you can't do that. OOTB components are not built with Freemarker, but mainly with Java, so they can't be exposed or updated.

     

    which default component are you trying to edit and what is your expected customization? we may be able to advise whether there is any configuration allows your change the behavior.

     

     

  • No - you can't change in-built components, nor can you see the underlying code for them (most of them aren't written in FreeMarker like custom components are).

     

    Some of the components have undocumented parameters that allow some modifications. You can also sometimes use a combination of CSS and JavaScript to modify their appearance.

     

    If that doesn't solve the problem, you can either to write a custom component from scratch, or ask Lithium to implement something for you.

  • NicoB's avatar
    NicoB
    Lithium Alumni (Retired)
    11 years ago

    Hi,

    the only option you have which doesn't involve engagement with our Professional Services team is to use the overriding feature offered by our platform which allows you to customize almost any component.

     

    Have a look a this lithosphere page to have an understanding of what the platform has to offer :

    http://lithosphere.lithium.com/t5/support-knowledge-base/Using-override-to-change-core-components/ta-p/61358

     

    I hope this helps.

     

    Thanks,

    Nico

  • nathan's avatar
    nathan
    Executive
    11 years ago

    There are a number of jQuery-based tag clouds available (just Google jQuery tag cloud). This one looks like it would do what you want:

    http://www.pritaeas.net/public/jquery/jquery.tagcloud.0.5.0/index.html

     

    You need to create custom component with a HTML list of the tags, with the appropriate weights specified as attribues. You can get the list of tags and weights via the REST API:

    http://lithosphere.lithium.com/t5/rest-api/bd-p/developers-rest-api?leaf-id=Community.tagging#Community.tagging.tags.all

     

    Once you've got the list, just add the jQuery library and the relevant function call to transform the list into the tag cloud.