Since the docs are not specific to Drupal, below is a Drupal specific answer.
How to connect search API to DDEV's solr, based on config from https://ddev.readthedocs.io/en/latest/users/extend/additional-services/
In order to connect Search API for Drupal 7 with Solr (https://www.drupal.org/project/search_api_solr):
Add a new Solr server via admin/config/search/search_api/add_server, or edit an existing one.
Under "Solr host" write <projectname>.ddev.local
Under "Solr path" write solr/dev
Related
I got wso2am-4.0.0 and deployed on my vm. I added some api with chinese name or businessowner name etc. I tried to query by content from devportal like '天气', but nothing listed. I guess chinese data in solr had no support by default. How to achive this ?
I am working on a Laravel api in localhost. How do I create a route that lists everything available in a resource like the WordPress api does here http://example.com/wordpress/wp-json/wp/v2?
Research shows that I can use the command php artisan routes to get a list of routes but how do I make this available to a user as an endpoint?
You can use the Route::getRoutes() method to get all routing data.
Just loop through the routes and use ->getPath() to generate the list of paths.
For all other properties take a look at the API at: https://laravel.com/api/7.x/Illuminate/Routing/RouteCollection.html
An alternative is this useul api document generator https://github.com/mpociot/laravel-apidoc-generator
i'm trying to install the securefiles module https://github.com/hamishcampbell/silverstripe-securefiles on my silverstripe 3 installation.
After renaming, uploading and dev/build
i get two checkboxes in security>groups>groupname>permissions named Access to Secured Files and Manage File Security Settings.
But that's all.
and when i want to access the files section in silverstripe i get a server error.
Can someone tell me what i need to modify that secure files is working?
That extension seems to be only compatible with SS2.x so for SS3 you might need to find another extension, update it for 3.x (http://doc.silverstripe.org/framework/en/trunk/changelogs/3.1.0) or try a custom approach like Silverstripe - google picks links on members only page
I am still learning alfresco and trying to get the feed dashlets to display a custom feed in share. The end goal is to have some sort of workflow in which the editing of certain components on a site site page within alfresco generate a feed element which will then be picked up by the feed dashlet. For now to test I created an xml feed file and put it in a document space in a collaborative site that was set to public and put its link in the feeds dashlet config but that doesn't work. Is there anyway to implement the functionality I'm after?
There are 2 options:
Create your own Dashlet. The current RSS-Feed Dashlet connects to the http connector(share-config-custom.xml), this is an external connector for which authentication is required. So copy the RSS-Feed Dashlet and rip this part out.
According to this JIRA enhancement , in Alfresco Enterprise 4.1.4 you can read internal Share Feeds! So this means you probably won't have to do any customization. So grap the SVN/GIT source of Enterprise tree and use Alfresco's code to build the Dashlet or extend/override it.
I want to store PDF and Image files in Drupal. By default Drupal seems to store binary/uploaded files into the filesystem. I want to to be able to store files so that - I can have workflows, metadata, IP information and URL aliases?
Update, am still stuck at how to create URL aliases for files on the file system. Drupal only seems to allow creating URL aliases to node content.
The simplest solution for Drupal is to use the Upload module, which is in core. The upload module allows you attach files to nodes. As you note, they are stored in the filesystem.
If you want to get more complex, you can build your own content types through the web interface by using the CCK family of modules (such as the filefield module or the imagefield module). Your files are still stored on the filesystem.
You could use CCK to create the metadata field you want.
You could use the workflow or rules modules to implement workflow.
IP information is recorded automatically by Drupal's logging module (either the database logging module, which logs to the database, or the syslog module, which logs to syslog).
URL aliases for nodes are available in core Drupal by enabling the path module (or download the pathauto module for automatic creation of aliases).
I tried Drupal's Upload module, FileField as well as uploading files using FCKEditor - I prefer the last one - it is closer to my specific scenario.
Creating an alias to the file will likely require some custom code.
It's not possible to simply create an alias using the Administer > Site building > URL aliases screen. I tried inserting a record with
insert into url_alias (src, dst) values ('sites/default/files/ChipotleArt.JPG', 'here-is-the-file.jpg');
That still didn't work. So, you will really likely need to write some custom code.