create parameters in joomla - joomla

I created parameters in templateDetails.xml as
<params>
<param name="font-size" value="12" />
</params>
Where will this parameter be visible?

It's visible in the admin back-end when you click on the template in the template list

Related

How to show custom checkout filed in admin panel

how to display custom filed in the admin panel.
table sales_order,quote cullom name gst
I want to display a field in the sale order.
code details click here
enter image description here
You can override the adminhtml template file "order/view/info.phtml" and add the code to display your GST below billing address section. Refer below code sample.
app/code/Company/Module/view/adminhtml/layout/sales_order_view.xml
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="order_info">
<action method="setTemplate">
<argument name="template" xsi:type="string">Company_Module::order/view/info.phtml</argument>
</action>
</referenceBlock>
</body>
</page>
Add below code to your info.phtml to the section below billing address (DON'T REPLACE THE ENTIRE CONTENT).
app/code/Company/Module/view/adminhtml/templates/order/view/info.phtml
<?php echo $block->getOrder()->getGst();?>

How to remove or hide breadcrumbs for a particular page in magento

I am trying to hide the (Home > Catalog Advanced Search > Results) breadcrumbs alone in magento during the advanced search results. I don't want to navigate through the breadcrumbs in result page. Anybody help me to make this possible.
Try using
<remove name="breadcrumbs" />
Within specific handle of your layout xml file.
For example
<catalog_category_default>
<remove name="breadcrumbs" />
</catalog_category_default>
Or try using that within the cms page layout form in backend under CMS->Pages.
You can do by the admin:
CMS-> Pages:
Page Information
Design:
Custom Design
Custom Layout Update XML: <remove name="breadcrumbs" />
Magento 2 Code to remove breadcrumbs for CMS Page
<referenceContainer name="page.top">
<referenceBlock name="breadcrumbs" remove="true" />
</referenceContainer>
You can remove breadcrumbs in various ways in Magento.
For example if you want remove from a specific action like (Home > Catalog Advanced Search > Results) you just update catalogsearch_advanced_result in catalogsearch.xml file from your theme with:
<catalogsearch_advanced_result translate="label">
<remove name="breadcrumbs" />
</catalogsearch_advanced_result>
If you want to remove from all dynamic pages add this
<default>
<remove name="breadcrumbs" />
</default>
If you want to remove from a CMS page, you just configure from admin panel. Go to
system->configuration and then web->Show Breadcrumbs for CMS Pages.
Refresh your cache and check.
For Magento 2.1
Goto Admin->Store->General->Web->Default Pages->Show Breadcrumbs for CMS Pages
Select Option No for breadcrumbs
For Magento2 Remove from specific CMS page. Add following on Design >>Layout section of you CMS page
<referenceContainer name="page.top">
<referenceBlock name="breadcrumbs" remove="true"/>
</referenceContainer>
Edit catalogsearch.xml in /app/design/frontend/base/default/layout/
Add <remove name="breadcrumbs" /> within
<catalogsearch_advanced_result translate="label">
<label>Advanced Search Result</label>
<update handle="page_two_columns_right" />
<remove name="breadcrumbs" />
</catalogsearch_advanced_result>
Refresh and check... Breadcrumbs will be removed in advanced search result alone.
In layout update xml, per cms page:
<reference name="root">
<remove name="breadcrumbs"/>
</reference>

Magento Hole puch With Varnish

I recently installed the varnish 3.x in system (ubuntu) and configured it to 8080.
Now full page caching is enabled and its working fine. I just want to ignore some
specific dynamic blocks of the page. How can i do with magento. Also i am not
using Magentos default caching techniques so i disabled it. also tried module Terpentine
Thanks & Regard
Rajesh Ganjeer
I have done this using
Try this in local.xml inside the app/design/frontend/XXX/XXX/layout/local.xml file:
<reference name="block name">
<action method="setEsiOptions">
<params>
<access>private</access>
<flush_events>
<wishlist_item_save_after/>
<wishlist_item_delete_after/>
<sales_quote_save_after/>
</flush_events>
</params>
</action>
</reference>`
OR
<reference name="block name">
<action method="setEsiOptions">
<params>
<access>private</access>
<ttl>0</ttl>
</params>
</action>
</reference>`
OR
<reference name="block name">
<action method="setEsiOptions">
<params>
<access>private</access>
<method>ajax</method>
</params>
</action>
</reference>`
OR
Whole page will ignore cached eg. one page module checkout_onepage_index
<checkout_onepage_index>
<turpentine_cache_flag value="0"/>
</checkout_onepage_index>
I tried this using module Nexcessnet Turpentine. and it works
For your reference after Turpentine installation :
app/design/frontend/base/default/layout/turpentine_esi.xml
Thanks a lot for your feedbacks.
Reference Sites :
http://www.magentocommerce.com/magento-connect/turpentine-varnish-cache.html
https://github.com/nexcess/magento-turpentine
Thanks & Regards
Rajesh Ganjeer
Follow this to start to end solutions for varnish
http://rajeshganjeer.wordpress.com/2014/05/28/varnish-with-magento-terpentine/
Try this in layout.xml file:
<reference name="block name">
<action method="setCacheLifetime"><s>null</s></action>
</reference>
if you want to disable in phtml file then use false after block name like this:
<?php echo $this->getChildHtml('topLinks',false) ?>
and if you want to disable from php file then use this code in specific Block class:
public function getCacheLifetime() { return null; }
Hope this helps. All the best!
Using Turpentine will be the way to go.
The specific link you are looking for is to:
https://github.com/nexcess/magento-turpentine/wiki/ESI_Cache_Policy
With the detail being:
The default ttl if not specified is a little complex: If access is
private, then if method is ajax the default ttl is 0 (not cached)
otherwise the default cookie expiration time is used. If access is
global then the default page TTL is used (regardless of method).
Implemented like:
<reference name="block name">
<action method="setEsiOptions">
<params>
<access>private</access>
<ttl>0</ttl>
</params>
</action>
</reference>

Specify Category specific layout updates without using Magento's administration dashboard

Is there a way to specify a layout update for a specific category (e.g. using category ID) without having to use the administration dashboard, and setting a [Custom Design > Custom Layout Update].
I am sure I can create a module that looks for a category ID and switches the layout based upon that, but I was curious if there was a naming or some other type of convention for layout files that allows for this type of granular control since Zend Framwork sometimes allows such naming conventions.
Also maybe within the catalog.xml file itself there are additional "layouts" that allow such granularity, something more specific than <catalog_category_layered />
In a standard Magento install (1.4.2, but it should apply to the rest), Magento issues the following Layout handles (handles tell Magento which Layout Update XML Fragments to load from the Package Layout)
<default />
<catalog_category_layered_nochildren />
<STORE_default />
<THEME_frontend_default_default />
<catalog_category_view />
<catalog_category_layered />
<CATEGORY_4 />
<customer_logged_out />
The following layout handle
<CATEGORY_4 />
is generated based on the ID for a category. This means you should be able to add something like the following to your local.xml, or to a custom layout XML file added via a custom module
<layouts>
<CATEGORY_4>
<!-- your UPDATE xml here -->
</CATEGORY_4>
</layouts>
When visiting a catalog category, Magento loads a handle for CATEGORY_${ID}, which you can use to do exactly what you are asking.

Can Windows Vista+ Sidebar Gadgets display web pages?

I'm trying to make my Gadget html to navigate to another page, but when I try to do it via
window.location = 'http://newurl.com'
It opens the address in a default browser new window.
All I could do so far is to iframe the page in the gadget html (in the flyout html it didn't work), but the site I'm trying to frame has a frame detector and won't allow it.
You can't change the location of a gadget file to a remote location. There are ways to get it working but I don't remember what they are right now (or if they were fixed in Win 7). There's also a security risk - gadgets run with higher privaleges than web pages so they have access to the clipboard, cross domain web requests and can run unsigned ActiveX controls that are not marked as safe for scripting.
If you're willing to use COM, then you can use the WebBrowser control that comes with windows, with certain limitations. You will only be able to communicate with the original domain the control is loaded with, if the user navigates away from this domain access will be blocked by the same origin policy.
<OBJECT ID="WebBrowser1" WIDTH=332 HEIGHT=276
CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">
<PARAM NAME="ExtentX" VALUE="8784">
<PARAM NAME="ExtentY" VALUE="7303">
<PARAM NAME="ViewMode" VALUE="1">
<PARAM NAME="Offline" VALUE="0">
<PARAM NAME="Silent" VALUE="0">
<PARAM NAME="RegisterAsBrowser" VALUE="0">
<PARAM NAME="RegisterAsDropTarget" VALUE="0">
<PARAM NAME="AutoArrange" VALUE="1">
<PARAM NAME="NoClientEdge" VALUE="1">
<PARAM NAME="AlignLeft" VALUE="0">
</OBJECT>
If you can't live with those limitations, your only option is to create your own ActiveX control that references the WebBrowser control and proxy the commands.
See also, http://support.microsoft.com/kb/176789.

Resources