How to implement a Search functionality in Liferay Custom Theme - liferay-6

I have writeen custom Theme under the portal_normal.vm i have the below thing
The below is basically responsible for a Search Functionality
My requirment is that on click of a search button by the user , i need to call the Database and provide the search results .
I am in a confusion as the Theme doesn't got any portlet.xml file , so how can i call my method ??
This is how it is looking currently .

you need to add following in portal_normal.vm file
$theme.search()
Also you can customize the search criteria. you need to specify it in portal-ext.properties file.

Related

Customization of login screen is not working in Keycloak application?

provide configuration for customization of login page.
https://www.keycloak.org/docs/latest/server_development/index.html#_themes
Tried the above tutorial but its not working.
Do i need any permission for customization?
I wanted to change the logo, so I tried following the official tutorial, but it did not change. After all, I found that we should add few html lines containing the css class (resources/*.css) to display the logo instead of the default text. Steps below:
Select you Realm
Go to Realms Settings
Tab General
Fill the HTML Display Name field (by default it is blank) with the content having class kc-logo-text (login.css related) or your custom class (you can see the Master realm did it) in order to make the logo appeared.
Save
Tab Themes
Select your custom theme
Save
// For example:
HTML Display Name: <div class="kc-logo-text"><span>Keycloak</span></div>
Solution derived after I read https://lists.jboss.org/pipermail/keycloak-user/2019-September/019320.html

How to add custom javascript in Laravel-Backpack

Is there any way to add custom javascript?
I want to add custom javascript to some of the pages but it seems i am not able to.
Each default Backpack operation has its own CSS and JS file, in:
public/vendor/backpack/crud/css
public/vendor/backpack/crud/js
If you don't find one there, you can create one, and Backpack will pick it up in that operation's view (e.g. create.css or list.js).
Read more: https://backpackforlaravel.com/docs/3.5/crud-how-to#customize-css-and-js-for-default-crud-operations

not able to register two plugins of touch-ui rte dialog

I am using the steps given in the URL to make a color-picker rte plugin
http://experience-aem.blogspot.in/2015/01/aem-6-sp1-touchui-richtext-editor-color-picker-plugin.html
and at the same time I am making another custom rte plugin to do some text modulation.
But only one of them is working using rte.coralui2 as categories.
and both icons are coming at the same location.
If I disable one js then another is working.
I have registered the plugin with different name and I have also used different variables.
I am not able to make the rte plugin button at different location.
Please suggest the possible solution.
it's possible you are overlaying rather than extending the rte.coralui2 category. I suspect your custom clientLibs are competing with each other and only one is available.
It seems like you are using the same steps provided in the blogpost for creating both the plugins and while doing that, you are using the below code twice with different icons :
if(items.indexOf(ExperienceAEM.TCP_UI_SETTING) == -1){
items.splice(3, 0, ExperienceAEM.TCP_UI_SETTING);
}
So, maybe, the icons are being added at the same place and only one of them is shown.
You should create ExperienceAEM.CuiToolbarBuilder Class only once and add both icons inside that class

Customization Orbeon Builder first dialog

I want to customize the first dialog, which shows up, when I launch Form Builder. By default there are four fields: appName, formName, title and desription. I want to disable title field, and add some fields. How can I do it? Which files I have to edit? I know that, there is some file called dialog-form-settings.xml, but I don't know where is it.
Regards
This is the file you're referring to: dialog-form-settings.xbl. This file is in orbeon-resources-private.jar and if you override it, you can place your version in WEB-INF/resources, following the same path (i.e. WEB-INF/resources/xbl/fb/dialog-form-settings/dialog-form-settings.xbl).

Hide or Remove the Content TV from a template in ModX Revo Backend?

I have a resource in ModX Revolution and I'm using some TVs but not the 'content' TV. So, it is not used & it confuses users who insert content into it which is not supposed to be displayed on the frontend.
How do I hide or remove the 'content' input from a particular template in ModX Revolution backend?
Fishcake is right, you should utilize the builtin form customization for this.
You have to:
Go to Security -> Form Customization
Create a new form customization profile.
Edit your newly created profile (right click).
Create a new form customization set for the 'Create'-Action.
Edit this set (right click).
Choose the template you want to restrict the customization to (other constraints are possible, too).
Remove the tick beneath modx-resource-content (Set information and fields tab).
Create another form customization set for the 'Update'-Action and repeat steps 5 - 7.
constraints. Have a look at the form customization sets documentation for a more lengthy explanation.
I've done this in Evolution using a plugin called ManagerManager.....a quick search later.....seems it is now native functionality to Modx Revolution: Customizing the manager