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

How can I put all nodes listed in <head>?

Marcus

Well-known member
#1
I want to put all forums (nodes) listed in <head> for my doubleclick integration.

Example: A user is browsing this thread. This would result in:
<head> (...) <tag="Forums"><tag="Development Help"><tag="XenForo Development Discussions"> (...) </head>

I also need to normalize all the node titles so that I strip all non-a-Z0-9 characters. Café will be normalized into Caf.

Thanks!

What I found: nodeBreadCrumbs is an array of these forums.
 

Marcus

Well-known member
#3
Yes that works pretty nice. Is there a way to use string functions within the templates to only fetch the left 30 characters of a string?
 

James

Well-known member
#4
There is a word trim function but I can't remember it off the top of my head and I'm mobile, so ill check tomorrow and report back. In the mean time, check the news_feed_global template, I'm sure its used in there to trim the thread previews.
 

James

Well-known member
#5
Yeah, there are a couple of word trim functions actually... though none of them seem to trim full words.

{xen:helper wordtrim, $words, trimlength}
{xen:helper snippet, $words, trimlength}
{xen:string wordtrim, $words, trimlength}