Posted by "Linda" on 09/25/05 16:02
I have been working on a template. I am using a smarty section to display
links. For some reason, only the first two items of a category show up and
I know there are more than two in the array that is sent to the template. I
am attaching the code and the debug array. Any help would be appreciated.
Thanks
Linda
THIS IS THE TEMPLATE FILE
{* links_list.tpl *}
{load_links_list assign="links_list"}
{debug}
<link href="styles/linklist.css" rel="stylesheet" type="text/css" />
<div id="navcontainer">
<ul id="navlist">
{section name=cat loop=$links_list->mCategories}
<li class="menuDivHeader" onclick="display('mn2','btn2')">
<img src="images/menblank.gif" width="9" height="9"
class="menuButBlank" alt="" id="btn2" />
{$links_list->mCategories[cat].name}
{section name=link loop=$links_list->mCategories[cat]}
{if $smarty.section.link.first}
<ul class="showIt" id="mn1">
{/if}
<li class="subLinks"><a
href="{$links_list->mLinks[cat][link].linkURL}">{$links_list->mLinks[cat][link].linkTitle}
</a>
</li>
{if $smarty.section.link.last}
</ul>
{/if}
{/section}
</li>
{/section}
</ul>
</div>
THIS IS THE DEBUG DATA
LinksList Object (3)
mCategorySelected => 0
mLinks => Array (8)
0 => Array (12)
0 => Array (3)
id => 1
linkTitle => Kennedy Space Center Education Home
linkURL => http://education.ksc.nasa.gov
1 => Array (3)
id => 2
linkTitle => Goddard Space Flight Center
linkURL => http://education.gsfc.nasa.gov/
2 => Array (3)
id => 3
linkTitle => Jet Propulsion Laboratory
linkURL => http://education.jpl.nasa.gov/
3 => Array (3)
id => 4
linkTitle => Johnson Space Flight Center
linkURL => http://education.jsc.nasa.gov/
4 => Array (3)
id => 5
linkTitle => Kennedy Space Center Education Home
linkURL => http://apps.ksc.nasa.gov/edcal/index.cfm
5 => Array (3)
id => 6
linkTitle => Langley Research Center
linkURL => http://edu.larc.nasa.gov/main.html
6 => Array (3)
id => 7
linkTitle => Marshall Space Flight Center
linkURL => http://education.msfc.nasa.gov/
7 => Array (3)
id => 8
linkTitle => NASA Ames Research Center
linkURL => http://education.arc.nasa.gov/
8 => Array (3)
id => 9
linkTitle => NASA Education Home
linkURL => http://education.nasa.gov
9 => Array (3)
id => 10
linkTitle => NASA Glenn Research Center
linkURL => http://www.grc.nasa.gov/Doc/educatn.htm
10 => Array (3)
id => 11
linkTitle => Stennis Space Center
linkURL => http://wwwedu.ssc.nasa.gov/
11 => Array (3)
id => 12
linkTitle => Wallops Flight Facility
linkURL => http://www.wff.nasa.gov/pages/educati...
1 => Array (2)
0 => Array (3)
id => 13
linkTitle => NASA History Office
linkURL => http://history.nasa.gov/
1 => Array (3)
id => 14
linkTitle => Shuttle Press Kit
linkURL => http://www.shuttlepresskit.com/index....
2 => Array (3)
0 => Array (3)
id => 15
linkTitle => NASA Human Space Flight Outreach
linkURL => http://spaceflight.nasa.gov/outreach/
1 => Array (3)
id => 16
linkTitle => NASA Jobs
linkURL => http://www.nasajobs.nasa.gov/
2 => Array (3)
id => 17
linkTitle => University Space Research
linkURL => http://www.ksc.nasa.gov/disclaimer/?t...
3 => Array (9)
0 => Array (3)
id => 18
linkTitle => Florida A&M University
linkURL => http://www.ksc.nasa.gov/disclaimer/?t...
1 => Array (3)
id => 19
linkTitle => Florida Altlantic University
linkURL => http://www.ksc.nasa.gov/disclaimer/?t...
2 => Array (3)
id => 20
linkTitle => Florida Gulf Coast University
linkURL => http://www.ksc.nasa.gov/disclaimer/?t...
3 => Array (3)
id => 21
linkTitle => Florida International University
linkURL => http://www.ksc.nasa.gov/disclaimer/?t...
4 => Array (3)
id => 22
linkTitle => University of Central Florida
linkURL => http://www.ksc.nasa.gov/disclaimer/?t...
5 => Array (3)
id => 23
linkTitle => University of Florida
linkURL => http://www.ksc.nasa.gov/disclaimer/?t...
6 => Array (3)
id => 24
linkTitle => University of North Florida
linkURL => http://www.ksc.nasa.gov/disclaimer/?t...
7 => Array (3)
id => 25
linkTitle => University of South Florida
linkURL => http://www.ksc.nasa.gov/disclaimer/?t...
8 => Array (3)
id => 26
linkTitle => University of West Florida
linkURL => http://www.ksc.nasa.gov/disclaimer/?t...
4 => Array (4)
0 => Array (3)
id => 27
linkTitle => Medical Education Programs at KSC
linkURL => http://lssc.ksc.nasa.gov/medical/
1 => Array (3)
id => 28
linkTitle => Microgravity
linkURL => http://microgravity.nasa.gov/
2 => Array (3)
id => 29
linkTitle => Space Biology
linkURL => http://www.ksc.nasa.gov/disclaimer/?t...
3 => Array (3)
id => 30
linkTitle => Web of Life
linkURL => http://weboflife.ksc.nasa.gov/
5 => Array (3)
0 => Array (3)
id => 31
linkTitle => Amazing Space
linkURL => http://www.ksc.nasa.gov/disclaimer/?t...
1 => Array (3)
id => 32
linkTitle => NASA Human Space Flight
linkURL => http://spaceflight.nasa.gov/
2 => Array (3)
id => 33
linkTitle => Shuttle Press Kit
linkURL => http://www.shuttlepresskit.com/index....
6 => Array (4)
0 => Array (3)
id => 34
linkTitle => 4-H Aerospace Adventures!
linkURL => http://www.ksc.nasa.gov/disclaimer/?t...
1 => Array (3)
id => 35
linkTitle => Bay Area Biotechnology Education Cons...
linkURL => http://www.ksc.nasa.gov/disclaimer/?t...
2 => Array (3)
id => 36
linkTitle => Future Farmers of America (FFA)
linkURL => http://www.ksc.nasa.gov/disclaimer/?t...
3 => Array (3)
id => 37
linkTitle => National Association of Agriculture E...
linkURL => http://www.ksc.nasa.gov/disclaimer/?t...
7 => Array (5)
0 => Array (3)
id => 38
linkTitle => Amazing Space
linkURL => http://www.ksc.nasa.gov/disclaimer/?t...
1 => Array (3)
id => 39
linkTitle => Goddard Space Flight Center
linkURL => http://www.gsfc.nasa.gov/
2 => Array (3)
id => 40
linkTitle => NASA Jet Propulsion Laboratory
linkURL => http://education.jpl.nasa.gov/
3 => Array (3)
id => 41
linkTitle => Science @ NASA
linkURL => http://science.nasa.gov/
4 => Array (3)
id => 42
linkTitle => Solar Views
linkURL => http://www.ksc.nasa.gov/disclaimer/?t...
mCategories => Array (8)
0 => Array (2)
id => 1
name => NASA Center Education Sites
1 => Array (2)
id => 2
name => NASA History
2 => Array (2)
id => 3
name => Careers In Space
3 => Array (2)
id => 4
name => Florida Public Universities
4 => Array (2)
id => 5
name => Life Science, Fundamentals of Biology...
5 => Array (2)
id => 6
name => Living in Space
6 => Array (2)
id => 7
name => Space Agriculture in the Classroom
7 => Array (2)
id => 8
name => Space Science & Planetary Probes
Navigation:
[Reply to this message]
|