wiki icon indicating copy to clipboard operation
wiki copied to clipboard

Table of Contents

Open devp01 opened this issue 7 years ago • 3 comments

Question Describe in details what you are trying to achieve and where do you need guidance.

Host Info (please complete the following information): OS: [e.g. Ubuntu 18.04] Wiki.js version: [Wiki.js 2.0.0-rc.17] Database engine: [ mysql 8]

Is there any way we could change the layout of Table of Contents to be shifted to the right hand side of the page. In one of the earlier versions it was on the right hand side of the page.

devp01 avatar Nov 13 '19 11:11 devp01

@devp01 you can do this with css injection from the admin > themes section. You'd probably want to modify some other elements to make it fit better.

I imagine that once themes are released this will be possible and more efficient to do via themes.

An example:

.v-navigation-drawer {
left: auto !important;
right: 0px;
}

image

This overrides the default position of the navigation drawer image

XJonnyP avatar Nov 13 '19 14:11 XJonnyP

@XerqJon XerqJon Thank you for your reply. This actually changes the alignment of the entire navigation block. I am trying to move only the Tables of Contents from Left side to Right side of the page. image Currently it is Navigation Menu block---Table of Contents block---- Actual Page content I am trying to achieve it as Navigation Menu block ---- Actual Page Content ---- Table of Contents block.

devp01 avatar Nov 14 '19 07:11 devp01

It's not possible to move the table of contents to the right at the moment. It will be available later once the themes feature is released.

NGPixel avatar Nov 14 '19 10:11 NGPixel