Build with IDX Broker Forums General Discussion Inserting a custom web component into IDX Home site

Viewing 1 reply thread
  • Author
    Posts
    • Adam Poznanski
      Participant
      Post count: 2

      I would like to include a custom component in the details page of an IDX home site. This component would use the web component syntax

      <script type="module" href="https://path.to/your/component"></script>
      <web-component-syntax></web-component-syntax>

      Im a novice at php and would like to be able to add a to the twig template so I can skip the php all together and do the heavy lifting in js. Is this possible in twig/php and is it advisable

      0 ratings, 0 votes0 ratings, 0 votes (0 rating, 0 votes, rated)
      You need to be a registered member to rate this post.
      Loading...
    • Nick Leech
      Keymaster
      Post count: 179

      What is the clients domain name? For IDX Home sites you do not have access to the php files nor can they use partner custom templates.

      0 ratings, 0 votes0 ratings, 0 votes (0 rating, 0 votes, rated)
      You need to be a registered member to rate this post.
      Loading...
      • Adam Poznanski
        Participant
        Post count: 2

        In this situation we are acting both as the client and the developer. We are hoping to build an extension software using the IDXBroker api to go along with the idx home site. This application would be linked into by a modified details. The details page would contain the custom web component this web component would capture the mls ID of the details page and forward the user to our custom app. i.e. <a href="https://our.site/MLS_ID"></a>

        0 ratings, 0 votes0 ratings, 0 votes (0 rating, 0 votes, rated)
        You need to be a registered member to rate this post.
        Loading...
      • Nick Leech
        Keymaster
        Post count: 37

        Adam, If the client is an IDX Home client they then cannot use Partner Custom Templates at the moment so the only way to accomplish this would be through JS in the subheader.

        If MLS_ID is referring to the Listing ID then it should be possible to capture that information through the listing on the page, the listing ID in the URL or via the dynamic variable {{listingID}} .

        0 ratings, 0 votes0 ratings, 0 votes (0 rating, 0 votes, rated)
        You need to be a registered member to rate this post.
        Loading...
Viewing 1 reply thread
  • You must be logged in to reply to this topic.