I’m using the Breadcrumb snippet and the Last Crumb displays a description of "ARRAY"
Template Code:
<div class="breadcrumbs">[!Breadcrumbs?!]</div>
PAGE SOURCE
Note the B_currentCrumb is showing "Array" rather than the name of the page.
<div class="breadcrumbs">
<span class="B_crumbBox"><span class="B_firstCrumb"><a class="B_homeCrumb" href="/index.php?q=home.html" title="Home Page">Home</a></span> » <a class="B_crumb" href="/index.php?q=contents.html" title="How to Categories">HowTos</a> » <a class="B_crumb" href="/index.php?q=webtools.html" title="Web Site Tools">Web Tools</a> » <a class="B_crumb" href="/index.php?q=toolone.html" title="Tool One">Tool One</a> » <span class="B_lastCrumb"><span class="B_currentCrumb">Array</span></span></span>
</div>
I tried forcing it with this, but got the same result.
[!Breadcrumbs? &showCurrentCrumb=`1`!]
Scott
MODx 1.0.2 Rev 6066 // Apache version 2.2.14 (Unix) // PHP version 5.2.11 // MySQL version 5.1.42 // Architecture x86_64 // Operating system: Linux
I was able to turn off the last crumb using...
[!Breadcrumbs? &showCurrentCrumb=`0`!]
However, I would like to show the last breadcrumb rather than hide it.
Scott
MODx 1.0.2 Rev 6066 // Apache version 2.2.14 (Unix) // PHP version 5.2.11 // MySQL version 5.1.42 // Architecture x86_64 // Operating system: Linux
-
☆ A M B ☆
- 3,112 Posts
What is the page content(s)?
Try [[Breadcrumbs]] (without question mark).
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
Thanks for replying. I tried as you suggested, but that breaks the snippet. I thought that snippets had to have the "?" to work.
Scott
MODx 1.0.2 Rev 6066 // Apache version 2.2.14 (Unix) // PHP version 5.2.11 // MySQL version 5.1.42 // Architecture x86_64 // Operating system: Linux
-
☆ A M B ☆
- 3,112 Posts
"?" is used when there is at least 1 additional parameter to control how the snippet should work in different way against default setting.
http://wiki.modxcms.com/index.php/Breadcrumbs
What version is your MODx?
If breadcrumbs breaks without "?", reinstall your modx.
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
Thanks, I forgot about that little bit of knowledge regarding the "?" and parameters. I tried your suggestion again and it worked partially. I must have mis-typed before. However, either way, with "?" and a parm or without any parameters, I still get the "ARRAY" at the end of my breadcrumbs links.
In my template I have [!Breadcrumbs!] and it returns:
Home » HowTos » Web Tools » Tool One » Array
My MODx version 1.0.0
Version codename rev 5601
Scott
MODx 1.0.2 Rev 6066 // Apache version 2.2.14 (Unix) // PHP version 5.2.11 // MySQL version 5.1.42 // Architecture x86_64 // Operating system: Linux
-
☆ A M B ☆
- 3,112 Posts
there are a lot of improvements since 1.0.0, especially on bug fixings.
try upgrade to MODx 1.0.2 (not 1.0.1)
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
Thank you for time an input. I will do the upgrade as soon as I can.
Scott
MODx 1.0.2 Rev 6066 // Apache version 2.2.14 (Unix) // PHP version 5.2.11 // MySQL version 5.1.42 // Architecture x86_64 // Operating system: Linux
I upgraded to modx-1.0.2. I had to do the advanced because I was getting a "Database Connection Error". Total time to upgrade was 15 min.
However, I still get the ARRAY at the end of the bread crumb. I’m going to test Breadcrumbs without parameters to see if that works.
Home » HowTos » Web Design » Page Layout » Array
Also, something unusual, under Reports, System Info -> the MODx Version is blank. (see attached image)
Scott
MODx 1.0.2 Rev 6066 // Apache version 2.2.14 (Unix) // PHP version 5.2.11 // MySQL version 5.1.42 // Architecture x86_64 // Operating system: Linux
I tested Breadcrums both with Parms and without. Both methods still finish the breadcrumb with "ARRAY". I guess I’m going to have to live with the &showCurrentCrumb=`0` for now.
Scott
MODx 1.0.2 Rev 6066 // Apache version 2.2.14 (Unix) // PHP version 5.2.11 // MySQL version 5.1.42 // Architecture x86_64 // Operating system: Linux