Multiple file extensions being trimmed #208

Closed
kapooostin opened this Issue May 10, 2012 · 9 comments

Projects

None yet

4 participants

@kapooostin

This is what I have in vendor folder.
And this I get after updating a site with images in documents folder.

On 5.1.2 everything was fine.

@balupton
Member

Hrmm... Do they work if you put them inside the src/files directory (also called src/public) instead of src/documents?

Generally, as a rule, unless you want to do extension rendering on them (render one extension to another) then they should go in src/files...

Does that help?

@kapooostin

Yes, files from public are transferred correctly, except for files with
dots in names (libraries in vendor, for instance).

I put images in documents folder to make them accessible inside layout
to check dynamically whether do they exist and to use this data on a page
(make links only to existing images).

If the information about files in public folder is available in the same
way as it is for documents, then I'll leave files there. But anyway, this
was introduced in the last update, I don't know is this a feature or a bug.

@melchiorb

I'm having the dots-in-filenames issue since 5.2.1.

src/public/vendor:

jquery-1.7.1.js
jquery.pjax.js
modernizr-2.0.6.js

out/vendor:

jquery-1.js
jquery.js
modernizr-2.js

@balupton
Member

Will look into the extension thing.

As of DocPad 5.2, everything is now added to the database (not just documents). So you can access the files via @database.findAll(...) as you would. More docs on this is coming.

Thanks guys :)

@kapooostin

Thank you :)

I guess now we should ask for more detailed documentation not for new
features.

@kapooostin

Yep, “everything is in a database” rules!

@DjebbZ
DjebbZ commented May 12, 2012

I confirm there's a problem with 'dots-in-filenames'. I have similar results, and some files are even not copied at all in the out directory, so I had to copy them manually.

@balupton balupton was assigned May 15, 2012
@balupton
Member

Extensions problem fixed in the just released 5.2.2.

@balupton balupton closed this May 17, 2012
@balupton balupton added a commit that referenced this issue May 17, 2012
@balupton balupton v5.2.2. Bug fixes.
- v5.2.2 May 17, 2012
	- Fixed [#208](#208) - Multiple
file extensions being trimmed
	- Fixed [#205](#205) - Name
collisions are causing not all files to be copied
	- Changed file `id` to default to the `relativePath` instead of the
`relativeBase`
	- Finding layouts now uses `id: $startsWith: layoutId` instead of `id:
layoutId`
588e40a
@kapooostin

Works fine, thank you :)

@Ferrari Ferrari pushed a commit to Ferrari/docpad that referenced this issue May 21, 2012
@balupton balupton Fixed #208 - file extensions being trimmed 7189e0d
@balupton balupton added a commit that referenced this issue Oct 23, 2013
@balupton balupton v5.2.2. Bug fixes.
- v5.2.2 May 17, 2012
	- Fixed [#208](#208) - Multiple
file extensions being trimmed
	- Fixed [#205](#205) - Name
collisions are causing not all files to be copied
	- Changed file `id` to default to the `relativePath` instead of the
`relativeBase`
	- Finding layouts now uses `id: $startsWith: layoutId` instead of `id:
layoutId`
565c1f5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment