I am trying to replace the link of Contact Us from /page/contactus to #contact in the website. But it added a new menu item.
This is what I did using xpath:
<template id="contactus_custom" customize_show="True" inherit_id="website.layout" name="Custom Contact Us">
<xpath expr="//*[#id='top_menu']/li" position="replace">
<li>
<a t-attf-href="#contact">
Contact us
</a>
</li>
</xpath>
</template>
The top menus in odoo website are dynamically defined, you can change the link from the configuration menu, by following these steps:
Activate debug mode
Then go to Website app, Configuration > Menus
Select the menu and update the URL
Related
I am trying to understand the custom selector function for a web ui button. I essentially just want to target a button that has "Add to account" as the value. That should be just the InnerText right? It's not in the VIsual Editor so I am trying to do with the custom. Is it button[innerText="Add to Account"]? Struggling to get that to work right now.
Here is the markup
<button data-ng-if="vm.userPermissions.accountOnly" data-ng-disabled="!vm.canFinish || !vm.hasFeeSchedule" class="btn btn-primary ng-scope" data-ng-click="vm.accountOnly()"><i class="fa fa-plus" aria-hidden="true"></i> Add to Account</button>
Ok figured it out. button:contains("Add to Account")
I am trying to add the images as button into existing article of web page. When I click on that button it have to redirect into another page or Url.
I have searched on net. I didn't get satisfied response.
I have gone through this page too.
Any help will be appreciated!!!
Actually, I have added the button using edit code option in joomla article, by inserting the following html code.
<a rel="nofollow" href="link_to_be_opened_on_image_click" class="weblink" style="text-decoration:none">
<img border="0" src="source_of_the_image_button.png" alt="Title" title="Title" />
</a>
How to add Home menu in magento home page. I add the code In this location
magento\app\design\frontend\default\grayscale\template\catalog\navigation
<li>
<a href="<?php echo $this->getUrl('') ?>">
<?php echo $this->__('Home'); ?>
</a>
</li>
But home menu not displayed on the home page of Magento
You have to keep the categories you want to display in menu under the root directory.
There may be more cases possible on why menu is not appearing.
Please consider following these guides :
http://www.magentocommerce.com/wiki/3_-_store_setup_and_management/catalog/enable_top_menu_navigation
http://www.atwix.com/magento/how-to-add-a-new-item-to-the-navigation-menu/
http://www.youtube.com/watch?v=w4z1RyyFHhU
Are you sure this is the template you're store is using?
You can check by enabling template hints in the developer section of the admin area.
this will hiliight all the blocks/templates for you and show the path to each file used. You will be able to check if the template you have modified is the template being used.
First of all, I'm starting with Joomla 3. I have a main menu with a login item and I want to dropdown the login form when this item is clicked, something like login on dropbox site.
I try hot login extension but not working well for me.
UPDATE
I create a new postion in my XML file called 'login'
<positions>
<position>login</position>
And add this to the index.php
<div class="span7">
<jdoc:include type="modules" name="menu" style="none" />
<jdoc:include type="modules" name="login" style="none" />
</div>
Finally, in the panel, I set to the Login Form module the login postion.
Now, my DOM is look like this:
<div class="span7">
<ul class="nav menu">Menu itens...</ul>
<form id="login-form">...</form>
</div>
How can I set the login form to open when the user click in one of the menu items?
Depending on the template, there are different methods. For example with Yootheme templates, you need to open the Login module in the Module Manager and set the position to "menu". With Rockettheme, you can set a module or a module position to a specific menu item via the Menu Manager.
Have a look at he demo site for the template you download and read any documentation as it will help.
I am building a product catalog website using joomla and virtuemart extension. To let users share my products on facebook, I have added a facebook share button in my product's flypage.
In the flypage I have added the following code:
<div> <a name="fb_share" type="button" ></a>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript">
</script>
</div>
When I click on the share button it shows only the url of the website. But I want to show the product Title and Image of the product too. I have installed Virtuemart Open Graph plugin but it is not working.
Would you please kindly tell me how to show the title and image of the product when sharing on facebook??
Simple solution - you have to add og:tags to your page where the share/like buttons reside. The og:tags contain things like og:title, og:image...etc.
You can read more on the usage of the open graph protocol and about the og:tags at this URL : https://developers.facebook.com/docs/opengraph/