How to call board in display template?

Started by Mick., August 01, 2018, 08:05:43 AM

Previous topic - Next topic

Mick.

Quote from: Dhayzon on August 01, 2018, 03:35:07 PM
it's simply


<a href="', $scripturl, '?board=', $context['current_board'], '">', $context['jump_to']['board_name'], '</a>

Thank you! that worked!  Geez, i did it in my front page with Simple portal using just this ', $article['board']['link'], '  i figure it would be almost the same with SMF lol i was wrong.  Thank you much guys!


https://www.idesignsmf.com/index.php/topic,536.0.html

Mick.

Never thought of using $global_info either. learned something new :)

Kindred

I wouldn't use the jump_to...


(and yes, that is the correct way to globalize)
I'd do this....

<a href="', $scripturl, '?board='. $board_info['id'] . '">'. $board_info['name'] . '</a>
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Mick.

Quote from: Kindred on August 01, 2018, 03:43:17 PM
I wouldn't use the jump_to...


(and yes, that is the correct way to globalize)
I'd do this....

<a href="', $scripturl, '?board='. $board_info['id'] . '">'. $board_info['name'] . '</a>

Done.  Thank you!!

Advertisement: