Forum Discussion

zsnemeth's avatar
zsnemeth
Helper
12 years ago

Create new component based on existing one

Hi,

 

I woulkd like to create a custom component 'Featured threads' which is very similar to the existing component 'Recent Topic', only the REST endpoint is different. How can I look into an existing component`s source code? If I have the source of the 'Recent topics', I could easily write my own component.

 

Thanks!

3 Replies

  • zsnemeth's avatar
    zsnemeth
    Helper
    12 years ago

    So this means, if I want to create the exact same component as an existing one, where I only want to change the rest call, everything else stays the same (markup, css, functionality), I have to (re)implement the existing component by myself? 

  • dementad's avatar
    dementad
    Genius
    12 years ago

    It may be an invalid assumption that Lithium has the component coded with a RESTAPI call. It is quite likely, however, that someone else on the forum has done something similar and you can build on that.

     

    This article might be valuable to you. Does this do what you want?