question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enhancement: Link a page folder to a content type

See original GitHub issue

In some cases, a content type will only be used for a specific page folder. For example: the blog content type will be used for posts page folders.

It would be helpful to link the page folder to the content type, that way, while creating new content, Front Matter will not require to ask where the content needs to be created.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
estruyfcommented, Nov 22, 2022

@michaeltlombardi, thanks for the feedback. You might be right about the type mapping, but this is how the content types have worked for a while in FM. If we want to change this, it would be best to do it in another issue/implementation as it would not be related to this enhancement.

1reaction
estruyfcommented, Nov 9, 2022

Good news, you are now able to give it a try!

On the folder defined in the frontMatter.content.pageFolders setting, you can now set the content type(s) you want to use.

"frontMatter.content.pageFolders": [
  {
    "title": "blog",
    "path": "[[workspace]]/blog",
    "filePrefix": "yyyy-MM-dd",
    "contentTypes": ["blog"]
  },
  {
    "title": "docs",
    "path": "[[workspace]]/docs",
    "filePrefix": "",
    "contentTypes": ["doc", "page"]
  }
]
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change content type of a lot of folders and subfolders ...
Then insert a new step, select SharePoint and find the action to Update file properties. Specify the same site and library as in...
Read more >
Enhanced Folder Link Page - Egnyte Support
Gallery view features all the items in a folder, not just images. Improved item selection mechanism - works more like a native OS...
Read more >
Use content types to manage content consistently on a site
Content types can be defined for documents, list items, or folders. Each content type can specify: ... Create a new link to a...
Read more >
Links and attachments in PDFs, Adobe Acrobat
Set the page number and view magnification you want, either in the parent PDF document or in the file attachment, and then click...
Read more >
Links and Link to Document items - MacroView
These links are then listed in the MacroView DMF or Message file list when the library, folder or document set is selected. When...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found