tag:help-archives.hannonhill.com,2010-02-09:/discussions/velocity-formats/9354-determine-if-link-exists-bread-crumbingCascade CMS: Discussion 2014-03-05T21:29:15Ztag:help-archives.hannonhill.com,2010-02-09:Comment/319033482014-03-05T19:16:38Z2014-03-05T19:16:38ZDetermine if Link Exists (bread crumbing)<div><p>Hi Brendon,</p>
<p>Macros are meant to output and not necessarily return things
like boolean values, there are ways to work around that,
though.</p>
<p>I think your best bet would be to create a macro that takes in
the folder element, checks to see if there is a corresponding
landing page, and generates the link if one exists. You would call
this macro in the two places where the link is currently
displayed.</p>
<p>When you have a moment, perhaps give the attached Forma a try
and let me know how it works out.</p>
<p>Please let me know if you have any questions.</p>
<p>Thanks!</p></div>Ryan Griffithtag:help-archives.hannonhill.com,2010-02-09:Comment/319033482014-03-05T20:14:18Z2014-03-05T20:14:18ZDetermine if Link Exists (bread crumbing)<div><p>Hi Ryan I really appreciate you taking the time to answer!</p>
<p>The breadcrumb code you wrote appears to output the region name
as the last link (which is easy to fix, simply bydoing a #if(
${foreach.hasNext} and wrapping that in the loop) which could mean
I likely did something wrong. I based my index breadcrumb block on:
<a href=
"http://www.hannonhill.com/kb/Breadcrumbs/index.html">http://www.hannonhill.com/kb/Breadcrumbs/index.html</a></p>
<p>Thanks again!</p></div>birwintag:help-archives.hannonhill.com,2010-02-09:Comment/319033482014-03-05T21:29:15Z2014-03-05T21:29:15ZDetermine if Link Exists (bread crumbing)<div><p>Not a problem at all, I am glad to hear the format helped out
and you were able to work out that region name issue.</p>
<p>I'm going to go ahead and close this discussion, please feel
free to comment or reply to re-open if you have any additional
questions.</p>
<p>Have a great day!</p></div>Ryan Griffith