285 pts.
 Accessing $$SearchTemplate by form name
Hey folks -- I'm trying to add a 'breadcrumb' trail via a subform to a number of documents. In the subform, I use a <computed value> to determine what page the user is on, and then load in the appropriate breadcrumb as needed. I'm trying to add the subform to a SearchTemplate, but not sure if my logic is correct. I've been doing something like this... @If(@Contains(path_info;"createContent");"Create Content"; form="$$SearchTemplate for searchMyContent";"Search > My Content"; "") But that second part doesn't seem to be working. I've tried just using "searchMyContent", as the variable, but that isn't working either. Does anyone have any other suggestions? Thanks -MrG.

Software/Hardware used:
ASKED: July 24, 2008  3:47 PM
UPDATED: August 6, 2008  6:46 PM

Answer Wiki:
Have you tried referencing the value of the $$ViewBody field?
Last Wiki Answer Submitted:  July 29, 2008  4:32 pm  by  Stiletto   2,700 pts.
All Answer Wiki Contributors:  Stiletto   2,700 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Create a Form field in the form. Display the field on the page. Use the value displayed on the page for your code. Let me know if this helps.

 3,845 pts.

 

Stiletto — I’m not sure how the $$ViewBody field works. I read the help and other docs on the web, but from what I understand, it won’t display on the web.
Not I’m not sure if that means it won’t work in Formula or not.

Brooklynegg — I did try what you said, and in my breadcrumb subform did something like this:
<p class=”breadcrumb”><Computed Value></p>

In the Computed Value, I tried this formula:
myText = $$Viewbody;
myText

No luck… I did the same idea using a Field instead of a Computed Value. Still nothing. Even if I should be using a field, what type/state should I be using? Computed? or Computed for Display?

Not sure if it makes a difference, but all the code above is in a PassThru HTML.

Actually, now that I re-read this, are you saying that in the various $$ViewTemplate forms, I should include a hiddenField with the name of the form, and then read that field from my subform to output the breadcrumb? I think that makes sense, but wouldn’t that be a whole lot more work, and less dynamic?

 285 pts.