Hi there i'm want to override a data picker css from a hook creation.
In Liferay Documentation 6.2 they say that it's possible with hook.
http://www.liferay.com/it/documentation/liferay-portal/6.2/development/-/ai/overriding-web-resources-with-hook-liferay-portal-6-2-dev-guide-en
But in Liferay IDE, when I create a new hook, in the interface for xml liferay-hook there isn't an option for CSS.
There are:
Portal properties
Custom JSP
Service Wrappers
Filter and Mappings
Struts Action
Indexer Post Processors
Language properties
So, how to make it? Thanks ahead!
you need to create a plugin: THEME. You can see how in this page:
https://www.liferay.com/es/documentation/liferay-portal/6.2/development/-/ai/creating-themes-and-layout-templates-liferay-portal-6-2-dev-guide-09-en
In this plugin you have a folder _diffs. Everything you put here is going to overwrite liferay´s theme.
Related
I am beginner to Drupal-8, I don't know how to create custom template file for particular design for particular page.
For Example,
If I have created bellow pages in Drupal-8 and I want each of the page's custom template,
Like :
Home
About Us
Services
Contact Us
So for this how can I create custom template? Please anyone help me out to how can I achieve this?
Heyo!
So, Drupal page templating is managed through TWIG templates in your theme. You should first create a custom theme, which you can do following this guide:
https://www.drupal.org/docs/8/theming
Once you have a theme, you can create .twig files that will provide you with the means to control the html structure of the pages. Specific instructions are in this guide here:
https://www.drupal.org/docs/8/theming/twig/working-with-twig-templates
For example, creating a custom front page involves creating this file page--front.html.twig in your /templates folder. Different pages will require ovverides based on their name or node which is detailed in the above guide. However, it most likely is best practice to use a page.html.twig file to set a default style for the pages of your site and not have custom overrides for each node.
If you're new to twig, here's a link to twig tutorials. It's very simple and nice-and-easy to use!
https://symfonycasts.com/screencast/twig/basics
Drupal Website Design is Theme Based. There are plenty of themes to install in the Drupal.org. Seeing the particular theming documentation you can know how to customise your design.
You can look into some theming tutorials available in youtube also.
I use GregwarCaptchaBundle to generate captcha in Symfony 2.3.2.
But I don't know how to custom theme for it, I don't want to use the default theme, it wasn't fit with my template. I can edit the default its theme, but I think it's not a good idea, because we can't reuse for many template.
Can somebody tell me how to do it. Thanks very much.
Override like any other view in Symfony.
Create file app/Resources/GregwarCaptchaBundle/views/captcha.html.twig
And put down your changes following this template.
I want to override Plone's contact-info template in a diazo based product. The contact-info is a .cpt (Custom Form Controller Template).
The recommended approach to customize .pt files for Plone 4 is to use z3c.jbot.
Is it possible in diazo to override .cpt files in a similar way like .pt files?
I'm assuming your "diazo-based product" is a design for Plone. The answer is that yes, that product can override the cpt, and the best way to do that is to use z3c.jbot.
Diazo in itself has no possibility to override templates. It works purely on the HTML that the template renders to. But there isn't any problems in including both a Diazo-based design and other features such as template overrides in the same product.
How to style existing module in drupal 6 for a specific view? where to place files? in the module directory or in the views dierectory. I just need to override the style of the node.
Thanks!
The second question: where do you place hook_form_alter functions? thanks!
To override the style of a node, the default templates suggestions allow you to create a node-[type].tpl.php file in your theme directory. The [type] is the name of a specific content type you are overriding or theming. For instance, you could create a custom template for "Page" nodes in a node-page.tpl.php file. If you need more flexibility, you can create custom "suggestions". See Working with template suggestions for more details.
When creating new template files, make sure your theme already contains the base template file (see the note at the top of the Core templates and suggestions page, for more detail). Also, be sure to clear your theme cache, in order for any new template files to be detected.
Views can be styled separately from the nodes they contain. Views allows for a variety of template files to be customized, depending on what level you need to customize (view as a whole, row styles, field styles, etc). For more details, click on the Edit tab of a view you'd like to theme, look under the Basic Settings section and next to Theme, click on Information.
Like other hook functions, implementations of hook_form_alter are placed in a .module file. If your module is called "customized" your customized_form_alter function would typically be found in a customized.module file, in a /customized folder, under /sites/all/modules.
I need to edit an invoice template in Drupal (both php template and css).
I've copied pasted the file in my theme folder, as I usually do to override for blocks and pages templates, but it didn't work.
This is the template customer.itpl.php inside Ubercart/uc_orders/templates folder.
How can I override it without hacking the ubercart module ?
thanks
This template is not the normal Drupal template. In order to change it, you should create a copy of the template in the same folder (Ubercart/uc_orders/templates) and make your changes. It will show up as an option in the settings page (/admin/store/settings/orders/edit) where you specify which template to use for showing the invoice.
devel_themer is good at providing template suggestions for you. Sometimes modules uses a special naming convention.
If that doesn't help you can add your own template suggestion in a preprocess function for the template. See this post on d.o for more info.
According to the ubercart docs you should be able to specify which template files you want to use.