vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced Dynamics > vBa Dynamics v2.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 04-15-2011, 10:29 AM
1kether1 1kether1 is offline
Member
 
Join Date: Feb 2006
Posts: 63
Question Arrange display of Custom Fields ?

Is there a way to arrange the display of custom fields in Dynamics?

For example:

Right now I have created 10 custom fields. I see the option to display either above the message or below the message. And The output looks like this currently with the option above the message selected:

Title of Entry
Custom Field 1
Custom Field 2
Custom Field 3
Custom Field 4
Custom Field 5
Custom Field 6
Custom Field 7
Custom Field 8
Custom Field 9
Custom Field 10
Message Text
attachments


What I would like to do is change the way the above fields are displayed and add in some Section dividers like below.



.............................Title of Entry
.............................Custom Field 1

SECTION NAME 1---
Custom Field 2 ............................. Custom Field 3
Custom Field 4 ............................. Custom Field 5

SECTION NAME 2--
Custom Field 6
---Custom Field 7
---Custom Field 8

SECTION NAME 3--
Custom Field 9
Custom Field 10

SECTION NAME 4--
Message Text
attachments


Is this possible? How would I go about doing this?


Thanks.
Kether
__________________
Reply With Quote
  #2  
Old 04-15-2011, 02:53 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default

You could look in your 'ADV_DYNA_SHOWENTRY' template for this code:
Code:
			<vb:if condition="$customfieldbits['above_message']">
				<div style="padding-bottom: {vb:stylevar padding}">
					<vb:each from="customfieldbits[above_message]" value="field">
						<dl class="stats">
							<dt>{vb:raw field.title}</dt>
							<dd>{vb:raw field.value}</dd>
						</dl>
					</vb:each>
				</div>
			</vb:if>
And then add something like the code in red below:
Code:
<vb:if condition="$customfieldbits['above_message']">
	<div style="padding-bottom: {vb:stylevar padding}">
		<vb:each from="customfieldbits[above_message]" value="field">
		
			<vb:if condition="$field['fieldid'] == 1">
				<div>Section Name 1</div>
			<vb:elseif condition="$field['fieldid'] == 3" />
				<div>Section Name 2</div>
			<vb:elseif condition="$field['fieldid'] == 5" />
				<div>Section Name 3</div>
			</vb:if>

			<dl class="stats">
				<dt>{vb:raw field.title}</dt>
				<dd>{vb:raw field.value}</dd>
			</dl>
		</vb:each>
	</div>
</vb:if>
And that would help split them up into sections. It would be possible to put them in a <table> and have rows of 2, but that would get a little more complex.
__________________
Frequently Asked Questions
CMPS Users Manual

For vBadvanced software assistance, please use the support forums.
Unsolicted PMs, IMs, and email will not be responded to.
If you have a non-software related question or problem with your account, please submit a support ticket.
Reply With Quote
  #3  
Old 04-15-2011, 06:25 PM
1kether1 1kether1 is offline
Member
 
Join Date: Feb 2006
Posts: 63
Default

Brilliant. Thank you for your help, Brian.

Kether
__________________
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Search custom fields & Display results modules dinatius Module & Modification Discussion & Requests 0 02-06-2008 11:52 AM
Double custom fields display on showentry kirkus-tat Troubleshooting & Problems 2 11-05-2007 01:06 PM
Custom Fields Display Order? edfig Troubleshooting & Problems 9 09-21-2007 02:17 PM
Upcoming events: display custom calendar fields? trgreen "How Do I..." Questions 1 06-16-2007 10:01 AM
Arranging display of custom fields Polo "How Do I..." Questions 7 02-03-2005 10:47 AM


All times are GMT -4. The time now is 03:34 AM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.