To change the layout of your Jagdkataster result output, you'll primarily need to modify the HTML templates used for rendering the output. Based on the files you’ve shared from the JagdKataster repository, here are the steps and files you might need to consider:
1. Locate the Template Files
The layout of the output is defined in HTML template files. The relevant templates in your repository are:
./repos/JagdKataster/docs/_templates/layout.html
./repos/JagdKataster/huntregister/help/source/_templates/layout.html
Both files appear to have similar structures, and any changes you make in one will likely need to be reflected in the other to maintain consistency across different outputs.
2. Modify the Layout Structure
Within these template files, you will find various blocks where you can make changes:
-
Header and Footer: You can adjust the header and footer by modifying the {% block header %} and {% block footer %} sections. This includes changing navigation links and overall styling.
-
Main Content Area: The {% block body %} section is where the main content is rendered. You can change how results are displayed in this block. For example, you might want to add new divs, modify the existing content structure, or change the CSS classes to alter the appearance of the output.
-
Sidebar: If your output includes a sidebar, you can modify the {% block sidebar %} section to change the content or layout of the sidebar.
3. Adjust CSS Styles
Changes in layout often require corresponding CSS adjustments. The relevant CSS files include:
./repos/JagdKataster/css/style.css
./repos/JagdKataster/anleitungen/_static/css/custom.css
./repos/JagdKataster/huntregister/help/source/_static/css/custom.css
You may need to add or modify CSS rules in these files to support your new layout. Look for classes that you are using in your HTML blocks, and ensure they align with the visual design you are aiming for.
4. JavaScript for Interactivity
If your layout changes involve interactive components (like modals, dropdowns, etc.), you may also need to modify or add to the JavaScript files, particularly:
./repos/JagdKataster/js/main.js
This file handles various UI interactions, and any new features you want to implement will likely require adjustments here.
5. Testing Your Changes
After making changes to the HTML templates and possibly the CSS and JavaScript files, be sure to test your output in a browser. Check for responsiveness and ensure that all interactive elements work as expected.
Example Changes
- Adding a new section for results: In the
{% block body %} section, you might add a new <div> to display additional information or results in a different format.
- Customizing the Footer: Change the footer template to include more links or contact information.
Conclusion
By modifying the layout in the mentioned template files, adjusting the CSS for new styles, and ensuring any necessary JavaScript is in place, you can successfully change the layout of your Jagdkataster result output. Be sure to keep a backup of original files before making significant changes, and test thoroughly to ensure visual and functional integrity.