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

List style in combination with struct list #444

Open
Juergen-aus-Zuendorf opened this issue Oct 28, 2021 · 3 comments
Open

List style in combination with struct list #444

Juergen-aus-Zuendorf opened this issue Oct 28, 2021 · 3 comments
Labels

Comments

@Juergen-aus-Zuendorf
Copy link
Contributor

Hi,

when I try to output an aggregation as a list using the struct plugin, a line break is inserted in the PDF between the list item (::marker) and the value. Here is a simplified example for the struct aggregation syntax from the plugin page:

---- struct list ----
schema: schema_name
cols: %pageid%, other, cols
----

The PDF looks like this:
Example

The debug mode displays the listing correctly. All my attempts with modifying CSS have failed. So, what can I do?

Regards
Juergen

@Juergen-aus-Zuendorf
Copy link
Contributor Author

The same thing happens using the list aggregation of the data plugin (datalist)

@Klap-in
Copy link
Collaborator

Klap-in commented Oct 12, 2022

Please check also with &debughtml=html how the html looks before it feed to mpdf.
From there you can maybe also discover which html is feed to mpdf. The mpdf is a bit picky and has some limitation in the css supported. I guess the ::marker could be one of these limitations.

https://www.dokuwiki.org/plugin:dw2pdf#how_to_collect_more_debug_info

@Juergen-aus-Zuendorf
Copy link
Contributor Author

For a page with this syntax:

====== Spielplatz ======

---- struct list ----
  schema : cms_gueltig
  cols   : cms-link, cms-kap
  filter : %pageid%=redaktionssystem:ccms:meta:bbv00:m0000160.006.v01
  max : 10
  csv : 0
----

... the html output looks as follows:
image
... with this code:

<h1><bookmark content="Spielplatz" level="0" /><a name="playgroundplayground__spielplatz">Spielplatz</a></h1>
<div class="level1">
	<div class="structaggregation listaggregation">
		<ul>
		<li class="level1">
		<div class="li">
			<div class="struct_page">
				<a href="/wiki/doku.php?id=redaktionssystem:ccms:module:bbv00:m0000160.006.v01" class="wikilink1" title="redaktionssystem:ccms:module:bbv00:m0000160.006.v01" data-wiki-id="redaktionssystem:ccms:module:bbv00:m0000160.006.v01">M0000160.006.V01</a> 
			</div>
			<div class="struct_text">Sicherheit </div>
		</div>
		</li>
		</ul>
	</div>
</div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants