We have a CB profile tab of type Custom HTML. Included in the HTML are several CB and CBSubs substitutions (First Name, Last Name, Username, Subscription Start Date, Subscription Expiry Date, etc.). Access to this tab is limited to connected users (and the profile user). We are trying to find a way to allow viewing users (connected users) to print the contents of just that tab.
We have seen a few posts that seem to want something similar, but we are unable to apply the hints in those posts to achieve our goal.
We tried creating a content article with the same HTML/CB substitutions and then putting that into the tab, hoping that the print button associated with an article would do what we need. And that works IF the user clicking the print button is the user that the profile is associated with. However, if the viewing user (connected user) clicks the print, button, then, as would be expected, the substitutions in the new print window come from the viewing user and not the displayed user. And, as you have explained in other posts, changing the substitutions to include user="#displayed" does not work as there is no "displayed" user in a new window that is then "outside" of the CB profile.
We also saw reference to using CSS based on
Code:
@media print {
/* any CSS here will only apply when printing the page */
}
but we don't understand how to combine this approach with adding a print button or link to the HTML inside the Custom HTML tab contents.
Is there some way to achieve what we are trying to do?