Creating Breadcrumbs for Subsections using CurrentSectionName
November 13, 2009 12:00 AM
Greg,
Thanks for your suggestions. I had tried the one you mentioned where I have a user defined variable for each section and subsection that I populate with the name of the section/sub-section. This works as long as the student progressed through the course using the Next and Previous buttons. However if they use the Table Of Contents to directly go to a page in a subsection, then I found that the grandparent section and sub-sections were not being fired and thus the user defined variables I created for those parents were not populated. Thus the breadcrumb ended up having the chapter name followed by a couple > signs and then the page name (e.g. Chapter 2 > > > Page 3). So it looks like simple breadcrumbs are only best in limited situations, and the other option you mentioned about using an external call may be the only option for my case.
Michael
Michael_in_Wheaton said:So I am trying to create a breadcrumb for my course. The course can have a section that has a subsection which itself can have a subsection. I thought that to capture each of these section and subsection names from the left hand pane I would create my own user-defined variables and populate each of them using CurrentSectionName immediately after a Section/Subsection is encountered, and then combine/append all those values together in the breadcrumb text box on the screen. The problem is that only the last or lowest level subsection name is being populated in my user-defined variables. For example the breadcrumb would look like "Chapter 1 > Section 1.1.1 > Section 1.1.1 > Section 1.1.1 > Page 1" when I expect "Chapter 1 > Section 1 > Section 1.1 > Section 1.1.1 > Page 1". So two things. First any ideas why this is not working. Second, anyone have a technique for creating a breadcrumb for Titles have multiple sections (i.e. without hard coding the breadcrumb on each an every page)?
Discussions have been disabled for this post