Details_sidebar

Looking for information on:

<xphp var="details_sidebar"/>

but didn’t find anything in the docs. Is there a way to customise what is output by this call?

Thanks,

-= G =-

Hi G,

Sure thing, details_sidebar and details_body are two combined variables that get assembled for LiveWhale CMS Profiles based on the profile type editor – each field can get assigned to body, sidebar, unassigned, or never-display.

If you choose body or sidebar, it’ll get bundled into the correct variable with the format

<div class="profiles_field profiles_ID profiles_LOCATION_ID lw_profiles_TYPE">
	<h4 class="profiles_ID_header profiles_LOCATION_ID_header">FIELD NAME</h4>
	<div class="profiles_content">
		FIELD VALUE (or mailto: link if type=email)
	</div>
</div>

That piece isn’t customizable except via theme CSS (or, I suppose, the HTML could be customizable via a custom module). If you want more customization, the best way to do it is to assign your profile fields to “unassigned”, and then you can use <xphp var="profiles_123"/> etc in your details template to place them wherever you want: that’ll get just the value of the saved field, no extra formatting.

The idea behind body/sidebar is for non-developers to be able to have some control over their profile displays without needing to involve an HTML themer from their team. They can simply assign a new field to body or sidebar and, if that’s included in the profile details template, it’ll get added right away with that prescribed HTML. Hope this helps!