Anyone ever figure out how to pull fr_html from a custom teamraiser page?

Options
Has anyone ever figured out the syntax to pull the HTML area of a custom teamraiser page? Seems like [[S47:0:fr_informational:6:fr_html]] should be pretty close, if only there were a way to feed the SID to it. Or maybe there's an undocumented C tag?


The goal would be to have a page wrapper that spits out a default block of content on the TR entry page, but offer the ability for non-admins to override things on a per-event setting by mussing with a custom page. We've gotten this effect in the past by rolling a single reusable filled with U0 tags for each possible override. But that means adding session variables I'd rather save for more important things, and the non-geeks have to grep through a big list of ugly code.


For example, say I've got a FAQ section on the entry page. Normally I might make a PageBuilder entry called reus_default_faq with the default content, and then add...
[[?xx::x[[T9:[[S80:faq_override]]]]x::[[S51:reus_default_faq]]::[[S80:faq_override]]]]

...to the page wrapper. Admins could customize a given event by opening the "settings_custom_frid_XXXX" PageBuilder page, finding where it says

[[U0:faq_override= ]]

...and adding their custom code there. Not great, plenty breakable, but it's worked so far.


A better system would be if I could make create a custom page called "FAQ section" in the teamraiser blueprint (its only content being [[S51:reus_default_faq]] ), and then replace my conditional in the page wrapper with the mystery tag here. Any one-off event can just go open the teamraiser's custom page, append or replace the content, and we're good to go. I've removed the conditional, the session tag, and now all our one-offs live inside of the corresponding child event. And I've still got a series-wide editing point if we have some major development that needs to be mass-updated.
Tagged:

Comments

  • It is not possible to pass a specific custom page ID to the S47 tag, so there's no way to embed a custom page's content in another page with an S-Tag. What you can do, though, is use JavaScript to retrieve the custom page content, then insert it into the page where you see fit. An example is https://www2.jdrf.org/site/TR?fr_id=8212&pg=entry. The "How to Get Started" and "Fundraising Ideas" tabs are custom pages, pulled into the greeting page with AJAX.
  • Thanks, Noah. And wow, JDRF's site is incredible!

Categories