Drupal 8, Some module's checkbox are disabled. - drupal-8

I'm a newbie in Drupal 8. I have a question about extends/modules.why are some modules checkbox disabled and I can't check themes.
As you could see, I can't check Mega Slider !!

There may be two cases :-
The module is already enabled and you are unable to check because in drupal 8 you have another tab known uninstall to disable the module. Here you can check the module and disable the module for your website.
Please see the attached pic for uninstall tab in drupal 8
The module you are trying to check is disabled because it has some dependency of other modules to be enabled or uninstall first.

Related

How to change from 10 to 100 (items per page) in publisher and devportal

This is second question today.
Does anyone know how to change the apis view number below from 10 to 100 by default?
(API Manager 4.0 using)
Thanks.
This is not configurable out of the box. In case of developer portal, you may need to do customization for ApiTableView.jsx or use option of changing it from the "Items per page" drop-down itself.
There is no config to change this value. You will need to do the customization in the source code files. For the publisher portal, you need to update the TableView.jsx file. To do this you need to copy the specific file to publisher/override/src directory, update it with changes and finally build the react app.
Step 1: Copy the TableView.jsx to <API-M_HOME>/repository/deployment/server/jaggeryapps/publisher/override/src/app/components/Apis/Listing/TableView directory(you will be manually create the directory path to match the source file location)
Step 2: Make the necessary changes
Step 3: Build the react app.
Navigate to <API-M_HOME>/repository/deployment/server/jaggeryapps and run the following commands to install the npm packages and bootstrap,
npm install
npm run bootstrap
Once the above is completed run the following command npm run build:prod from the devportal directory.
Please refer the official documentation Advanced UI Customization for more information.

Ho Do I Restart Sitecore Server From Code?

We have a requirement to install Sitecore packages programmatically from a custom admin page. The package installation is working but once the package is installed I wanted to restart the Sitecore server from code.
Sitecore.Install.Installer installer = new Sitecore.Install.Installer();
I tried with installer.ExecutePostStep but not sure what action I need to provide to this function.
If anyone has done it before Please help .
Basically I wanted to execute the functionality from code what the two below check boxes are doing when we do manual installation.
The easiest thing will be to restart the Sitecore's application pool by a Restart-Application PowerShell command.
Find more details here.

Openedx Native installation : theme change not working

I have installed openedx using Native installation method. Now I want to change the default logo. As a test, i removed the logo from the folder /edx/app/edxapp/edx-platform/lms/static/images.
But when i open the localhost, its still there. (lms view).
In inspect view, the logo name appears as /static/images/logo.b6c374d66d57.png.
The same operation when I perform in devstack, The logo changes successfully.
What am I missing?
Since I am using the default theme, I think I don't need to configure anything regarding theme customization.
Ok, I am posting the answer as I figure it out. Maybe helpful for someone.
The application was service data from cache and I had to recompile the theme again. Following are the steps to compile the theme.
sudo -u edxapp bash
source /edx/app/edxapp/edxapp_env
cd /edx/app/edxapp/edx-platform
paver update_assets lms --settings=aws
If there are changes in cms contents, execute
paver update_assets cms --settings=aws

Drupal 8: configuration menu doesn't work

Drupal 8: configuration menu doesn't work. When I login and click on Configuration, I've got as below:
The website encountered an unexpected error. Please try again later.
Is it possible that this is hosting problem?
I've installed Drupal locally and have no this problem..
How to fix it and see configuration?
I've tried "one click installation" and install Drupal under another domain but this installation doesn't provide option for Modules as "list", "update", "uninstall" and allow only to download modules...
I was told that this on click installation out of date and I should install from Drupal.org but that installation also failed(see error above regarding configuration)
thanks.
I've updated to the new version and I also changed path during installation. It was localhost and I changed it on the path to the server of my host.
After mention above action I could see output.

Joomla 2.5.4 plugins does not appear on main site

I install Joomla 2.5.4 plugin System - Twitter Roll and set basic configuration which I know but it does not appear on main site infect any plugin which I installed does not appear on front site and there is no extra option in installed plugin to define some page where to show it.
Okay all i need to add
{twitter_search}Joomla{/twitter_search}
in my articles.