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

Custom CSV Styles #30

Merged
merged 3 commits into from
Oct 22, 2015
Merged

Custom CSV Styles #30

merged 3 commits into from
Oct 22, 2015

Conversation

nilshoerrmann
Copy link
Contributor

  • allows custom CSV styles, e. g. using ; as delimiter instead of , (this is common in Germany)
  • fixes the {$workspace} path

@brendo
Copy link
Member

brendo commented Jun 24, 2015

Curious why WORKSPACE wasn't working? The new constant won't always be correct

@nilshoerrmann
Copy link
Contributor Author

I got 404 errors with the old constant (although the returned server path was correct). The change is a result of trial and error.

@nilshoerrmann
Copy link
Contributor Author

The main problem is, that {$root} returns a public URL (http://example.com) while the previous implementation of {$workspace} returned a server path (/something/public/www/example.com). Any reason for that?

@nitriques
Copy link
Member

I could be wrong, but WORKSPACE has always been a server path... no ?

@nitriques
Copy link
Member

Just like EXTENSIONS

@nilshoerrmann
Copy link
Contributor Author

That might be true in the backend, but not on the frontend. The system param $workspace has never been a server path.

@nitriques
Copy link
Member

O I was thinking about the PHP constant... Sorry.

@nilshoerrmann
Copy link
Contributor Author

It's difficult :) It's the $workspace parameter as we use it in the DSE. So this should be an URL in my eyes. Remote Data Source grants access to $root and $workspace but the first will be converted to an URL and the second to a server path right now.

@nilshoerrmann
Copy link
Contributor Author

It it's of course possible that I completely misunderstood something.

@nitriques
Copy link
Member

Oooo. Nice mix up :)

@nilshoerrmann
Copy link
Contributor Author

The new constant won't always be correct

@brendo, can you please give me a hint when this wouldn't be correct. We are using these changes without issues so far.

@brendo
Copy link
Member

brendo commented Oct 21, 2015

@brendo, can you please give me a hint when this wouldn't be correct. We are using these changes without issues so far.

And for the majority it'll be fine :) It's just if a developer plays with the constants of Symphony to rename /workspace as something else.

@nilshoerrmann
Copy link
Contributor Author

And how can I fix this? Because the original WORKSPACE is returning a server path and not a URL as it should.

@nitriques
Copy link
Member

I am ok with it. Right now, this is a bug. (WORKSPACE vs URL).

nitriques added a commit that referenced this pull request Oct 22, 2015
@nitriques nitriques merged commit 8349240 into symphonycms:integration Oct 22, 2015
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

Successfully merging this pull request may close these issues.

3 participants