breadcrumbs

Are there any JSF components for implementing breadcrumb navigation?

こ雲淡風輕ζ 提交于 2019-12-21 11:40:54
问题 As far as I know there are two "kinds" of breadcrumbs. The static/hierarchy one Works like a stack Entries are pushed when a user goes "deeper" into the site Entries are poped when user goes "up" into the site Is the same for all users (for a given page) Shows location rather than history A simple Example would be HOME -> BIG CATEGORY -> SMALL CATEGORY -> ARTICLE The dynamic/historical one Works like a queue Entries are pushed at the end when a user goes to another page Entries are removed

Easy breadcrumbs for RESTful rails application

懵懂的女人 提交于 2019-12-20 15:31:17
问题 Is there any helper method (Other than default rails breadcrumb) that generates bread crumb navigation dynamically for a particular page without having to pass trivial parameters in RESTful application? That is, something that figures out automatically where the user is based on the REST url she is visiting? For above mentioned implementation, we need to pass parameters like REST <% add_crumb(‘Profile’, user_profile_path) %> Current page <% add_crumb(“My Incoming Messages”, request.path) %>

Proper ARIA handling of breadcrumb navigation

↘锁芯ラ 提交于 2019-12-20 09:23:52
问题 What can be done to improve the accessibility of a breadcrumb menu similar to: <ul class="breadcrumbs" aria-label="breadcrumb navigation" role="navigation"> <li><a href="~/">Home</a></li> <li><a href="~/news">News</a></li> <li class="unavailable"><a href="#">@Model.Title</a></li> </ul> Given in this example Home is the site root, News is the first child, and the unavailable class is the current item the /news/article item. Is there anything that could be done to improve this such as using rel

SonataAdmin: replace ID in breadcrumbs

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-19 06:14:14
问题 How can I replace Object's ID in SonataAdmin breadcrumbs by some other text? If I set __toString() in my document, it works only for editing. When I attempt to create new record, there is something like MyDocument:0000000000e09f5c000000006a48ef49 in the last breadcumb. I'm searching for a method which allows me to set some text as the last breadcump if Document::toString() returns null. 回答1: This behaviour is implemented directly in the entity: public function __toString() { return $this-

Globalization in MVCSiteMapProvider

这一生的挚爱 提交于 2019-12-17 20:40:00
问题 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

jquery - dynamic breadcrumb

隐身守侯 提交于 2019-12-17 19:32:03
问题 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

How to create a dynamic breadcrumb nav in twig

孤者浪人 提交于 2019-12-12 04:26:45
问题 I would like to create a dynamic breadcrumb nav in Twig. Example url www.example.com/section/page I want to get the url, split it into a breadcrumb such as: home > section > page I've found this php code which works. Can anyone help convert it into Twig? <?php // This function will take $_SERVER['REQUEST_URI'] and build a breadcrumb based on the user's current path function breadcrumbs($separator = ' » ', $home = 'Home') { // This gets the REQUEST_URI (/path/to/file.php), splits the string

How to change OpenCart2 breadcrumbs home text?

亡梦爱人 提交于 2019-12-12 04:18:33
问题 I'm struggling with this problem for a few months now and I can't figure out where to change this. Note that the website I'm working on is coded by someone else, I can't find the part where the fontawesome icon is added to the home text in the breadcrumbs. Look at the breadcrumbs As you can see there's an icon added, but I want to add a space between home and the icon, I just can't figure out which file to edit. If you need any more info, let me know. 回答1: Search for $_['text_home'] in

PHP to Show By Default (Call or array?)

浪尽此生 提交于 2019-12-12 02:08:42
问题 This is more of a PHP question than a WordPress question, but I am using it in a WP theme. In my options I am allowing users to show/hide breadcrumbs. However, when there are no preferences yet selected and saved (for example, if somebody were to install the theme) the breadcrumbs aren't displayed by default... and I would like them to be. Below is my code. I'm confident I'm just missing a very small piece of code here... Here is the array I am using: array( "name" => "Display breadcrumbs on

How to add breadcrumb to Spring MVC?

佐手、 提交于 2019-12-12 01:54:14
问题 How can I add breadcrumb to all pages of Spring MVC? I suppose it would be a good question to ask as breadcrumbs are quite popular now and it might be the question of many others. I've found this solution that is using dummiesmind.breadcrumb.springmvc.annotations, there is also a question on stackoverflow but I could not learn much except finding similar solution to the one that Ive found. Another solution is this one that is using JavaScript. Does anyone have a better option to the ones I