Drupal 8: how to link a facet to a custom facet processor module - facet

I've found some guidance on creating a custom facet module in Drupal 8; however, they skip instructions on how to link the facet to the custom processor.
http://tech.dichtlog.nl/facets/2015/11/30/facets-processor.html
Just writes, "Apply the processor to the facet"
Elsewhere, I've found references to this linking being done in Configuration => Facets => Edit a facet => Advanced Settings. However, I don't see any option to use a custom facet here, even after I installed the above example facet module to test this.
Thanks for any help.

I think I've found the answer. Once you create a custom facet module that has the required annotation above the class and enable the module, then you will see the annotation's label in Configuration => Facets => edit a facet => Facet Settings with a checkbox to link this processor to your facet. For example, "Hide start with some letter" will appear in the Facet settings.

Related

Issues setting up MXChip, VSCode, Arduino, MX3166 environment on MAC

Error Presented: #include errors detected. Please update your includePath. IntelliSense features for this translation unit(/Users/x/Documents/Arduino/generated_examples/GetStarted_3/GetStarted.ino)will be provided by the Tag Parser.
For example, the following files are not found:
#include "AZ3166WiFi.h"
#include "AzureIotHub.h"
#include "DevKitMQTTClient.h"
What have I done:
Arduino is installed (and runs), Arduino is added to the path as /Applications in the UserSettings.pref. DevKit was installed, pretty much everything works, except this intellisense/libraries location problem.
Actually this is an issue coming from the Microsoft C/C++ extension.
Here is the solution to fix this issue:
Press F1 and key in 'settings' and select the Preferences: Open User Settings
then add this setting to your user settings
Press F1 and key in 'cpp' and select the C/Cpp: Edit Configurations...
this will open / create the c_cpp_properties.json file, add the path of Arduino package into the include path:
You can get more detail from C/C++ for VS Code.
Although it might seems to work better with Tag Parser, I believe it's not the solution, and actually it should default to Tag Parser.
Comments in Default Settings, C/C++ section say:
// Controls the IntelliSense provider. "Tag Parser" provides "fuzzy"
results that are not context-aware. "Default" provides context-aware
results and is in preview mode - member list, hover tooltips, and
error squiggles are currently implemented. Features not yet
implemented in the new default engine will use the tag parser engine
instead. "C_Cpp.intelliSenseEngine": "Default",
// Controls whether the IntelliSense engine will automatically
switch to the Tag Parser for translation units containing #include
errors. "C_Cpp.intelliSenseEngineFallback": "Enabled",

Sylius theming and multilanguage

im new to sylius and wanted to know does sylius have theming and multilanguage? I cant find multilanguage option anywhere only language selection. And themes should be awesome feature still cant find that. Thank for reply.
Now Sylius is having theming facilities:
http://docs.sylius.org/en/latest/bundles/SyliusThemeBundle/index.html
Short explanation:
Themes reside in the 'app/themes/' folder (you can have multiple folders with different themes). The only required part for setting the theme is a composer file within the folder (each respective folders) and just add the name parameter. eg.
{
"name": "theme-name"
}
for having a grouping of themes you can also have the name like 'group-name/theme-name'.
You need to activate your theme in your config file. For that, just add
sylius_theme:
sources:
filesystem: ~
Now when you are in the administrative panel at the backend, you can select this theme from the dropdown list while customising a 'Channel'.
You can also override any bundle and customise it. For details please check the documentation.
As of version 0.13 it now is fully i18n. You can even add translatable entities using the ResourceBundle.

Yii - Using alternate view file in Yii User module

Is it possible to use a custom view file in a module (eg. user) in order to keep the module (3rd party) intact?
Somehow extend the module, with a views folder that holds my custom views.
The path to the module theme views should be
/{{your_app_name}}/themes/{{theme_name}}/views/user/
Copy all of the module views from the folder
/{{your_app_name}}/protected/modules/user/views
to the mentioned above folder and that will do the job. After that you could customize the views as you like.
Copy user module view files to <app>/themes/<current_theme>/views/user/. More general, customize module views using the folowing "formula": <app>/themes/<current_tehem>/views/<modules_name>/<controller_name>/<view_file_to_customize>.php
Use a theme. For a module named "user" and a view path of "profile/edit", create "/themes/flashy/user/views/profile/edit.php". You can also define a new layout in "/themes/flashy/layouts/column2.php". Then add to your configuration file in "protected/config":
return array(
// many settings...
'theme' => 'flashy',
For the module "user" you pointed out, unfortunately its controllers use absolute paths for their layouts (e.g. "//layouts/columns2") so AFAIK you can't define distinct layouts for the application and this module.
See also the official guide chapter on theming with Yii.
I disagree that in many help forums of the Internet, when someone asks abot theming a module, everyone suggests a path alias to the themes folder. I think this is wrong, because it implies modules to be splitted, and modules are supposed to be a black-box that can be used across projects. The advice given in such forums would only be valid if a theme is shared among several modules. If someone wants to "package" a theme inside a module, she can:
-add an init function to the controller of the module
-inside that init, use the class attribute layout and a path alias, like this, supose a module whose id is "Sample":
then you add, to SampleCOntroller.php:
public function init() {
//BELOW: it will use the layouts/main.php inside the module.
$this->layouts = "sample.views.layouts.main";
}

Creating Dijit > Editor > Plugins

I have been googling this subject for hours. Does anyone have an examples of a custom plugin being deployed in Dijit's Editor. I'd be really interested to look at it because I have been following this without much success and of the few examples that exist out there none of them come with working examples :(
(I'm looking to create a pulldown menu like the one for font selection)
There's no difference between a custom plugin and a "builtin" plugin, so I suggest just looking at a small builtin example like TabIndent, and then move on to the font selection itself.

How do I write a Photoshop Extension (8BX) plugin?

The Adobe Photoshop CS3/4 SDK has a lot of examples for Filter, Import, Export, etc plugins but I haven't found anything that illustrates how to write a 8BX plugin.
The reason is, I need to write one is to add a new drop-down menu to the Photoshop root toolbar (where it displays File, Edit, Image ... Window. Help drop-down menus). I have seen a product like OneSoftware install an 8BX plugin into Adobe Photoshop CS3\Plug-Ins\Extensions directory that causes PS to add adrop down menu for OneSoft. That suggests this is a solvable problem :-)
I tried by changing an existing plugin in the SDK samples but no go. Specifically I modified the resource file:
resource 'PiPL' (ResourceID, plugInName " PiPL", purgeable)
{
{
Kind { **Extension** },
Name { plugInName "..." },
...
Despite using the Extension Kind, PS never loads the plugin. It doesn't generate any compile-time or load error either.
Does anyone have any ideas on how to go about doing this?