SP Online: Search and offline availability not visible under Site Settings [I am Site Admin]

This is very strange issue, I used to have option of ‘Search and offline availability’ under Site Settings, but suddenly it got disappeared.

enter image description here

Details:

Site: SharePoint Online

Permission: Site Collection Administrator & Site Owner

Any reason for this behavior ?

dramatically boost and increase wordpress speed, fix slow admin in 24hr for $20

If you want your content to rank, it’s vital that your site loads quickly. The faster the better. Page loading speed has a direct impact on the position of your site has in the search engine results. I will optimize and improve your WordPress site performance, speed and loading time. ✓ Page Caching ✓ Files Compression ✓ Enabling gZip Compression ✓ ultra-fast load time ✓ Browser Caching ✓ Database Optimization ✓ Optimize your websites Images ✓ Basic WordPress Security Fast Speed of Site means: Better User ExperienceLower Bounce RateHigher ROI & Conversion RatesBetter Ranking Google Search EngineHappy Visitors Delivery Includes: 1. Service As Promised! 2. Before & After Reports 3. Answering the Questions 4. Regards Still Unsure? Let’s Talk to clear it! Or You can Order Now. 100% Satisfaction

by: shanjutt11
Created: —
Category: WordPress
Viewed: 173


Magento 2 How to sort admin column in desc order?

I have a custom grid, I am trying to sort it in desc order What I did

Try 1:- In my Grid Collection:

protected function _renderFiltersBefore() {         $  orderUpdate = $  this->getTable('xyztable');         $  this->getSelect()->order('main_table.order_id', 'desc');         parent::_renderFiltersBefore(); } 

Try 2:- In uicomponent file:

<column name="order_id">             <argument name="data" xsi:type="array">                 <item name="config" xsi:type="array">                     <item name="sorting" xsi:type="string">desc</item>                     <item name="filter" xsi:type="string">textRange</item>                     <item name="label" xsi:type="string" translate="true">Order ID</item>                 </item>             </argument>         </column> 

here

Output: It sort like: 1, 10, 12, 2, 3, 4, 41, 42, 5

Expected Result: 42, 41, 12, 10, 5, 4, 3, 2, 1

I had spend couple of hours in this but didn’t find any solution. Please help me to solve this issue.

Magento2 Admin form for Image Upload

I have created a module in magento2 to upload image field. Saving the image hiding the image upload field option in backend

public function execute()     {         /** @var \Magento\Backend\Model\View\Result\Redirect $  resultRedirect */         $  resultRedirect = $  this->resultRedirectFactory->create();         $  data = $  this->getRequest()->getPostValue();         if($  data) {             if(isset($  data['is_active']) && $  data['is_active'] === 'true') {                 $  data['is_active'] = Notification::STATUS_ENABLED;             }             if(empty($  data['notification_id'])){                 $  data['notification_id'] = null;              }              if(isset($  data['image']) && is_array($  data['image'])){                 $  data['image']=$  data['image'][0]['name'];             }              else{                 $  data['image'] = null;             }             /** @var  \Dzinehub\PushNotification\Model\Notification $  notification */             $  model = $  this->notificationFactory->create();              $  id = $  this->getRequest()->getParam('notification_id');              if($  id) {                 try{                     $  model = $  this->notificationRepository->getById($  id);                 } catch(LocalizedException $  e) {                     $  this->messageManager->addErrorMessage(__('Notification no longer exists'));                     return $  resultRedirect->setPath('*/*/');                 }             }              $  model->setData($  data);              /* var_dump($  data);              die;*/                try {                 $  this->notificationRepository->save($  model);                 $  this->messageManager->addSuccessMessage(__('You saved the notification.'));                 $  this->dataPersistor->clear('dzpushnotif');                 if ($  this->getRequest()->getParam('back')) {                     return $  resultRedirect->setPath('*/*/edit', ['notification_id' => $  model->getId()]);                 }                 return $  resultRedirect->setPath('*/*/');             } catch (LocalizedException $  e) {                 $  this->messageManager->addErrorMessage($  e->getMessage());             } catch (\Exception $  e) {                 $  this->messageManager->addExceptionMessage($  e, __('Something went wrong while saving the notification.'));             }              $  this->dataPersistor->set('dzpushnotif', $  data);             return $  resultRedirect->setPath('*/*/edit', ['notification_id' => $  this->getRequest()->getParam('notification_id')]);         }         return $  resultRedirect->setPath('*/*/');         } 

Also, how to move the image from temporary directory using this function moveFileFromTmp. Any help on this issue?

admin bar acceder y registrarse wordpress

de ante mano muchas gracias por la ayuda. Estoy tratando que en wordpress se vea el admin bar para todos los usuarios registrados y no registrados con los enlaces de acceder y registrarse y que cuando se inicie sesión ambos links no sean visibles. Lo que sucede es que de momento solo tengo el enlace de acceder pero no se como agregar a este codigo el enlace de registrarse. Este codigo lo estoy agregando en funtions. de nuevo muchas gracias.

// always show admin bar function pjw_login_adminbar( $  wp_admin_bar) {     if ( !is_user_logged_in() )     $  wp_admin_bar->add_menu( array( 'title' => __( 'Log In' ), 'href' => wp_login_url() ) ); } add_action( 'admin_bar_menu', 'pjw_login_adminbar' ); add_filter( 'show_admin_bar', '__return_true' , 1000 );