How to Change the Admin logo in Broadleaf - broadleaf-commerce

Hi please help to change the admin logo in broad-leaf. and where the images and templates are located in admin. i have already done searching the file structure but i wont find the images folder there. please help to solve the issue thanks in advance.

You also need to change configuration in AdminSecurityConfig.java to enable "/open_admin_style/img/**"
#Override
public void configure(WebSecurity web) throws Exception {
web
.ignoring()
.antMatchers("/**/*.css")
.antMatchers("/**/*.js")
.antMatchers("/open_admin_style/img/") // <-------
.antMatchers("/img/**")
.antMatchers("/fonts/**")
.antMatchers("/**/"+assetServerUrlPrefixInternal+"/**")
.antMatchers("/favicon.ico")
.antMatchers("/robots.txt");
}

The admin templates are packaged. Example, in my case, they are here:
C:\Users\myuser\.m2\repository\org\broadleafcommerce\broadleaf-open-admin-platform\5.2.0-SNAPSHOT\broadleaf-open-admin-platform-5.2.0-20170707.134303-195.jar!\open_admin_style
You will have to override the admin templates by following the same folder structure found in the directory I mentioned above, but replicated in your admin project under /src/resources.
For example, you can place your modified loginLayout.html here:
admin\src\main\resources\open_admin_style\templates\layout\
Your loginLayout.html could contain /img/admin/your-company-logo.png , and have the logo placed here:
admin\src\main\resources\open_admin_style\img\admin\your-company-logo.png
Edit: I might be wrong but it might be important to have similar file names in this simple overriding case.

Related

__layout.reset has been removed in favour of named layouts

I have a page set up in this format
original reset image›
I looked at forums and it said i should change the inner layout page to __layout#reset.svelte. However when i do that, I get another error.
reset image using #reset instead of .reset
Does anyone know how i can put in a reset __layout inside of a folder and get it to override the parent layout?
Your error is because __layout#reset.svelte would be looking for a __layout-reset.svelte file in it's current directory, or any parent directory directory, to be a sub-layout for. You don't have a __layout-reset.svelte file.
As Thomas Hennes mentioned in the other thread. If you wanted to have it act like the reset, you'd need to create a __layout-reset.svelte file in the current folder or (more useful for the entire app, in the root folder) and have it be a blank <slot />. From there, you can do __layout#reset.svelte to which will allow you to make a completely new layout.
I think that you can solve this problem by fallowing this steps :
Create "__layout-choseNameYouWant.svelte" at the same level as "__layout.svelte"
Create "guides#theSameNameYouGaveForLayoutFile.svelte" at the same level as
about.svelte
Layouts can themselves choose to inherit from named layouts
create "__layout-root.svelte" at the same level as index.svelte and about.svelte with the following code
<slot/>
create "__layout#root.svelte" in guides folder with the following
<slot></slot>

In XCode Swift project - Material Icons not showing in app

Screen capture of Material styled screen
I need help configuring Material with my Swift project.
As you can see I am able import Material into my project, however the buttons (except for the switchControl) are not appearing. The assets can be seen in the project's Media Library.
I don't know how to test my integration. I'm looking at the MaterialIcon.swift file because I don't think that the path to resources is correct.
I've compared my build to the examples provided by CM and I need help.
Thanks.
If you are using CocoaPods to setup your project, which I think you are based on your issue. You have two options:
Clean the build folder and delete the UserDerived directory, as well, ensure you are using 1.0* of CocoaPods.
Copy the Assets catalog into your application.
All the best :)
Make sure that you are giving the elements a size also.
Let Button = FabButton()
Button.setButtonTitle(title: "Button", forState: .Noarmal)
view.addSubview(Button)
View.Layout(Button).top(0).left(0).width(80).height(80)

Yii layout in controller

i'm a new one in Yii :)
I'm trying to generate CRUD structure with Gii and everything ok.
But i'm a little confused about overriding layout path in controller.
public $layout = '//layouts/column2';
How to explain such path, especially "//" part?
Have a look at the documentation for CController::getViewFile(). It explains the // and other view path options.
It means that the template file column2.php has to be found under the default view directory for the application. That is : protected/views

Path to layout xml files in magento

I have seen that we can place our layout xml files in
app/design/frontend/default/default/layout
or we can place our customization inside
app/design/frontend/base/default/layout/local.xml
file, but I have read at magebase and at magentocommerce that we can place our layout files under
app/design/frontend/your_interface/your_theme/layout/
or
app/design/frontend/[package]/[theme]/layout
So if we I have package like 'Kaushikamdotcom' in 'app/code/local', should I have to create that same package under 'app/design/frontend/' ? I tried many patterns, but nothing worked out for me.
I am quite sorry that I have made such a blunder asking this question, but I am answering this as lots of people will be making the same mistake. Package means; in the admin side of magento open
System->Configuration->Design
Then change the configuration scope to Main website. Then select Package section, uncheck the default check box and use your package name such as "Test". Then create the following folder structure.
app/design/frontend/Test/default/layout
Place your layout xml files here. If you are using your own themes use that name instead of default.
It depends what layout-xml file you have.
If you want to build up your theme, use the local.xml file in your theme dir.
If you write an extension and want to add a block to use inside this new extension, add a layout-xml file via config.xml and add it under base/default/layout/yourname.xml
When you do it this way, your theme-related changes only appear in the theme and your extension-related changes are theme-independent

Customizing Sharepoint Search Box

I followed some tutorial to change the way Sharepoint Search Box is shown on screen.
My first problem is, after modifying the SearchArea.xml file, is there a way to force the reload? The frequency of reload seems very random.
Bonus question: is it the best way to do it?
It's the easiest I've found, but having to change the file on the client's production server when the project is deployed doesn't seems very optimized.
For the first question, you need to reactivate the feature to have it instally reload, check this link in msdn
The second question, I just answered in another post, check it out
Its very straight forward. All you have to do is create your custom CSS file and have it override the default styles from the corev15.css file.
The class for the Search inpubt Box is .ms-srch-sb
And you can use your custom styles something like:
.ms-srch-sb>input {
/* your custom css style*/
}
Hope that helps.
Cheers

Resources