Anyone?
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
- Previous 10 entries
- 1
- Page 22(current)
Remove the If statements
<% if Menu(2) %>
<% include SideBar %>
<div id="Content">
<% end_if %>
to
<% include SideBar %>
<div id="Content">
and
<% if Menu(2) %>
</div>
<% end_if %>
to
</div>
sorry willr but your solution is not working.
i removed the if statement and the sidebar loaded, but without the menu(2) links in the page without children.
i have installed:
- dataobject_manager;
- swfupload;
- image_gallery.
maybe the is a bug...
however i ned a second menu in every page and i cannot find a solution.
helpme please!!!
innernme - have you flushed your cache and double checked you're editing the correct file. Post a link to your source code if that helps.
yes, i flushed and checked many times.
---
the code modified in the template "blackcandy":
-
// /themes/blackcandy/templates/Layout/Page.ss
<div class="typography">
<% include SideBar %>
<div id="Content">
<% if Level(2) %>
<% include BreadCrumbs %>
<% end_if %>
<h2>$Title</h2>
$Content
$Form
$PageComments
</div>
</div>
-
// /themes/blackcandy/templates/Includes/SideBar.ss
<div id="Sidebar" class="typography">
<div class="sidebarBox">
<h3>Patologie
</h3>
<ul id="Menu2">
<% control Menu(2) %>
<li class="$LinkingMode"><a href="$Link" title="Go to the "{$Title}" page">$MenuTitle</a></li>
<% end_control %>
</ul>
<div class="clear"></div>
</div>
<div class="sidebarBottom"></div>
</div>
---
thanks and sorry for my english.
sorry, but i'm installing joomla right now for a matter of time.
thanks anyway mate.
- Previous 10 entries
- 1
- Page 22(current)