Skip to content

Allow %file()% command to use ../ to access parent folders of a file #237

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

Closed
RealRaven2000 opened this issue Apr 25, 2023 · 2 comments
Closed
Assignees

Comments

@RealRaven2000
Copy link
Owner

RealRaven2000 commented Apr 25, 2023

The %file()% command currently supports accessing files from a location relative to where the included HTML file / picture is stored.

The same should apply to the %style()% command.

Sometimes we need to include file content of a file that is in a sibling or parent folder, so for this we will need to be able to use the sequence ../ to change to the parent directory and access its contents (or subfolders therein). This currently doesn';t work.

Examples:

%file(../../history/qf-5.16-de.html)%
%file(../faq.html)%
%style(../styles/quickfolders-reminder.css)%
@RealRaven2000
Copy link
Owner Author

Test version below. I needed the feature myself, I implemented it. Also updated News Splash accordingly. (I might add a new example to the variables tab as well)

smartTemplate-fx-3.17pre28.zip

To install, download the zip file and then drag it into Thunderbird Add-ons Manager (do not extract contents, because you cannot install it that way).

@RealRaven2000
Copy link
Owner Author

Implemented in v3.17 released 04/May/2023

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

1 participant