DokuWiki

It's better when it's simple

User Tools

Site Tools


template:bootstrap3:discussion

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
template:bootstrap3:discussion [2019-03-15 22:59] – [Discussion] lotartemplate:bootstrap3:discussion [2023-05-24 16:02] (current) 128.201.167.116
Line 3: Line 3:
 ====== Bootstrap3: Discussion ====== ====== Bootstrap3: Discussion ======
  
-==== I want to use the landingpage function. Can you briefly describe how I can use them. It is not clear what is meant by regex and where I have to take the page. Thank you ====+==== Template not displaying correctly ==== 
 + 
 +Not exactly sure what went wrong, but there are no sidebars, top bars, etc. Every link is displayed below the other. Even to configure the templates it's a nightmare in this format. 
 + 
 + 
 + 
 + 
 +==== Using the Landing Page ==== 
 + 
 +I want to use the landingpage function. Can you briefly describe how I can use them. It is not clear what is meant by regex and where I have to take the page. Thank you 
  
 The landing page is a special page without a sidebar (left and right) and the panel around the content. The landing page is enabled when the current page matches with the doku pages stored in the config ''landingPages''. The default value is ''(intro)'' but if you want enable other pages, insert the name with regex syntax. For example:  The landing page is a special page without a sidebar (left and right) and the panel around the content. The landing page is enabled when the current page matches with the doku pages stored in the config ''landingPages''. The default value is ''(intro)'' but if you want enable other pages, insert the name with regex syntax. For example: 
Line 15: Line 24:
 ---- ----
  
-==== Is there a way to add H3, H4 and even H5 to the TOC? Currently only H1 and H2 is viewable in the TOC. ====+==== Expand the TOC Levels ==== 
 + 
 +Is there a way to add H3, H4 and even H5 to the TOC? Currently only H1 and H2 is viewable in the TOC.
  
 The H3~H5 tags are collapsed in TOC and are displayed only during the scroll of the page. This behavior save much space in TOC especially with page with more sections (eg. :wiki:syntax). The H3~H5 tags are collapsed in TOC and are displayed only during the scroll of the page. This behavior save much space in TOC especially with page with more sections (eg. :wiki:syntax).
Line 21: Line 32:
 ---- ----
  
-==== Can I remove the filename "*.txt" from pages but keep the last edit date and name? I can only comment out "tpl_pageinfo()" in the main.php file. ====+==== Remove filename on pages? ==== 
 + 
 +Can I remove the filename "*.txt" from pages but keep the last edit date and name? I can only comment out "tpl_pageinfo()" in the main.php file. ====
  
 The function ''tpl_pageinfo()'' does not provide options to remove the name of the page or other customization. The function ''tpl_pageinfo()'' does not provide options to remove the name of the page or other customization.
Line 29: Line 42:
 ---- ----
  
