Creating Breadcrumbs for Subsections using CurrentSectionName

With a lot of levels that you have, this is more difficult using the built in actions.


There are 2 ways I would think of doing this. 


1). Create and external HTML object that would display all of this based on an XML and page names. (my prefered because we do this often, have all the code and techniques down pat)


2). Create an action group on every level. Basically, set a variable to the current section name. Then the next section down, take that variable and append the current section name to it. Then after that, rinse and repeat for every subsection.


 


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