Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap3 templates switcher by namespace #230

Closed
Digitalin opened this issue Jul 13, 2016 · 5 comments
Closed

Bootstrap3 templates switcher by namespace #230

Digitalin opened this issue Jul 13, 2016 · 5 comments
Milestone

Comments

@Digitalin
Copy link

Hello,

It could be great to choose by namespace among all templates provided by Bootstrap3. I am testing the Loadskin plugin. Except I have an token error "Possible CSRF attack", it seems that I have to choose between Dokuwiki and Bootstrap3. It is probably possible to copy Boostrap3 and give to it an other name but .... Perhaps, some experience is over here with this topic ?
As Boostrap3 has already a theme switcher in settings admin, I wonder if it will be possible to give this option to choose by namespace as well, really useful and fun to give some specific skin to namespace 😎 (just to go as far as possible with all hooks available that provides nice possibilities, I mean before becoming a wiki farmer).

@giterlizzi
Copy link
Owner

Very interesting feature!

@Digitalin
Copy link
Author

Hi,
Great to hear that you add it as a feature 👍

I am testing Bootstrap3 template in a wiki farm. Choosing a theme works well, having a navbar by namespace too. Seems nice at this time. But, it is an other purpose.

@giterlizzi
Copy link
Owner

giterlizzi commented Jul 19, 2016

Hi! I have added initial support in feature/template-by-namespace branch.

To enable this feature create bootstrap3.themes.conf file in DOKU_CONF directory:

ns:page  theme

Example:

wiki         default
wiki:syntax  optional
playground   bootswatch/yeti

See live action in my website:

My next steps:

  • Create a configuration to enable/disable this feature
  • Fix regex
  • Integration with Advanced Plugin
  • Testing

At your disposal,
Joseph

@Digitalin
Copy link
Author

Hi Joseph,

After different tries, it seems that is better to just put in the bootstrap3.themes.conf
:foo bootswatch/whateverTheme
where :foo wants to have another theme. It works better for me without saying where default theme is used as :
ns:page: default

Just brilliant :-)
Thanks.

@giterlizzi giterlizzi added this to the v2016-10 milestone Sep 30, 2016
@giterlizzi
Copy link
Owner

Integration with Advanced Plugin Config (giterlizzi/dokuwiki-plugin-advanced#6)

giterlizzi added a commit to giterlizzi/dokuwiki-plugin-advanced that referenced this issue Nov 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants