Jump to content
View in the app

A better way to browse. Learn more.

Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Pull Profile Field into Pages Field

Featured Replies

My site does a lot of news, and at the bottom of the news, I have a custom field set up to pull in a bio for the author.

Right now, that is simply a select box that you can select the author, and it pulls a simple preformatted HTML-based bio over (essentially, it is just using the standard select box custom field as intended. This works well, but it does leave room for error where one author can select the wrong author bio, and only admins can edit the bio for others.

What I would LOVE to do is have a custom profile field, where the user can create, edit, and format their author bio, and when they post news, it pulls that field into the news record. I feel like this is possible as the custom fields have all sorts of relations and features, but I have never found a real guide on how to use these.

Any help is appreciated.

In summary, I want to create a custom profile field called "Author Bio" that uses the standard editor to create the content. Then pull that content into a custom page's record field. Either via something like a Yes/No field that will display or not display the author bio, or simply added to always appear.

{{if $record->author()->contentProfileFields()['core_pfieldgroups_X']['core_pfield_Y']}}
{$record->author()->contentProfileFields()['core_pfieldgroups_X']['core_pfield_Y']|raw}
{{endif}}
  1. Get the group and field ID from the ACP.

  2. replace X and Y in my above code with the real IDs and insert this into your template

  • Author
50 minutes ago, Daniel F said:
{{if $record->author()->contentProfileFields()['core_pfieldgroups_X']['core_pfield_Y']}}
{$record->author()->contentProfileFields()['core_pfieldgroups_X']['core_pfield_Y']|raw}
{{endif}}
  1. Get the group and field ID from the ACP.

  2. replace X and Y in my above code with the real IDs and insert this into your template

Okay, like everything, I have overcomplicated it. I would like to use this in a Yes/No field. I tried this code, but it does not seem to pull the information and just makes a blank space. This is also he field URL: membersettings&controller=profiles&tab=profilefields&subnode=1&do=form&id=3

It does pull the <hr> line, so that is something.

{{if $formValue == "1"}}
    {{if $record->author()->contentProfileFields()['core_pfieldgroups_1']['core_pfield_3']}}
        <hr>
        <div class="author-info">
            <p>
                {$record->author()->contentProfileFields()['core_pfieldgroups_1']['core_pfield_3']|raw}
            </p>
        </div>
    {{endif}}
{{endif}}
  • 2 weeks later...

you gave me the code from yours from version 4 I have been trying to work on this, with no success. If you use a custom field from profiles, it will show everywhere. I thought about using a database but that won't work either.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.