PostMan- PowerSchool - Office365- Custom Connectors P4

Part 4

Power Platform Custom Connector
(I always build my stuff in Solutions, click here for more information about PowerPlatform Solutions)

1. Create and Name the Custom Connector

2. Scheme = HTTPS

3. Host is 

PostMan- PowerSchool - Office365- Custom Connectors P3

Part 3

Create a Bearer Token to make API calls using PostMan 

(You should have your newly installed plugin available to copy and paste Client ID and Client Secret)

PostMan- PowerSchool - Office365- Custom Connectors P2

Part 2

Install the Plugin in PowerSchool

  1. Log in to your PowerSchool Admin account 
  2. Select System under Setup in the main menu 
  3. Select System Settings under the Server section 
  4. Select Plugin Management Configuration 
  5. Click Install 
  6. Select the plugin file (XML) you just created to install 
  7. Click Install 

 

Part 3>

PostMan- PowerSchool - Office365- Custom Connectors P1

Part One

Create the Plugin for PowerSchool for Office
(Thank You BlayneC

Twig hard coded image with link field conditional Drupal 10

If you need an Image hard code such as a social media icon, but only want to display when a certain link field is filled out.... Here's your twig code.

My link field is field.hudl.url replace it with your link field.

The twig:

<div id="social">
{% if content.field_hudl_link is not empty %}

Twig render image field Drupal 9 Template

  <div class = "image"> 
   Zoe
{% set image_url = file_url(node.field_YOUR_FIELD.entity.getFileUri()) %}
  <img src="{{ image_url }}") >
  </div>

Mobile Device Scrolling to the Right- Desktop Div causing issue? Check first.

When dealing with a mobile design coming from a custom webpage that needed a lot of regions changed on it to not use the branding of the entire site, particularly, no side bars and fixed width. My mobile design was scrolling right because of extra space on the right and you could only see it on an actually mobile device. Mobile device simulators do not catch it.

If you have a scrolling issue in mobile, sometimes it is a div on the desktop page causing the issue.  Using "position: fixed", will break you Y axis scroll (Up and Down).

 

Infographic Hover Effect on Image Map - Mouse Over JS HTML Twig

I had the hardest time piecing all this together.  One of the reason was because when you search for image maps, you get a bunch of maps. However after hours of searching and ChatGPTing. I finally mage this thing work. I am sure there is an easier way through some kind of coding platform but this is what I had to do.  Hope it helps someone else!

DDEV- Drush command to revert changes to a drupal view before you save

I am sure we have all ran into this, working on a view and forgetting to change the Apply to from "Apply to all views" to "Apply only to this view". Thus adding or worse, deleting fields or configurations across all view displays.

Easy solution if you use Drush. I use DDEV for my local so my command is:

ddev drush eval "\Drupal::keyValueExpirable('tempstore.shared.views')->delete('YOUR_VIEW_ID');"

This reverts the temporary changes. :)

Render the first item of a paragraph field in twig- Super easy without a loop.

Editors needed to tag different items to a piece of content. However because the content's header render the logo for the other tagged content, if you tagged more than two, the header would render for each tagged content.

Sooooo I thought I put a loop but because the header was based on a paragraph field, it was cooperating.

Easy solution Side by Side comparison.  (Basically, you just need to add a " .0 " to you twig field. Easy peasy!

Pages

Subscribe to Melinda Cozza - Power Platform and CMS Developer RSS