Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Custom sidebar on pages
Raize
✭✭
How would I customize the sidebar on the pages instead of having the same sidebar apply to all of them?
2
Comments
I feel a better and flexible method to display the links is to use a message (settings in Appearance section of dashboard) with link(s) to the page(s) either at the top of the discussions page or bottom of the sidebar
(I'd like to be able have the option to place them at the top of the sidebar also, but that is probably best done as a core modification - @mark)
This method makes display of the links to pages much more immune to theme switching and other screwups.
I have created 2 custom pages and want to add the same side bar as in forum. Right now only the message i put are coming there but there is not Category coming up. HTML also is there any ways i can add this in the top Navigation as well?
Thanks in advance
http://dl.dropbox.com/u/2190429/discussions.tiff
http://dl.dropbox.com/u/2190429/calendar.tiff
http://dl.dropbox.com/u/2190429/places.tiff
i have the same problem.... plz give us, the solution. > how to add side pane like home page to custom pages
Has anyone found a solution to this yet?
OK, all I wanted was to add the Guest "Howdy Stranger!" to the side panel. Here is what I did:
plugins/CustomPages/default.php contained:
edited to become:
Worked for me.
You could likely add the other modules (Categories, etc.) individually, too? You may need to copy the relevant .php file from application/vanilla/views/modules to themes/YOURTHEME/views/modules
Has anyone been able to workout how to totally remove the sidebar?
@Nonnisi
In your custom.css file, set panel to display:none
Thanks, that does not seem to remove the search box though.
@Nonnisi
Do the same thing for the Search div.
If you use Firebug in Firefox, or a simialr tool, you can inspect pretty much any elemnt in Vanilla to see what controls it.
The search box does not seem to have a display tag, except for the actual search button.
Also just noticed that this is disabling parts of the sidebar across the entire site, I just want it gone on custom pages.
@Nonnisi
OK, but that wasn't clear from your initial question.
You can append a page name to a css rule, so for example .discussion in front of a rule only affects elements on discussion pages, so I'm assuming you could do that for a custom page as well.
If not, you could set the display:none, and then for individual pages call it back again
e.g.
.Discussion #Panel {display:block}
AfaIk #Search is the element for the search box.
You could also just create a different master view and use it with your custom page:
The view would need to be named
your-view.master.tpl
for this to work. Then remove all the stuff you don't need from this view and voilá!Just an example: I used this to create a full-width home page for a project I'm working on.
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
Where would I add that code? The: $this->MasterView = 'your-view';