breadcrumbs

Globalization in MVCSiteMapProvider

亡梦爱人 提交于 2019-11-28 13:08:32
Hi have a sitemap on my mvc 4 application like this: <?xml version="1.0" encoding="utf-8" ?> <mvcSiteMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-4.0" xsi:schemaLocation="http://mvcsitemap.codeplex.com/schemas/MvcSiteMap-File-4.0 MvcSiteMapSchema.xsd"> <mvcSiteMapNode title="Users" controller="User" action="Index" area="" preservedRouteParameters="culture,projectid"> <mvcSiteMapNode title="New" controller="User" action="Create" area="" preservedRouteParameters="culture,projectid"/> <mvcSiteMapNode title="Edit"

Property 'includes' does not exist on type 'string[]'

北城以北 提交于 2019-11-28 10:41:28
Getting the error Property 'includes' does not exist on type 'string[]' in node_modules/ng2-breadcrumb/app/components/breadcrumbService.ts I am trying to implement breadcrumb functionality in an angular2 app. Add "ES2017" to your "lib" array in tsconfig.json : { "compilerOptions": { ... "lib": ["es6", "dom", "es2017"], ... "target": "es5", ... } } This should work since TypeScript 2.1. A related issue . Explanation The includes method on Array is supported since ES7 (ES2016). The above will add a missing library file to compilation. The TypeScript compiler options are documented here . Lib

jquery - dynamic breadcrumb

自古美人都是妖i 提交于 2019-11-28 10:27:53
I'm trying to create a breadcrumb system for my site using the following: <div class="breadcrumb"> <div class="item"><a href="#home">Home / </a></div> </div> <div class="items"> <ul> <li><a href="#test1">Test 1</a></li> <li><a href="#test1">Test 2</a> <ul> <li><a href="">Level 1</a></li> <li><a href="">Level 2</a></li> </ul> </li> <li><a href="#test1">Test 3</a></li> </ul> </div> What I'm looking to do is so when a user clicks on Test 1 the breadcrumb is Home / Test 1 , if they then click on Test 2 and then Level 1 , the breadcrumb will become Home / Test 1 / Level 2 I've been looking at

For a fluid Navigation Menu, how to adjust padding dynamically for each Breadcrumb?

旧城冷巷雨未停 提交于 2019-11-28 06:27:16
问题 I am currently building a site with a fluid layout. None of the mainstream fluid templates out there actually come with a stock horizontal navigation that can adjust itself as the window is resized or loads at different widths. I've been pouring through online tutorials and other Stack Overflow solutions that try to tackle similar problems, some are extremely clever and come really close but none are able to handle a block-like hover effect a {display:block; padding:10px 40px;} a:hover

PHP - Return array of parents from multidimensional associative array for breadcrumb list

允我心安 提交于 2019-11-28 05:34:37
问题 I'm trying to create dynamic breadcrumbs from an array. So I can add to the array and not have to manually update the breadcrumbs. Okay, here's a snippet of my array: (It won't go much deeper) $menu = array( 'Dashboard' => array( 'Projects' => array( 'Project 1' => array( 'Project settings' => 'projects/project_1/settings', 'Issue Tracker' => 'projects/project_1/issue_tracker', 'Customize page' => 'projects/project_1', 'Manage files' => 'projects/project_1/files', ), 'Project 2' => array(

Breadcrumb with Schema.org not showing in Google Rich Snippets testing tool

我是研究僧i 提交于 2019-11-27 22:32:29
问题 I have tested the Schema.org breadcrumb example with Google Rich Snippets testing tool. <div itemprop="breadcrumb"> <a href="category/books.html">Books</a> > <a href="category/books-literature.html">Literature & Fiction</a> > <a href="category/books-classics">Classics</a> </div> The result is that it is not recognized by the tool. So, is there a bug or is there a syntax problem? If so, what is the correct syntax? 回答1: Your question is a bit the same with this one How to implement schema.org

What are some good ways to implement breadcrumbs on a Jekyll site?

人走茶凉 提交于 2019-11-27 14:01:06
问题 I'm aware that there are single-level breadcrumbs in http://raphinou.github.com/jekyll-base/ but I'm looking for some good ways to have breadcrumbs on a Jekyll site when directories get to a depth of four or five levels . (Yes, I'm well aware that Jekyll is primarily a blogging engine and that perhaps I shouldn't use it for a general purpose website, especially with many directory levels. I'm also aware of http://octopress.org but haven't found a suitable plugin.) Based heavily on http:/

How can dynamic breadcrumbs be achieved with ASP.net MVC?

不想你离开。 提交于 2019-11-27 10:39:41
How can dynamic breadcrumbs be achieved with ASP.net MVC? If you are curious about what breadcrumbs are: What are breadcrumbs? Well, if you have ever browsed an online store or read posts in a forum, you have likely encountered breadcrumbs. They provide an easy way to see where you are on a site. Sites like Craigslist use breadcrumbs to describe the user's location. Above the listings on each page is something that looks like this: s.f. bayarea craigslist > city of san francisco > bicycles EDIT I realize what is possible with the SiteMapProvider. I am also aware of the providers out there on

How to implement schema.org markup for a breadcrumb?

非 Y 不嫁゛ 提交于 2019-11-27 09:33:04
问题 There isn't much info about implementing a breadcrumb using schema.org markup. So far, I could get two official documents -- one showing this: <div itemscope itemtype="http://schema.org/Property" itemid="http://schema.org/breadcrumb"> <link itemprop="domain" href="http://schema.org/WebPage"/> <link itemprop="range" href="http://schema.org/Text"/> </div> And another showing this: <body itemscope itemtype="http://schema.org/WebPage"> <div itemprop="breadcrumb"> <a href="category/books.html"

PHP Create breadcrumb list of every value in nested array

吃可爱长大的小学妹 提交于 2019-11-27 08:52:52
问题 I have an array that looks like the following: [ 'applicant' => [ 'user' => [ 'username' => true, 'password' => true, 'data' => [ 'value' => true, 'anotherValue' => true ] ] ] ] What I want to be able to do is convert that array into an array that looks like: [ 'applicant.user.username', 'applicant.user.password', 'applicant.user.data.value', 'applicant.user.data.anotherValue' ] Basically, I need to somehow loop through the nested array and every time a leaf node is reached, save the entire