I want to modify breadcrumbs
Hi all
please help me modify my code to give 3 breadcrumbs as I have achieved to give 3 breadcrumbs but on clicking on 2nd I'm coming back to 2nd but clicking on 1st I'm not able to come back to 1st.
I attached my code where there are 3 rule inputs , in which showsubmodule and show pdf is boolean and selection is list of number
{
a!localVariables(
local!currentNodeId: if(
ri!showSubModule = true,
if(ri!showPDF, 3, 2),
1
),
local!nodes: a!forEach(
items: enumerate(local!currentNodeId) + 1,
expression: choose(
fv!item,
a!map(name: "Knowledge Base", identifier: 1),
a!map(name: "Sub Modules", identifier: 2),
a!map(name: "Show PDF", identifier: 3)
)
),
a!cardLayout(
contents: {
a!richTextDisplayField(
labelPosition: "COLLAPSED",
value: {
a!forEach(
items: local!nodes,
expression: if(
fv!isLast,
a!richTextItem(text: fv!item.name, style: "STRONG"),
{
a!richTextItem(
text: fv!item.name,
link: a!dynamicLink(
value: fv!item.identifier,
saveInto: {
a!save(ri!showPDF,false),
a!save(ri!selection, null),
}
),
linkStyle: "STANDALONE"
),
a!richTextItem(text: " / ", color: "SECONDARY")
}
)
)
}
)
},
showBorder: false
)
)
}
Help me achieve this
thankyou!
[mention:a11f77a729fb4db2af76b09948583328:e9ed411860ed4f2ba0265705b8793d05] [mention:b45a4f6a20b14a008e4e0ec732a8bf98:e9ed411860ed4f2ba0265705b8793d05]
