Is there a way to update public profiles to include phone numbers? If so, what template/file must you make the change to - I'm not having success in _signup_show.html. Our directory is a physicians listing and it would be nice to be able to include this information.
Official response from Andrea Magana
You will need to go to profiles_show_wide.html or profiles_show.html ( depending on whether or not the supporter nav is turned on) and use the liquid variable: {{ profile.phone }}
Share this post
Showing 10 reactions
Sign in with
It looks like it had something to do with the theme you’d created. Even though you were using the sidebar, profiles_show.html was the one that was actually displaying for profiles on your site. I checked it out and it should be working for you now!
Let me know if you have any additional questions!
1 {% include “breadcrumbs” }
2
3 { if page.headline.size > 0 }
4 <h2 class=“headline”>{{ page.headline }}</h2>
5 { endif %}
6
7 <span> Member Type: {{ profile.membership_level_name }} </span>
8 <span> Membership Started: {{ profile.membership_started_at | date: ‘%B %d, %Y’ }} </span>
9 <span> Membership Expires: {{ profile.membership_expires_at | date: ‘%B %d, %Y’ }} </span>
10
11 <div id=“content”>
</div>
It looks like it’s not showing up because you put the code in an IF statement for page.headline. I’d put it after the endif so around line 7 or so, rather than between and it should work!
Let me know if you have any additional questions!
{% include “breadcrumbs” %}
{% if page.headline.size > 0 }
<h2 class=“headline”>{{ page.headline }}</h2>
<span> Member Type: {{ profile.membership_level_name }} </span>
<span> Membership Started: {{ profile.membership_started_at | date: ‘%B %d, %Y’ }} </span>
<span> Membership Expires: {{ profile.membership_expires_at | date: ‘%B %d, %Y’ }} </span>
{ endif %}
You were pretty close! You’re putting it in the right place profiles_show_wide.html, you just needed to use the prefix “profile” instead of “request.current_user” in your liquid drops. So your code should actually look like the code I’ve included below:
<span> Member Type: {{ profile.membership_level_name }} </span>
<span> Membership Started: {{ profile.membership_started_at | date: ‘%B %d, %Y’ }} </span>
<span> Membership Expires: {{ profile.membership_expires_at | date: ‘%B %d, %Y’ }} </span>
Let me know if you have any additional questions!
<span> Member Type: {{ membership_level_name }} </span>
<span> Membership Started: {{ request.current_user.membership_started_at | date: ’%B %d, %Y ’ }} </span>
<span> Membership Expires: {{ request.current_user.membership_expires_at | date: ’%B %d, %Y ’ }} </span>
You can show signup phone numbers on your public profiles like this:
File to edit: profiles_show.html OR profiles_show_wide.html
(You would edit profiles_show.html if you do NOT have the sidebar enabled in your site settings, if you DO have the sidebar enabled, use profiles_show_wide.html)
Code to add: <span> Phone Number: {{ profile.phone_number }} </span>
That should pull in the phone number that is in the person’s profile in your nation! (Note: this will pull in whatever number is listed as “Home phone”, there are different liquid variables for other phone number types)