Jump to:

23377 Posts in 18296 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » BB code content links

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 850 Views
  • Bambii7
    Avatar
    Community Member
    254 Posts

    BB code content links Link to this post

    Hi All,
    I've got a complex question for ya (well complex to me)

    In the process of rebuilding an old site, and taking advantage of all the cool new features within SS.

    The client has been entering links to other pages on the site in the content area. And I see one link appearing as kiwiway.info/[sitetree_link id=765]
    I noted this in the blog when nested urls become available. Through this method the page slug/url can update and not break the links (very cool).

    Does anyone know why is this one is not rendering? You can view it on the demo site here http://kiwiway.info/packages/package-touring/new-zealand-north-island-packages/northern-escape-5-days/ And it's on the little gray button labeled accommodation choices.

    Cheers,
    Lex

  • Willr
    Avatar
    Forum Moderator
    5490 Posts

    Re: BB code content links Link to this post

    These aren't bbcode passages these are 2.4's new shortcodes. SS will rewrite the shortcodes based on the function and name of the code - in this case a function called sitetree_link which creates the link.

    The template should by default run shortcodes on $Content, are you doing anything custom with that page which would affect it (Such as overloading the Content() function)?

  • Bambii7
    Avatar
    Community Member
    254 Posts

    Re: BB code content links Link to this post

    Thanks for your reply Willr.
    I didn't know how to refer to the new short link codes, so I just called them bbcode links

    Na, I'm not doing anything custom with that page content. The other links on that page (also placed in the content) are displaying fine. It's strange, maybe its malformed. A week or two ago there was one page that the client had managed to get over 10,000 lines of jibberish into (mostly non breakable spaces and line breaks). There maybe be a plugin on their browser interfering with the code.

  • Willr
    Avatar
    Forum Moderator
    5490 Posts

    Re: BB code content links Link to this post

    I don't think it would be their browser. You could also try redoing the link or republishing the page and see what happens.

  • Bambii7
    Avatar
    Community Member
    254 Posts

    Re: BB code content links Link to this post

    A quick note, the user got in there and reentered the link. All is pearly

    850 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.