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

Allow CSS to differentiate between pages #111

Closed
drn05r opened this issue Nov 30, 2020 · 1 comment
Closed

Allow CSS to differentiate between pages #111

drn05r opened this issue Nov 30, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@drn05r
Copy link
Collaborator

drn05r commented Nov 30, 2020

It is option difficult to get a specific page to render as you would like. Often this can be overcome by tweaking the CSS. However, if you are not carefu you can change other pages that share elements with the same HTML class names. Being able to dynamically modify the template (e.g. with an id or class for the body or other HTML element) based on te current page would make it easier to make CSS tweaks without worrying about unseen side effects.

@drn05r drn05r added the enhancement New feature or request label Nov 30, 2020
@drn05r drn05r added this to the 3.4.3 milestone Nov 30, 2020
@drn05r drn05r self-assigned this Nov 30, 2020
@drn05r
Copy link
Collaborator Author

drn05r commented Nov 30, 2020

The page_id could be used as the identifier of the page an then used as a pin that can be inserted as the id for the body tag of the template, e.g.

However, this would require modifying the ScreenProcessor to set a map for page_id using the screenid for the plugin and probably the dataset if set. It will also require modifying XHTML.pm to have a print:pin function so pins can be included within element attributes like for the body element above. This still will not full differentiate all page as any statically generated pages will still come back with the page_id static.

Further improvement may be needed for this dependent on how this new functionality is used.

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

No branches or pull requests

1 participant