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

Collection items can't have same basename #674

Open
Krisseck opened this issue Jan 7, 2023 · 1 comment
Open

Collection items can't have same basename #674

Krisseck opened this issue Jan 7, 2023 · 1 comment

Comments

@Krisseck
Copy link

Krisseck commented Jan 7, 2023

Two items in a collection cannot have the same basename, only one of the items is created.

For example, if you have collection folder _posts, with files:

- example-post.blade.php
- some-folder/example-post.blade.php

Only one "post" will be created, whichever file was first encountered when scanning for files.

I think the problem is related to this:

$pageData->setPageVariableToCollectionItem($this->getCollectionName($file), $file->getFilenameWithoutExtension());
since page data is set to be keyed by getFilenameWithoutExtension, which is basename of the file.

@iSWORD
Copy link

iSWORD commented Feb 19, 2024

have you ever gotten to workaround this issue? i'm trying to implement a multilingual setup with jigsaw based on this directory structure.

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

2 participants