DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:wrap: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
plugin:wrap:discussion [2018-09-21 16:24] umaduplugin:wrap:discussion [2023-06-18 00:32] (current) – help 47.54.65.213
Line 5: Line 5:
 Please start new requests with a new heading. Please start new requests with a new heading.
  
-===== Problem: Own classes not exported in PDF with DW2PDF ===== +===== Extra line of padding added at the bottom every div =====
-I've created my own classes to highlight/mark text in conf/userall.css which are working fine when shown in the wiki. But they are not getting colored when I export the page as PDF with dw2pdf. I copied the same classes to conf/userprint.css but it still doesnt work. Original wrap-classes are getting printed fine. +
  
-Is there a step in the documentation missing? copied it all to the mentioned files (conf/userall.css ; conf/userprint.css)+Every "big" box try to create with this plugin has an extra text line's worth of vertical padding at the bottom that I can't seem to get rid ofI was previously using straight HTML div tables that worked fineI converted the syntax and CSS classes to be used by the plugin and everything's inflated, including default classes like "div round box 200px center." Is there something silly I overlooked or might be doing wrong? 
 +- Sloane, 2023 Jun 17
  
-Classes look like this:+===== QuestionEdit of nested WRAP in included pages looses target in editor ====== 
 +If I use nested WRAP (for multiple folded sections), then editing on included page doesn't work. With simple WRAP (not nested) editing still works. 
  
-<code>+==Example structure of pages for explanation== 
 +  namespace:start (page with include of page1, page2, page3) 
 +  namespace:page1 header-section without WRAP   
 +  namespace:page2 header-sections with simple WRAP (not nested)  
 +  namespace:page3 header-sections with simple WRAP (nested)  
 +To edit a header-section of start, page1 or page2, you can use the ''edit'' buttons on the start-page. If WRAP is used nested, then edit will open an empty page, if you try to edit via start-page. Opening the sub-page e. g. page3 first and then editing there will work. 
 +==Example structure of nested WRAP== 
 +  <WRAP> 
 +  This is the first section that should be seen all the time. But a part of it schould be folded. 
 +  ++++Folded part| 
 +  =====Header A===== 
 +  This will be collapsed initially but can be unfolded by mouseclick or general unfold. 
 +  <WRAP> 
 +  ++++Subdivision folded| 
 +  ====Header A.a ==== 
 +  This secondary part is initially folded, even if the primary part is unfolded. I can be unfolded by mouseclick or   general unfold. In edit-mode no text will be visible, if edited via start-page. You need to open page3 and edit there. 
 +  ++++ 
 +  Four plus for the end of the secondary folding, then the end of the secondary bloc by /WRAP... 
 +  </WRAP> 
 +  <WRAP> 
 +  ++++Another subdivision folded| 
 +  ====Header A.b ==== 
 +  This secondary part is initially folded, even if the primary part is unfolded. I can be unfolded by mouseclick or   general unfold. In edit-mode no text will be visible, if edited via start-page. You need to open page3 and edit there. 
 +  ++++ 
 +  Four plus for the end of the secondary folding, then the end of the secondary bloc by /WRAP... 
 +  </WRAP> 
 +   ++++ 
 +  Four plus for the end of primary folding, then the end of the primary bloc by /WRAP... 
 +  </WRAP> 
 +AchimR 2022-06-27
  
-.dokuwiki .wrap_hyellow { +===== Question: How to style Note-Boxes in PDF export of DW2PDF plugin? =====
-    background-color: rgb(255, 255, 139); +
-    overflow: hidden; +
-}+
  
-</code>+I'm struggling to understand which css file I should update to change the style of the boxes/admonitions when exporting the PDF via the DW2PDF plugin. 
 + 
 +The ''%%userall.css%%'' file in the /conf/ folder updates my wrap boxes fine in the wiki, but does not affect the PDF export.   
 + 
 +I've discovered that I can update them in the PDF by editing the ''%%style.less%%'' in the ''%%/plugins/wrap/%%'' folder but surely this would be overridden if I update the wrap plugin?  
 + 
 +Note for others following in the same footsteps: Make sure you disable the DW2PDF cache option in admin configuration too - will save you a lot of headache :) 
 + 
 + 
 + 
 +===== Question: Notes-Boxes =====
  
 +Is there a way, that the Text e.g. TIP: or WARNING: etc. for the Notes-Boxes could automatically inserted next to his Icon in the corresponding language? --- //[[roland.gantenbein@i-doit.ch|Roland Gantenbein]] 2018/11/23 14:11//
 ===== Request: Make 100% table width optional ===== ===== Request: Make 100% table width optional =====
  
Line 857: Line 895:
  
 >> I have one other idea. What does your `noPrefix` config option say? It should include 'tabs' in order for the tabs to be styled properly. --- [[user>ach|Anika Henke]] //2018-03-31 12:56// >> I have one other idea. What does your `noPrefix` config option say? It should include 'tabs' in order for the tabs to be styled properly. --- [[user>ach|Anika Henke]] //2018-03-31 12:56//
 +
 +===== Question: Poem/Music lyrics styling =====
 +
 +I find WRAP very useful (so thank you!), and recently almost successfully added this to my userstyles.css:
 +
 +<code css>
 +.wrap_poem {
 + white-space: pre;
 +}
 +</code>
 +
 +However, I find that while this does preserve line breaks as I want, it also results in huge gaps between verses. Inspecting the HTML, it looks like each verse becomes a ''<P>'' with a line break at the start and end. Is there any way to prevent this, or some other way using the WRAP plugin to display poems/song lyrics?
 +
 +===== Question: Dynamic Loading of Dark Template Mode =====
 +Is there a way to load the ''darkTpl'' config option dynamically, so we could use it together with the [[plugin:loadskin|Loadskin Plugin]]?
 +I tried simply putting ''$conf['plugin']['wrap']['darkTpl'] = 1;'' somewhere in the template's code but I guess it's not that simple.
 +
 + --- [[user>phl|phl]] //2021-02-16 14:13//
 +
 +===== XML support =====
 +Thank you for the plugin! Would it be possible to add support for export to XML (with the [[plugin:xml | XML plugin]])? To elaborate on that, I am writing a chronicle in Dokuwiki that I want to export to XML and subsequently Latex and print a book out of it eventually. I assign to some elements (span/divs or tables) classses that I want to format in a certain way. What I need from the wrap plugin is to preserve the classes in the XML output.
 +
 + --- [[user>galapah|galapah]] //2021-07-11 12:15//
plugin/wrap/discussion.txt · Last modified: 2023-06-18 00:32 by 47.54.65.213

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