1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[PRE-SALES] Where to put the linksTemplate code??

Discussion in 'XenForo Pre-Sales Questions' started by Eric Winter, Feb 5, 2011.

  1. Eric Winter

    Eric Winter New Member

    I'm evaluating XenForo for a client, and I have to integrate XF with thirth party webapps.

    So I'm using the code below to add an tab to the navigation bar.

    Suppose I have this code:
    Code:
    static public function addNavbarTab(array &$extraTabs, $selectedTabId)
    {
            $extraTabs['info'] = array(
                'title' => new XenForo_Phrase('ragtek_infopage_navbartitle'),
                'selected' => ($selectedTabId == 'info'),
                'href'   => XenForo_Link::buildPublicLink('info'),
                'linksTemplate' => 'ragtek_infopage_navbar',
            );
        }
    }
    

    with this linksTemplate code:
    Code:
    <ul class="secondaryContent blockLinksList">
        <li><a href="{xen:link info/impressum}">{xen:phrase ragtek_infopage_impressum}</a></li>
        <li><a href="{xen:link info/privacy}">{xen:phrase ragtek_infopage_privacy}</a></li>
    </ul>
    

    Now where do I put the linksTemplate code?

    What should be the filename and extension?

    In which folder do I store the file?

    Thanks!
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    This is the pre-sales forum and not the best place for support.

    If you associate your forum account with your customer account, I can move this thread to a more appropriate forum: http://xenforo.com/customers/

    In addition, you have some formatting issues with your code making it difficult to see the content.
     
    Dean likes this.
  3. Eric Winter

    Eric Winter New Member

    You're right, Brogan. The code had syntax highlite color in it. I just corrected the formatting.
    Point is, I'm not a customer yet.
    I'm evaluating XenForo for a client who has a specific business application and needs integration with existing web apps.
    I'm testing the existing apps to see if I can tie time into XF.
    As I do not have posting permissions in support forums, I thought I asked it here.
    After all, it is a genuine pre-sales question in my humble opinion.
    Feel free to correct me if I'm wrong.

    Eric.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    If you're doing it on behalf of a client then they can add your forum account to their customer account which will then give you full access to all of the customer forums.
     
  5. ragtek

    ragtek Guest

    1. Say your client that he should associate your account http://xenforo.com/customers/forum-users
    2. May i ask who gave you this code / who's your client?
    AFAIK i never posted the complete code from my commercial add-on in publicity, so it would be interessting to know from where you have this snippat
    Code:
    <ul class="secondaryContent blockLinksList">
        <li><a href="{xen:link info/impressum}">{xen:phrase ragtek_infopage_impressum}</a></li>
        <li><a href="{xen:link info/privacy}">{xen:phrase ragtek_infopage_privacy}</a></li>
    </ul>
    
     
  6. Eric Winter

    Eric Winter New Member

    @Brogan:
    I am not a customer, yet. And my client is not a customer, yet, either.
    My client hired me to come up with a solution to upgrade outdated and user unfriendly web applications in a modern web 2.0-like user interface.

    As an example of how this interface might look, I demonstrated them your XenForo product.
    They we're thrilled about the UI. That was exactly what they were looking for.
    The UI, that is, not the product itself. Their application is another one.
    It is my task to come up with a solution to my client's problem of integrating their out-dated apps in a XF-like UI.

    In that capacity, I am your prospect client.
    As I see a possible solution to use XenForo as the core, I am evaluating XF in conjunction with the existing apps.
    I'm working on that right now, and I am not finished.

    And now I have this question which answer will determine if I should continue this project or drop it.
    If that isn't your typical pre-sales question, than what is?

    @ragtek:
    I am not going to tell you, or anyone else who my client is.
    I got your code from here, XenForo.com.
    Let me refresh your memory with this link:
    Code:
    http://xenforo.com/community/threads/navbar-linkstemplate.7803/
    
     
  7. Mike

    Mike XenForo Developer Staff Member

    Templates are created and managed via the admin CP. The name is based off the bit of code you pasted; there's no extension. You can see more information here: http://xenforo.com/community/threads/add-own-navigation-tabs.5265/

    To be fair, the specific things mentioned will make more sense when you can get into the code. It's very hard to answer a pre-sale question that talks about specific development stuff.
     
    Eric Winter likes this.
  8. ragtek

    ragtek Guest

    thx and sorry;)
     
  9. lightbox

    lightbox Active Member

    I really wonder how these 2 quotes relate.
    I've surely missed something.
     
    James likes this.
  10. Eric Winter

    Eric Winter New Member

    @Mike: Thanks Mike! That was what I needed to know, got it working.
     

Share This Page