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

Unwanted prefix being added to file and category folder on creation #6

Closed
KirilOkun opened this issue Jun 8, 2014 · 5 comments
Closed

Comments

@KirilOkun
Copy link

First of all thanks for the great plugin. I like modx but not its insistence of storing code in the db. Your plugin makes using IDE much easier.

Got a strange issue though. upon creation of any element the type of element is being pre-fixed to the file name or category folder name.
For example creating a new chunk called 'test' results in the file called 'chunkstest.chk'
Creating a new chunk 'chunk1' in a category 'testcategory' results in 'chunkstestcategory/chunk1.chk'
It looks like lowcase name of the media source is being prepended. I looked through the javascript file but couldn't find where that happens.
Any suggestions?

Also the staticsaver setting staticsaver.include_category is set to no but the category folder is still being created.

@argnist
Copy link
Owner

argnist commented Jun 8, 2014

Can't reproduce issue with prefix. What other extras do you have?

@KirilOkun
Copy link
Author

On 06/08/2014 03:24 PM, argnist wrote:

Can't reproduce issue with prefix. What other extras do you have?


Reply to this email directly or view it on GitHub
#6 (comment)

It's a clean installation of Revo 2.2.4. static saver is the only extra
installed.
my skype is kiril.okun
if you want more real time info

@KirilOkun
Copy link
Author

Just uninstalled and reinstalled the plugin.
The same thing happens. chunkstestchunkc.chk

i installed modx from the develop branch of the git repository.
could it be that there were some new changes in 2.2.4?

On 06/08/2014 03:24 PM, argnist wrote:

Can't reproduce issue with prefix. What other extras do you have?


Reply to this email directly or view it on GitHub
#6 (comment).

@KirilOkun
Copy link
Author

On 06/08/2014 03:24 PM, argnist wrote:

Can't reproduce issue with prefix. What other extras do you have?


Reply to this email directly or view it on GitHub
#6 (comment).

so i played more with it and realized that the media source folder is
not being used. creating a new chunk 'test' creates a file
'chunkstest.chk' under 'elements' folder not in 'elements/chunks'. so it
looks like somehow 'chunks' gets prepended to the file name rather than
used as the folder name.

@KirilOkun
Copy link
Author

On 06/08/2014 03:24 PM, argnist wrote:

Can't reproduce issue with prefix. What other extras do you have?


Reply to this email directly or view it on GitHub
#6 (comment).

Finally figured it out and what a simple boneheaded thing it was. I
left out the trailing '/' in the media source definition.
After adding it everything works fine.
Sorry about that.

One suggestion though.
It would be nice during an element renaming to either rename an old file
or create new/delete old one. Otherwise i can see orphaned files
accumulating over time.
Thanks again for a great tool.

@argnist argnist closed this as completed Aug 6, 2014
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