Could we make the file folder configurable (public://synonyms)?

I am running into problems because I need to export the synonyms to a folder outside of the default public file folders. Normally I would just get around this by creating symbolic links. However, in my server setup it causes problems when I try to make Drupal write to a symlinked folder and it also creates problems when I try to make my search engine read synonyms symlinked to my Drupal installation.

CommentFileSizeAuthor
#12 image (3).png39.25 KBisa.bel
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bjaxelsen created an issue. See original summary.

mrweiner’s picture

Could you clarify where you'd be exporting the file to if not into the public:// folder? I believe the only options would be inside of public:// or private://.

bjaxelsen’s picture

@mrweiner Yes - in my case I run a website on a server that is split into 3 parts:

1) The Drupal website,
2) A Solr server
3) A shared area (for exchanging synonyms and more)

For security I am not able to make 1 and 3 communicate directly, also I am not able to symlink outside their own file structure. So I need to write to the shared area, outside my Drupal installation.

_cosmos_’s picture

Yes, it would be nice to have an export path field.

aaron.ferris’s picture

Version: 8.x-1.x-dev » 2.0.x-dev
aaron.ferris’s picture

Agreed, this would be nice to have.

TODO

  1. New admin configurable option
  2. Use this config during export
  3. Schema updates
aaron.ferris’s picture

Version: 2.0.x-dev » 3.0.x-dev
aaron.ferris’s picture

Assigned: Unassigned » aaron.ferris

aaron.ferris’s picture

Assigned: aaron.ferris » Unassigned
Status: Active » Needs review
aaron.ferris’s picture

Testing steps

1. Enable the module
2. Configure the file directory for this module
3. Export synonyms

Expected: The configured folder should contain the exported synonyms

1. Reconfigure by removing the custom folder location

Expected: Synonyms should be exported to public://synonyms

isa.bel’s picture

StatusFileSize
new39.25 KB

Tested and it's working smoothly.
Check the screenshot for evidences.

isa.bel’s picture

Status: Needs review » Reviewed & tested by the community

aaron.ferris’s picture

Status: Reviewed & tested by the community » Fixed
aaron.ferris’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.