Skip to content

copy divs for toolbox from toolbox.tmpl to PageTemplate#6

Open
BFallert wants to merge 2 commits into
kitodo:masterfrom
BFallert:fix/toolbox
Open

copy divs for toolbox from toolbox.tmpl to PageTemplate#6
BFallert wants to merge 2 commits into
kitodo:masterfrom
BFallert:fix/toolbox

Conversation

@BFallert
Copy link
Copy Markdown
Collaborator

@BFallert BFallert commented May 16, 2019

First i tried to use toolbox.tmpl. Then i moved the html contect from Resources/Public/PluginTemplates/toolbox.tmpl to Resources/Private/Templates/DetailTemplate.html.

Toolbox now possible to open and work out of the box.

Incorrect html code with two selected tools

When i include toolbox.tmpl in my typo3-element i get several blank repetitions of headline and ### TOOL ### as many times as many tools from "Available Items" i select.

Example:

<div class="tx-dlf-Toolbox">
    <div class="dropdown-menu">
        <input type="checkbox" id="checkbox-menu2">
        <label for="checkbox-menu2">Werkzeuge</label>
        <ul>
            <li>
                <div class="tx-dlf-FulltextTool">
                    <div class="dropdown-menu">
                        <input type="checkbox" id="checkbox-menu2">
                        <label for="checkbox-menu2">Werkzeuge</label>
                        <ul>
                            <!-- ###TOOLS### -->
                            <li>###TOOL###</li>
                            <!-- ###TOOLS### -->
                        </ul>
                    </div>
                </div>
            </li>
            <li>
                <div class="tx-dlf-ImageDownloadTool">
                    <div class="dropdown-menu">
                        <input type="checkbox" id="checkbox-menu2">
                        <label for="checkbox-menu2">Werkzeuge</label>
                        <ul>
                            <!-- ###TOOLS### -->
                            <li>###TOOL###</li>
                            <!-- ###TOOLS### -->
                        </ul>
                    </div>
                </div>
            </li>
        </ul>
    </div>
</div>

@sebastian-meyer sebastian-meyer added the bug Something isn't working label Dec 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants