Hallo everyone. Maybe someone knows the solution:
I need to display a menu / part of existing menu in content (in Editor). I need to render the sublink 1,sublink 2,sublink 3
as menu links in my content , with the usuall menu states (active, hover, etc.) , in any custom place.
link1
---- sublink 1
---- sublink 2
---- sublink 3
link2
link3
I cant add this functionality in page.ss , bacause the structure/design of the page is not always the same, same as the position of the menu.
.A
image
text
menu,
B:
image
menu
image
text
menu
etc
Thanx in advance for any help.....:)
EDIT: /////////////////////////////////
1. I created myownnavi.ss , and uploaded in /themes/my_theme/templates/includes/ folder
for testing purposes, in the code of myownnavi.ss there is some text only
2.I added in /mysite/code/Page.php
into:
class Page_Controller extends ContentController {
////this code:
function Content() {
$replace = $this->Content;
return str_replace('$Showme', $this->Something(), $this->Content);
return $replace;
}
function Something() {
return $this->renderWith('myownnavi');
}
3. into content of one of the pages inserted $Showme , but ist doesnt work...nothing shown....Im on Silverstripe 3.1.6
Knows someone the solution??