I’m trying to add a button and Preview next to the Save and Publish button in EditView, but it’s complicated.
I already tried putting a plugin (strapi-plugin-preview-button) but it seems that it doesn’t work in version 4+ of Strapi.
So, I tried to edit in the EditView Header index.js (src/admin/src/content-manager/pages/EditView/Header/index.js), the button even appears, but after doing the build, it disappears.
I’ve already tried to edit directly in the build, but it also disappears the button after doing the build.
Do you have any tips, any tutorials to put this Preview button on the page before publishing?
System Information
Strapi Version: 4.1.10
Operating System: Linux Ubuntu
Database: SQLite3
Node Version: 16.0.0
NPM Version: 7.10.0
Yarn Version: 1.22.18
Related
i'm using code-server 4.8.0 on my android phone via termux, and it runs well. But i had a problem when i'm trying to build a C++17 project.
here is the details of my problems:
The extensions asked me for configuring a project when i opened a folder with CMakeLists.txt file. And it configured successfully
when i click the "build" button at the bottom of screen, it only gives me a message like "Activating Extensions" for about 5 seconds. But nothing happend. (It doesn't build the project)
Used C++ Compilers: Clang 15.0.3 aarch64-unknown-linux-android24
Sorry if my english are bad. Since this is my first questions at stackoverflow
I have tried to reinstalling the extensions and using the old version of it. But theres nothing happened.
I have created a new site using Docusaurus v2. I had installed the core as well as the theme-search-algolia packages as provided here.
When I run the site locally using npm run start, the Search bar is visible on the top as shown below.
Locally Started Site
However, when I use npm run build and then npm run serve, the Search bar is not visible.
Build and Serve
Would be great if you all can help me out with the problem here.
It's because previous builds were cached, preventing newly created themes.
Please update the document that if someone has already done npm run start or npm run build, then after installing and swizzling, he / she needs to run yarn docusaurus clear .
Refer to this link : Search Bar not shown in top nav
I am install magento latest version and it install successfully but my problem is when i am try to open the dashboard then no one error but not show login panel like images https://imgur.com/7bTHEVd it show blank like image
Are you on Magento 2.3.0, this happened to me the other day ?
It looks like it's a bug with:
#/vendor/magento/framework/View/Element/Template/File/Validator.php:138
Change line 138 from: $realPath = $this->fileDriver->getRealPath($path);
to:
$realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));
Please Note
- This is just a temporary fix to make it work on your local Windows machine, don't commit or push any of this code to production as it is editing the core files (not recommended)
So I'm using this plugin (https://github.com/katzer/cordova-plugin-local-notifications) for my app to have local notifications however it is not working when I have tested it.
I followed this tutorial https://devdactic.com/local-notifications-ionic/
I have tested the app on Ionic View on both android and iOS. I press the buttons but nothing shows up.
I have tried switching $cordovaLocalNotification with cordova.plugins.notification.local. when trying to use the functions in the plugin but that didn't work.
For what it's worth, the plugin does not show up in the package.json file but it does show up when I run the 'cordova plugins' command.
EDIT 1: The following is an image taken from my iPhone after I clicked Add notification
In my $ionicPlatform.ready(function(){...}), I have the following code
if(window.cordova && window.cordova.plugins.notification) {
alert('This alert doesn't fire');
}
The alert doesn't appear which means window.cordova.plugins.notification is unavailable just like the picture indicates
EDIT 2: On the ionic forums it was suggested that the plugin is not working on the Ionic View app as it is not one of the supported plugins. Please refer to: https://forum.ionicframework.com/t/katzers-local-notification-plugin/86748
However it does work when running/testing on a device(android) instead of the Ionic View app.
Add --save at the end of your command, something like:
cordova plugin add de.appplant.cordova.plugin.local-notification --save
It will add it to your config file.
Edit: Maybe you have error while using it. See error log by running the app with following command:
ionic run android -l -c
Finally running in the real device solved the issue.
I'm finding myself unable to add links ("a" tags) via the version of Products.TinyMCE in Plone 4.3b1. Switching to a non-visual editor and manually adding a link works fine, but using the chainlink icon in TinyMCE brings up an insert/edit popup window that doesn't appear to have anyplace to enter the destination address. There's a "search" text field, but entering text into it does not enable the "OK" button.
Here's a screenshot of what I am seeing:
Does anyone know if this is a known issue, or if I'm just completely missing how to enter links, or have any light to shed on this? Thanks.
UPDATE:
The problem seems to be that the popup's tabs are not un-hideing the relevant divs. When I use Firebug to switch div external_panel from class="hide" to class="show" the missing material appears; I also have to use Firebug to remove a disabled="disable" from the OK button in order to press it. A screenshot showing the segments is below. I've used the tgz file of the unified installer; is it possible that there is a variation between that installer's contents and the binary installer for the Mac?
The problem is showing up on a plain vanilla fresh install performed by
- untarring the 4.3b1 unified installer tgz file,
- running the command ./install.sh --target=/home/me/P4.3b1 from the installer's dir
- going to /home/me/P4.3b1/zinstance
- running the command bin/instance fg
- going in the browser to localhost:8080,
- creating a Plone instance and logging into it as admin
- going immediately to edit the front page of the site.
Version overview from site setup page is as follows:Version Overview
- Plone 4.3b1 (4302)
- CMF 2.2.7
- Zope 2.13.19
- Python 2.7.3 (default, Aug 1 2012, 05:16:07) [GCC 4.6.3]
- PIL 1.7.7 (Pillow)
I'm going to say cross browser compatibility issue. It looks like this in Firefox and works as expected: