Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Adding General Breadcrumbs to site


Question

Posted (edited)

Site URL: https://fox-pepper-hn5f.squarespace.com/

The Question

Hello,

I am trying to add breadcrumbs to my site (not just for products but all pages). I have Developer Mode and tried to implement the solution proposed here but it did not work. I know how to create "if-else" statements using {.equals arg 1 arg2}, which will involved part of the solution - but I need to be able to store the value of the page visited before somewhere. This variable will need to be global and static - something at the session level. This kind of scope means the variable will have to be made outside of breadcrumbs.block (JSON-T I don't think has this capacity) so I was thinking maybe I could write a js script but I don't know how to how to manipulate the breadcrumbs.block from js or how to get the value of a variable in js from the breadcrumbs.block (probably not possible).

If someone has a solution for breadcrumbs or can help me figure out how to get javascript and JSON-t file to talk to each other, that would be great!

Pseudo Code Solution:

variable last=""

variable second-to-last=""

//above stored somewhere else

If we are at Home{
        second-to-last = ""
        last = ""
        print nothing
}

Else If we are at top level navigation (navtitles like Custom Programs, About, Classes, Events)
         last = navtitle
          second-to-last = ""  
          print last   
}

Else If we are at second level navigation (Newbie Class, Open Enrollment class, etc){
       if second-to-last is empty{
              second-to-last = last
       } 
        last = navtitle
        print second-to-last / last
}

Else if we are at third level navigation (healing rhthyms, or a form){
        print second-to-last/last/navtitle
}

 


Melanie ~

Edited by fanaticredhead
adding tags
Link to post
  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...