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

Conditional xwd properties & project properties #1370

Open
FayCross opened this issue Jan 7, 2025 · 1 comment
Open

Conditional xwd properties & project properties #1370

FayCross opened this issue Jan 7, 2025 · 1 comment

Comments

@FayCross
Copy link
Collaborator

FayCross commented Jan 7, 2025

Some conditions for some page optional properties include looking at the value of properties at project level.

For example, in basicPages.xwd the disableGlossary option uses the condition "parent.glossary!=undefined" to check whether a glossary has been added at project level.

This condition will not work when the page is in a chapter as the parent is now the chapter and not the project.

@torinfo - I have had a look at the code in toolbox.js that deals with conditions but am struggling to work out how it works. It would be good to be able to use something like project.glossary which would always look at the project level data. Any ideas?

@torinfo
Copy link
Collaborator

torinfo commented Jan 8, 2025

@FayCross I'll have a look at this. Should not be that difficult.

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

No branches or pull requests

2 participants