Hi everyone,
I am a bit stumped on how to display Smartprofile module data in a ajax tabbed format. I am working with this code for ajax tabs which I downloaded from:
http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/If you are looking for an ajax tab navigation system, this is actually pretty easy to use/understand/modify.
The part of the code for this tab system, where you call the pages that will be loaded in the content area for each tab, looks like this:
So, as you can see, the page being called to display in the ajax tab is just being linked to in a regular manner ("external4.htm").
Now, what I want to do, is to display the different categories of information that are displayed in the Smartprofile module, each on a separate ajax tab. In the module, you can define different categories for all the data fields on the input form. I want each section to be dynamically displayed each on it's own ajax tab.
How do I link to each section of the Smartprfile user page?
Here is the template code for the "userinfo.php" page of the module, where the profile data is displayed.
(I removed the code at the start of the template that does not have to do with the display of form field data...)
<{counter assign=catcount print=false}>
<{foreach item=category from=$categories}>
<{if isset($category.fields)}>
<{counter}>
<{$category.cat_title}> |
<{foreach item=field from=$category.fields}>
<{$field.title}> | <{$field.value}> |
|
<{/foreach}>
<{/if}>
<{/foreach}>
(I removed some more code here which does not have to do with the form field display either...)
How do link to only one category of all the categories displayed on this page, so I can show that category on it's own ajax tab?
Thanks for your input!
jeffgr