Why NewsPublisher Wouldn't Show Tabs (For Me)

For a couple days, I’ve been trying to determine why NewsPublisher would not generate tabs, with relevant options enabled via the snippet’s tab parameters.

The issue turned out to be the use of a space between words within a tab title.

For example, a tab is named “Tab-One” is fine. A tab entitled “Tab One”, not so much.

Bug or feature? Perhaps the heart of matter lies with tabs configured via JSON. Regardless, hopefully this can help others.


You should be able to fix this bug by changing the following line in the chunk “npTabsJsTpl” (in the manager)

to this:

var buttonClass = buttonPrefixClass + buttonName.replace(' ', '-'); /* criterion for filtering items */

That did the trick – thank you!