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

File name too long in asset #59

Closed
dohomi opened this issue Feb 14, 2013 · 6 comments
Closed

File name too long in asset #59

dohomi opened this issue Feb 14, 2013 · 6 comments

Comments

@dohomi
Copy link

dohomi commented Feb 14, 2013

There is an issue, if you include a lot (or simply all) files of a website through AssetViewHelper. PHP error will show up with: File name too long: access to (...).

If for all files a name is getting set, the names get shorter, but still it can be a huge name of string. I think it would be nice to have an option of getting only one hashed string as name or for debug purpose all names inside of the generated typo3temp file.

Cheers! Dominic

@NamelessCoder
Copy link
Member

Hi Domi,

Try plugin.tx_vhs.assets.mergedAssetsUseHashedFilename = 1 with the latest Git master - should fit your purpose :)

Cheers,
Claus

@NamelessCoder
Copy link
Member

Note: last comment edited - TS example was incorrect. In case you only read the notification emails!

@dohomi
Copy link
Author

dohomi commented Feb 20, 2013

Hi Claus,

I'll check it out! Currently still reordering all my assets :)
Cheers d

@NamelessCoder
Copy link
Member

Hi @dohomi - have you had a chance to test this out? I'm fairly sure it works just as it should, but again I'd like confirmation from you (you can just close the issue if it's agreeable).

@NamelessCoder
Copy link
Member

Impatient :) @dohomi I've tested this one on my setup and it does compact the file name. If you'd like further refinement, for example the option to manually set the short name used for merged Assets, feel free to open another issue with a feature request ;)

Cheers,
Claus

@dohomi
Copy link
Author

dohomi commented Mar 13, 2013

Hi Claus,
sorry I've been on short holiday trip without laptop :) your code works as expected on my playground website. But currently I moved away of TYPO3 including JS and start working with CanJs and Steal for compacting - concanating all files. Trying to optimize the procedures with Google Closure...
Life could be easier :)

Cheers from far East!
domi

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