{"action":"created","issue":{"url":"https://api.github.com/repos/RexDude/navigation_factory/issues/11","repository_url":"https://api.github.com/repos/RexDude/navigation_factory","labels_url":"https://api.github.com/repos/RexDude/navigation_factory/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/RexDude/navigation_factory/issues/11/comments","events_url":"https://api.github.com/repos/RexDude/navigation_factory/issues/11/events","html_url":"https://github.com/RexDude/navigation_factory/issues/11","id":135716554,"number":11,"title":"Breadcrumb Navigation - Artikel-ID festlegen nav->setArticleId(42);","user":{"login":"alexplusde","id":3855487,"avatar_url":"https://avatars.githubusercontent.com/u/3855487?v=3","gravatar_id":"","url":"https://api.github.com/users/alexplusde","html_url":"https://github.com/alexplusde","followers_url":"https://api.github.com/users/alexplusde/followers","following_url":"https://api.github.com/users/alexplusde/following{/other_user}","gists_url":"https://api.github.com/users/alexplusde/gists{/gist_id}","starred_url":"https://api.github.com/users/alexplusde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexplusde/subscriptions","organizations_url":"https://api.github.com/users/alexplusde/orgs","repos_url":"https://api.github.com/users/alexplusde/repos","events_url":"https://api.github.com/users/alexplusde/events{/privacy}","received_events_url":"https://api.github.com/users/alexplusde/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-23T11:54:11Z","updated_at":"2016-02-26T19:35:31Z","closed_at":"2016-02-26T19:35:31Z","body":"Hi RexDude,\r\n\r\nIm Moment keine Option, der rex_breadcrumb_nav() einen Parameter zu geben, wenn man die Brotkrümel-Navigation eines fremden Artikels einfügen will. Den Anwendungsfall habe ich allerdings gerade.\r\n\r\nIch habe selbst was dazu gebaut, allerdings nicht als PR, denn ich bin da auf ein merkwürdiges Verhalten von Redaxo gestoßen:\r\n\r\n[PasteBin](http://pastebin.com/pSpFfrks\r\n)\r\n- In Zeile 50-52 habe ich setArticleId hinzugefügt.\r\n- In Zeile 77-83 setze ich die ArticleId.\r\n- In Zeile 91, 93 und 122 habe ich $REX['article_id'] durch $articleId ersetzt.\r\n\r\nDas merkwürdige findet in Zeile 79/80 statt: In $REX habe ich normalerweise ja nicht den Pfad (z.B. |7|12|18|) zu **fremden** Artikeln. Sobald ich aber\r\n\r\n```\r\n\t\t\t$art = OOArticle::getArticleById($articleId, 0);\r\n\t\t\t$art->getParentTree();\r\n```\r\n\r\neinfüge, ohne, dass ich mit $art noch etwas mache, kann ich auch in $REX auf den Pfad zugreifen. ich hätte erwartet, dass ich auf jeden Fall in Zeile 91 bei \r\n\r\n```\r\n$path = explode('|', $REX['ART'][$this->articleId]['path'][$REX['CUR_CLANG']] . $this->articleId);\r\n```\r\n\r\netwas ändern muss. Das fühlt sich für mich irgendwie nicht sauber an, nur \r\n```\r\n\t\t\t$art = OOArticle::getArticleById($articleId, 0);\r\n\t\t\t$art->getParentTree();\r\n```\r\neinfügen zu müssen und dann passiert ein bisschen Magie und das wars.\r\n\r\nFalls es doch genügt, kannst du's gerne übernehmen."},"comment":{"url":"https://api.github.com/repos/RexDude/navigation_factory/issues/comments/189446640","html_url":"https://github.com/RexDude/navigation_factory/issues/11#issuecomment-189446640","issue_url":"https://api.github.com/repos/RexDude/navigation_factory/issues/11","id":189446640,"user":{"login":"RexDude","id":2674480,"avatar_url":"https://avatars.githubusercontent.com/u/2674480?v=3","gravatar_id":"","url":"https://api.github.com/users/RexDude","html_url":"https://github.com/RexDude","followers_url":"https://api.github.com/users/RexDude/followers","following_url":"https://api.github.com/users/RexDude/following{/other_user}","gists_url":"https://api.github.com/users/RexDude/gists{/gist_id}","starred_url":"https://api.github.com/users/RexDude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RexDude/subscriptions","organizations_url":"https://api.github.com/users/RexDude/orgs","repos_url":"https://api.github.com/users/RexDude/repos","events_url":"https://api.github.com/users/RexDude/events{/privacy}","received_events_url":"https://api.github.com/users/RexDude/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T19:35:31Z","updated_at":"2016-02-26T19:35:31Z","body":"Hmm weiss auch nicht. Da es ein spezieller Sonderfall ist würd ich hier nix weiter machen."}}