Changing the Django-CMS default icon for links - django

The contents of placeholders in Django-CMS can be modified with the provided frontend editor, which includes a basic plugin for inserting links. By default, this plugin shows a square "blue globe" icon in the editor preview where the link will appear. I'd like to change what icon appears, preferably to a text representation of the link rendered as an image. Is it possible to modify the existing link plugin, or would I have to make a new plugin with this behavior?

You'll need to build your own link plugin for that which defines the icon_src method which has to return a URL to a image.

Related

SWIFTUI - Catalyst app - How to set Document Types to show icon for file

I use Xcode 11.4.1 and I want to show GeoIcon.icns icon for the file, with extension .geo, create with my simply app: OpenSave.
I have set Document Types and Exported UTIs as shown in the following screenshot.
The Info.plist file, deriving from the above settings, is the one shown in the screenshot below.
The result of the above settings is illustrated in the screen shown below.
Why do the files created by the Opensave app have the app's shrunken icon and not the one I set? What am I wrong in the Document Types and in the Exported UTIs setting?
I searched the web for several days, without finding any posts that would solve my problem.
I think the problem is that you use .icns as file type for the icons.
Have you tried a .png icon as well?
This should resolve your issue!

Unplated icon for MSIX-packed Win32-application doesn't work

I am trying to generate a MSIX-installer for a Win32-OpenGL-application, which is supposed to be deployed in Microsoft Store. Therefore, I have first built the .exe-file in Visual Studio and packed it with MSIX Packaging Tool to a .msix-installer. After that, I edited the .msix-package and added the required images (Square44x44Logo.png, Square71x71Logo.png,...). Unfortunately, I found out that the icon in the task bar was plated. I tried to add another image (Square44x44Logo.targetsize-44_altform-unplated.png) to the .msix-package by editing it again with the MSIX Packaging Tool, but the task bar icon remained plated. How can I change my task bar icon to unplated?
Unplated assets
By default, Windows uses a target-based asset on top of a colored
backplate by default. If you want, you can provide a target-based
unplated asset. "Unplated" means the asset will be displayed on a
transparent background. Keep in mind that these assets will appear
over a variety of background colors.
Unplated assets and themes
The user's selected theme determines the color of the taskbar. If the
unplated asset isn't specifically qualified for the current theme, the
system checks the asset for contrast. If it has enough contrast with
taskbar, the system uses it. Otherwise, the system looks for a
high-contrast version of the asset. If it can't find one, the system
draws the plated form of the asset instead.
Follow the steps below to solve this problem:
Obtain the correct 44x44 images and then copy them into the folder
that contains your images (i.e., Assets).
For each 44x44 image, create a copy in the same folder and append
.targetsize-44_altform-unplated to the file name. You should have two
copies of each icon, each named in a specific way. For example, after
completing the process, your assets folder might contain
MYAPP_44x44.png and MYAPP_44x44.targetsize-44_altform-unplated.png.
In the manifest file, set the BackgroundColor for every icon you are
making transparent.
Continue to the next subsection to generate a new Package Resource
Index file.
For more details, refer: Add Target-based unplated assets
Here is a similar case for your reference.
unplated taskbar icons in Desktop Bridge apps

Django CMS Group/Nest Placeholders

I'm trying to group my placeholders in Django CMS so that they don't appear in one long list. I want some sort of indication that some placeholders are linked together other than just their name.
Currently I want the user to be able to choose their own Header Image, Title and Subtitle so my placeholder tree looks like this:
-- Header Image
-- Header Title
-- Header Subtitle
I want to be able to group these together in my template to show a correlation like so:
-- Header
---- Header Image
---- Header Title
---- Header Subtitle
I found a post from 2013 that said this was possible but the plugin that was suggested that would give this functionality no longer exists.
This is possible in django-cms 3.
What you do is you create you placeholder in your template as normal. Then when you go to edit the page, find the empty placeholder that you just created and click the plus sign to add a plugin ie a text plugin called 'Header'. Then click the same plus sign to add a second text plugin. ie a text plugin called 'subheader' and so on.
You can mix different types of plugins and, like CMS pages on the menus, you can reorder your plugins by dragging them with the left drag tab.
Alternatively if you want things a little more tightly nested, you can add a text plugin to your placeholder. The when you edit the text, the toolbar has a link to allow you to add other plugins ie links, images etc, within the parent text plugin.
I know this is a fairly old question but I just stumbled across it so maybe this might help someone else.

How to remove the link from the logo in Oracle Apex 5.1 Universal Theme

I'm working on a project in Oracle Apex 5.1 with Universal Theme. We need the logo (actually, an image), but want to remove the hyperlink from it.
I tried custom css by setting the class t-Header-logo (and t-Header-logo-link, too) to "pointer-event:none" (in Theme Toller), but it does not work. Can anyone help?
Thanks: Peter
You can use below jquery code for removing link from logo
Put this code on page zero. It will work you whole application across.
$(".t-Header-logo a").removeAttr("href")

Adding component on top of the existing one in sitecore 8.1 MVC goes down bottom in other language

I have created a Spacer module and applied placeholder settings accordingly. I want to add this module on top of existing one so I clicked on Component button display in top ribbon menu.Then Clicked on Add here. This module is added on top of one existing one But when I clicked on Save button and on page load this Space module move down to below existing one. Couldn't understand why?
Even it's working fine in English(en) version but having this issue in french version of website.
I have implemented following for Dynamic Placeholder Click here
Thanks