Difference between revisions of "Linktree"

From Online Manual

Jump to: navigation, search
(Created page with "{{TOCright}} This is that thing that shows "My Community | General Category | General Discussion".. ==Create a linktree== SMF nearly always loads a linktree. Usually you would ad...")
 
 
Line 4: Line 4:
 
SMF nearly always loads a linktree. Usually you would add an item to it.
 
SMF nearly always loads a linktree. Usually you would add an item to it.
 
=== Definitions ===
 
=== Definitions ===
// Load up the linktree!
+
{{code|1=
$context['linktree'][] = array(
+
// Load up the linktree!
 +
$context['linktree'][] = array(
 
   'extra_before' => $txt['calendar'],
 
   'extra_before' => $txt['calendar'],
 
   'url' => $scripturl . '?action=calendar',
 
   'url' => $scripturl . '?action=calendar',
 
   'name' => $txt['calendar'],
 
   'name' => $txt['calendar'],
 
   'extra_after' => $txt['calendar'],
 
   'extra_after' => $txt['calendar'],
);
+
);
 +
}}
  
 
{{Developing SMF}}
 
{{Developing SMF}}

Latest revision as of 17:32, 1 February 2014

This is that thing that shows "My Community | General Category | General Discussion"..

Create a linktree

SMF nearly always loads a linktree. Usually you would add an item to it.

Definitions

// Load up the linktree!
$context['linktree'][] = array(
  'extra_before' => $txt['calendar'],
  'url' => $scripturl . '?action=calendar',
  'name' => $txt['calendar'],
  'extra_after' => $txt['calendar'],
);