How to Change Apache Superset Template from the Superset User Interface? - apache-superset

The Apache Superset UI has a CSS template tab, which can be used apparently to edit and change the UI skin.
I tried editing the the CSS sheet but nothing is changing, Am I missing something?
What will be the best way to change Apache Superset skin.

The Superset documentation is a bit sparse and I was unable to find clear instructions on how to do this. I'm leaving an answer that will hopefully save others time.
Note: tested on Apache Superset v0.22.1
Creating a CSS template
Login to Superset with an account that has admin privileges
Go to Manage. Then CSS Templates. This will take you to a page showing all the available templates.
Create a new CSS template by clicking the + icon in the top right.
Specify the Template Name and Css. Click Save.
Applying a CSS template
How it works in Superset is you manually apply the templates to dashboards. So with that in mind ...
Go to the dashboard whose CSS you'd like to change
Click Edit Dashboard. It should be available in the top right. If you can't see the Edit Dashboard button then that means you don't have the required privileges to make any changes to the dashboard.
Click the Actions dropdown button and go all the way down to Edit CSS. This will allow you to access all the templates that you'd created previously in step 1. Select the template you want. During the selection process, the CSS will be applied automatically and you can get a preview of how it's going to look.
Once you have selected a template. Go back to the Actions dropdown button but this time click Save to save your changes.
That's all there is to it!

Related

Can I access my website from Django admin panel?

I am trying to develop a website where I can see the homepage as it is from Django admin panel. The reason I want that is I want to edit the name of the static content like 'Home' to 'All' along with the change of slide show picture. In summary, I want to change the website layout from Django admin panel that is not accessible to users. Is that possible? I just want an idea of how to implement the process.
Static texts you can change in admin panel with different modules:
for example django-rosetta or my own library Django-tof. https://github.com/wP-soft-GmbH/django-tof
But in your case, i think, you want to made something more.
For this case you can use django-flat-pages, already included in Django, if you have a static web-page.
you can edit every element on the page and after save, you can see it on the front.
if you really want to change the django templates, which you use in your views, you can create a simple template editor in the admin panel based on a widget like django-Ckeditor.

Customizing whole Apache Superset UI

In Superset one can customize the styles for a particular dashboard through CSS-templates, but I want to change the styles for the whole UI such as Home page on which you see the list of dashboards. What would be the easiest way to do this?

Sitecore: Create component and insert into placeholder on page creation

We have developed a Sitecore site for a client who will primarily be using Page Editor. We've built page type layouts and then componentized everything else, including sub-layouts of content. This allows them the most flexibility when building pages.
So, an author goes to a page selects the main content area (Placeholder) of the page and inserts basic building block components that we've created. These include Rich Text box, page promos, etc. they can use these to build pretty rich pages with lengthy content.
All page components have the same Datasource Location, which is a "Page Components" folder that's setup as an item bucket.
This is all working well so far.
Now, I'm trying to make it so when a page is created a specific component is created, inserted into to our "Page Components" bucket and placed in a specific placeholder on the page.
I've been trying to build a Branch Template to accomplish this, but I don't see how to specify that the new component should be stored in our bucket location, instead of directly underneath the Page item. Also, how to make the component show up in the placeholder that I want on the page.
Is this possible? Thanks in advance for you help!
You will want to use a command template for this, since you are desiring to programmatically bypass Sitecore's standard layout configurations and branch template creation.
On your page template standard values, you will want to add the sublayout to the presentation details so you can hook the datasource in programmatically after creation.
The fundamental flow in the command will be as follows:
Create the desired page item
Create the desired component datasource in the bucket location
Search the layout definition of the created page item to find the appropriate sublayout to bind to.
Alter the datasource on the sublayout to bind to the datasource you created.
As #jammykam mentioned, there is a recent blog post now available.

sharepoint 2013 custom site template not showing up on subsite

I have a sharepoint 2013 subsite called 'projects' where all its projects are subsites that were created by a site template.
I wanted to make changes to the template so I created a new 'project' subsite using the template, made the changes and saved that subsite as a new site template.
Now, when I'm trying to create new project subsites I only see the old site template but can't see the new one.
I've checked the solution gallery and they are both appearing there in active state.
Any I ideas what went wrong here?
Thanks.
I found the solution: if I want to allow the use of site tamplates in subsites I need to enter their site settings and into 'Page layouts and site templates' and add the requested site template to the allowed list of site templates.
I can't believe the option was in front of me on the screen and I didn't see it...
You have to activate the Publishing feature on the root and on the affected site.
The Option for that setting is not there anymore. Don't know since when but I just had the same issue not being able to use a custom template for a new Site Collection.
-Template is present in solutions gallery
-Custom tab is not being displayed when I want to select a template for the newly created site
-In the site settings of the newly created site there is no Option "Page layouts and site templates" in the looks & feel section

Joomla : how to create a Wrapper (iFrame) in tthe Backend Khepri Template

Hello freinds I need help as to how can I add 2 iFrames in the Joomla's Default Back-end Template Khepri.
I want to show the Hosting cPanel and also another application's Control Panel in these iFrames.
Kindly help.
The correct way to do this is to add a new module to the admin. Log in to your Joomla admin then select Extensions > Module Manager > Administrator.
This will get you to the modules manager for the administrative area. It works just like the front end. Click New module, then select Custom HTML and put your iFrame code in there.