-==== Is there an easy way to use Google CSE (google.com/cse) with your template? I would like to display the search box on one page and the search results on another page. ====+==== Can I use Google CSE? ==== 
 + 
 +Is there an easy way to use Google CSE (google.com/cse) with your template? I would like to display the search box on one page and the search results on another page.
  
 To implement the Google CSE see this steps (adapted from [[https://developers.google.com/custom-search/docs/tutorial/implementingsearchbox|Google CSE - Implementing search box]]): To implement the Google CSE see this steps (adapted from [[https://developers.google.com/custom-search/docs/tutorial/implementingsearchbox|Google CSE - Implementing search box]]):
Line 73: Line 88:
 ---- ----
  
-==== How can one add text in the cookies banner? ===+==== Add test in cookies banner ==== 
 + 
 +How can one add text in the cookies banner? 
  
 :?: How can I add something like: "this site is using cookies, ... you have to accept..." to the cookies banner. (Thanks for the template). :?: How can I add something like: "this site is using cookies, ... you have to accept..." to the cookies banner. (Thanks for the template).
Line 92: Line 109:
 ---- ----
  
-==== browserTitle - adding some part of namespace ====+==== Adding Namespace to Title ==== 
 :?: Hi. Is there any way to add some part of namespace to <title> tag?\\ :?: Hi. Is there any way to add some part of namespace to <title> tag?\\
-I have dozens of pages witch same ID but in different namespaces. It would be nice to display in page title mayby two last namespaces.+I have dozens of pages with same ID but in different namespaces. It would be nice to display in page title mayby two last namespaces.
  
 Example:\\ Example:\\
Line 132: Line 150:
  
  
-==== List of used fonts and where to change them ====+==== List of used fonts & changing them ====
  
 Is there a list of used fonts and where they are defined? Is there a list of used fonts and where they are defined?
Line 175: Line 193:
  
 ==== Easy way to disable pagetools animation ==== ==== Easy way to disable pagetools animation ====
 +
 The pagetools animations are a little bit bugged. Hover over the lowest button and moving up to the one above works. But moving the mouse from a upper button to lower button triggers the animations two times in a row. The pagetools animations are a little bit bugged. Hover over the lowest button and moving up to the one above works. But moving the mouse from a upper button to lower button triggers the animations two times in a row.
 Now i added another color at hover in css and would like to disable the animations completely.  Now i added another color at hover in css and would like to disable the animations completely. 
Line 185: Line 204:
  --- [[user>lotar|Giuseppe Di Terlizzi]] //2016-12-13 17:09//  --- [[user>lotar|Giuseppe Di Terlizzi]] //2016-12-13 17:09//
  
-==== Easy way to add a link the the Navbar back to the parent website Home page? ====+==== Add link to homepage in Navbar ==== 
 + 
 +Easy way to add a link the the Navbar back to the parent website Home page?
  
 For a moment I thought I had found the answer with   "showUserHomeLink" however that is the home page for the wiki. For a moment I thought I had found the answer with   "showUserHomeLink" however that is the home page for the wiki.
Line 206: Line 227:
  
 Clearing browser cache fixes that issue. Thanks! Clearing browser cache fixes that issue. Thanks!
-==== Pagetools: option for no pagetools on start page ====+ 
 +==== Pagetools: no pagetools on start page ====
  
 Is there any way of disabling pagetools on the "start" page? My start page is readable by ALL (non-logged in) but I don't want casual visitors to be able to see any pagetools. Or maybe and option for no pagetools unless a user is logged-in (only if user is not-ALL). Thanks in advance for any relevant information! --- [[user>Branmabon Kaesgard|Branmabon Kaesgard]] //2017-02-25 17:34// Is there any way of disabling pagetools on the "start" page? My start page is readable by ALL (non-logged in) but I don't want casual visitors to be able to see any pagetools. Or maybe and option for no pagetools unless a user is logged-in (only if user is not-ALL). Thanks in advance for any relevant information! --- [[user>Branmabon Kaesgard|Branmabon Kaesgard]] //2017-02-25 17:34//
Line 265: Line 287:
  
  
-==How to set TD styles for tables in bootstrap3==+==== Set TD styles for tables ====
  
 Excellent template, thank you.  I'm trying to set some table data styles and failing miserably at the Excellent template, thank you.  I'm trying to set some table data styles and failing miserably at the
Line 278: Line 300:
  
  
-==Text size, can it be set in a template independently of general browser setting?==+==== Set Text Size for Template === 
 + 
 +Text size, can it be set in a template independently of general browser setting?
  
 It  seems to me that the text size in bootstrap3 is smaller than the 'default' text size when my browser displays ordinary pages.  Is there any way to set the overall text size in bootstrap3?  It  seems to me that the text size in bootstrap3 is smaller than the 'default' text size when my browser displays ordinary pages.  Is there any way to set the overall text size in bootstrap3? 
  
 +> It's possible to increase the theme font using a custom CSS in ''conf/userall.css'' CSS files ([[doku>devel:css]]):
 +
 +<code .css>
 +html, body {
 +  font-size: 14px;
 +}
 +</code>
 +
 + --- [[user>lotar|Giuseppe Di Terlizzi]] //2020-04-05 17:06//
 ==== Search Results ==== ==== Search Results ====
 +
 Using the Vanilla bootstrap theme, when you use the search bar and pages with long names appear in the search results the text can overlap quite a bit. Is it possible to increase the container for the URL so that it can account for larger page names? I noticed the unordered list that contains the URLs has the class "fix-media-list-overlap" so I'm not sure if there is already a fix in place that doesn't work for greebo. Using the Vanilla bootstrap theme, when you use the search bar and pages with long names appear in the search results the text can overlap quite a bit. Is it possible to increase the container for the URL so that it can account for larger page names? I noticed the unordered list that contains the URLs has the class "fix-media-list-overlap" so I'm not sure if there is already a fix in place that doesn't work for greebo.
  
  
-==== Option for no pageicons ==== +==== Option for no pageicons ==== 
 + 
 Is it possible - similar to the pagetools - to hide all or some page icon tools for not-logged in users Is it possible - similar to the pagetools - to hide all or some page icon tools for not-logged in users
 Currently with Currently with
Line 300: Line 335:
  
 Figured it out: my other templates were using wiki:navigation page automatically as the "sidebar" (left-nav), and this template uses the dokuwiki Basic->Sidebar setting to find the sidebar page name. The default is "sidebar", which I don't have, so changing this to wiki:navigation allowed my left-nav menus (with indexmenu) appear with this template. Figured it out: my other templates were using wiki:navigation page automatically as the "sidebar" (left-nav), and this template uses the dokuwiki Basic->Sidebar setting to find the sidebar page name. The default is "sidebar", which I don't have, so changing this to wiki:navigation allowed my left-nav menus (with indexmenu) appear with this template.
 +
 +==== Sidebar Toggle Idea ====
 +
 +I would like to sometime toggle the sidebar that I am using. This is especially true when I am doing housekeeping on the content, I'd like to see the Indexmenu navigation, but for most readers using the standrad sidebar is what is needed. I don't want to use both sidebars as it reduces screen estate.
 +
 +So my suggestion is that we have a toggle in the sidebar page itself that lists alternatives - defined in config - these can be clicked. The question is is: it on all the time, on all pages till changed again or only on this page? Normally when I do this I want it all the time, on all pages but can see that it may be useful to only apply to this page or only this once.
 +
 +It may be better implemented as an additional plugin?
 +
 +--- [[user>lizat|Liz T]] //2020-04-05 12:29//
 +
 +==== Apply different Theme to a Page ====
 +
 +I have some pages that I would like to look a little different. I cuold apply a dffernt template using LoadSkin but  would rather be more consistent than that.
 +
 +Is it possible to apply a theme to a page or namespace somehow?
 +
 +If not is it a possible future feature? 
 +
 +--- [[user>lizat|Liz T]] //2020-04-05 12:43//
 +
 +> You can use ''themeByNamespace'' option to apply different Bootstrap/Bootswatch theme in your namespaces. Enable the option and create ''bootstrap3.themes.conf'' configuration file into ''<dokuwiki>/conf'' directory with this syntax:
 +
 +<code>
 +# Namespace         Bootswatch Theme
 +playground          default   # Default theme
 +playground:optional optional  # Optional Bootstrap theme
 +playground:united   united    # Bootswatch United theme
 +</code>
 +
 + --- [[user>lotar|Giuseppe Di Terlizzi]] //2020-04-05 16:45//
 +
 +==== Change font-family in bootstrap3-default-theme (Vanilla) ====
 +How do you change the font family? When I change the font family in userstyle.css (for example Verdana for testing purposes), the change becomes active but the headlines no longer appear bold.
 +What should the code in userstyle.css be, so that for example the fonts Lato or Open Sans are displayed correctly (also in headlines)? – Thanks
 +
 +Found a way:
 +  - Installed the plugin [[ plugin:fontface|"Fontface" ]]
 +  - Settings in Fontface:
 +    * plugin»fontface»technique -> Google Fonts
 +    * plugin»fontface»fontFile -> Lato:400,700
 +    * plugin»fontface»fontName -> 'Lato'
 +    * (for fontFile2: plugin»fontface»fontFile -> Open+Sans:400,700 | plugin»fontface»fontName -> 'Open Sans')
 +
 + Addition in conf/userstyle.css:
 +<code .css>
 +body   
 +    {
 +    font-family: 'Lato', 'Open Sans', Arial, Verdana, sans-serif;
 +    font-size: 15px;
 +    margin: 0.0em;    
 +    }
 +
 +h1,h2,h3,h4,h5,h6
 +{
 +    font-weight: 700;
 +}
 +</code>
 +
 +
 +
 + --- [[user>anhe|anhe]] //2020-04-08 13:56//
 +
 +
 +==== Placeholder in sidebar ====
 +
 +Is there a possibility to use placeholders in the sidebar? \\
 +//For example:// $NS$, $PAGE$, @NS@ or @PAGE@ do not work inside any syntax.
 +
 + --- [[user>juergen-aus-zuendorf|juergen-aus-zuendorf]] //2021-07-21 17:37//
 +
 +==== Data plugin integration ====
 +I'd love better integration with the [[plugin:data|Data Plugin]]
 +
 +For example it would be great to have some bootstrap3 components as data types, like progress bars, badges, labels.
 + Right now I am using custom aliases with the wiki type, prepending and appending the code like ''%%<badge>%%'' and ''%%</badge>%%''. It gets ugly with the progress bar, I get a width of 0 in dataentries so I need to do some CSS.
 +
 +Some form of conditionnal types would be nice (like a set of values in a custom alias, for example "To Do", "In progress", "Done"), and the label type would change depending on the value. I don't really know how to do this easily without editing the style sheets.
 +
 +Anyway thanks for a great plugin and theme, I love it !
 +
 +If you want to see our wiki (in progress), or add it to the list of wikis using the template, the address is : https://wiki.apprentilab.cnam.fr/doku.php (in French).
 +
 + --- [[user>apprentiLAB_Suzanne|apprentiLAB_Suzanne]] //2021-09-21 16:43//
 +
 +====Basic colour changing in bootstrap3====
 +I need to change the colour of ''monospace'' text in bootstrap3, which css/less file should I be editing to do this?
 +
 +==== showPageIcons in the scrolling side menu ====
 +
 +Why placing the print/share button on top of the page, and not inside the side menu? Is there an option to place them inside the menu on the right? 
 +
 +
 +
 +==== Are the unminified versions of the bootstrap.min.css files available for the bootswatch themes? ====
 +
 +I want to do some minor tuning of the cerulean them in particular so I really need the unminified version of the bootstrap.min.css file so I can see what I'm changing.  Are these files downloadable?
template/bootstrap3/discussion.1552687163.txt.gz · Last modified: 2019-03-15 22:59 by lotar

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki