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

Eric Winter

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!
 
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.
 
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.
 
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.
 
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>
 
@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/
 
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.
 
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.

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