-
Notifications
You must be signed in to change notification settings - Fork 186
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
Override metadata #6
Comments
This is a right place for a feature request! We’d like to do support metadata for templates in a future update. |
I second that. I love that you support MultiMarkdown – but then please do support its meta tags, too! |
I was wondering whether there was any update on this... are you still considering improving iA Writer Templates or is this going the way of the iA Writer Pro? (I sure hope it doesn't...) Or if templates are going to stay but no new features to be added, I'll invest the time to try to hack "it in by extracting metadata from P.S. we need something like this to put in addresses for our letters... |
@mb21 Our next release isn't focused on templates. We still intend on improving them and their interaction with metadata though. They aren't going anywhere and will be more flexible in the future. |
@mb21 P.S. You can currently use the |
@onebigclownshoe thanks! especially with CSS-pseudo-elements this seems to work quite well. We'll have to change our design a bit though and move the address down vertically below the header... |
+1 |
Any news on this one? |
We'll be looking into a template-focused release next year. Currently we're focused on iA Writer 5 for Mac. |
I could just about bear to use Adding more custom meta like |
So is there currently a way to set metadata to appear in an exported PDF with iA Writer, specifically at least title and author? Thanks! |
@zyv It is not possible to use MultiMarkdown metadata for this yet, no. But you can use the |
I suggest a workaround until the feature is added:
The result will be: I hope this could help someone. |
Some good news: it’s possible to override both |
Until the metadata feature will be released, I tried different workarounds for the footer and title template. But nothing works. Maybe someone can point me into the right direction. I tried it with a script like that: let getMetadata = function () {
let getSubtitle = document.getElementById("getSubtitle").innerHTML;
let subtitle = document.getElementById("subtitle");
subtitle.innerHTML = getSubtitle;
let getVersion = document.getElementById("getVersion").innerHTML;
let version = document.getElementById("version");
version.innerHTML = getVersion;
let getCustomer = document.getElementById("getCustomer").innerHTML;
let customer = document.getElementById("customer");
customer.innerHTML = getCustomer;
let getProject = document.getElementById("getProject").innerHTML;
let project = document.getElementById("project");
project.innerHTML = getProject;
};
// Wait for the 'ia-writer-change' event before acting
document.body.addEventListener("ia-writer-change", function () {
getMetadata();
}); Or with CSS variables in the template <style>
#project::after {
content: var(--variable-project);
}
</style>
…
<tr>
<th>Kunde:</th>
<td><span id="customer"></span></td>
</tr> and add a style tag into the document <style>
:root {
--variable-project: "ProjektXYZ";
}
</style> I guess the title and footer template cannot reach the body of the markdown content. Any ideas? |
Hi!
I'm not sure this is the right place to open a feature request. Please, forgive me if I'm at the wrong place.
Can you, please, allow us to override
data-title
,data-author
anddata-date
?My suggestion:
It's important that the date follows an international standard.
Thank you!
The text was updated successfully, but these errors were encountered: