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

dataviewJS file.path not detected by sluggify #207

Open
jonathanhung opened this issue Sep 21, 2023 · 0 comments
Open

dataviewJS file.path not detected by sluggify #207

jonathanhung opened this issue Sep 21, 2023 · 0 comments

Comments

@jonathanhung
Copy link

when using dataviewJS file.path, the paths are rendered as .md and never get updated.

	const dataviewUtils = require(app.vault.adapter.basePath + "/999 Meta/050 Files/dataviewUtils.js");

	const postTitles = dv.pages('"200 Posts"').file.name;
	const postPaths = dv.pages('"200 Posts"').file.path;
	
	

	function makeElement(path) {
		dv.el("a", "this is some text", { attr: { href: path } });
		}
		
	postPaths.forEach(makeElement);
		

Returns a link to a markdown file:
image

Using dataview LIST gets correctly sluggified.

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

No branches or pull requests

1 participant