I have used fb like button in my website.But while clicking the button the link of my page is shown in the face book.I need to change the link to a text with hyperlink to my site.How can I implement this ?
To customise the appearance of the Like story you need to add Open Graph meta tags to your HTML head:
https://developers.facebook.com/docs/opengraphprotocol/
Related
Is it possible to open a modal from anchor tag but the content is from another page? If yes, can anyone help me on how to do this? Btw I'm using Odoo, there is a default add to cart page in Odoo, so all code there was already default and I can't just get the content of the specific part from add to cart page and load it in my modal which is another page.
You need to write a JS function to achieve this. When clicking on a button, you can listen to button click and show your modal accordingly. Odoo uses jQuery by default so you can call something like this.
$(".button-class").click(function() {
// do some stuff here
// either do jsonRPC to get data from another record.
// add values to the body
// finally show your modal
$(".modal-class").modal("show");
}
Our content author is more comfortable using Experience editor than the content editor and also has knowledge of HTML.
The requirement is - the author should also be able to add text - along with other components (carousel, banner, etc), or just create a whole HTML page using Rich text editor if they need to.
For eg: He will open Experience editor of a page, add a banner component and then below the banned wants to add text. (or maybe just design the whole page using HTML)
I'm handling this kind of task for the first time and here is what I did.
Create the following:
1. A template with the name "Rich Text Section", which has one field "Content" of type "Rich Text".
2. A View Rendering, "Rich Text Component", that points to a .cshtml which is a simple HTML
<div class="row">
#Html.Sitecore().Field("Content", Model)
</div>
A folder "Rich Text Sections" under Sitecore > Content > Home > Components. In this folder, the author can add only "Rich Text Section" templates.
To add text to/or design a page, the author needs to do the following.
Browse in content editor mode. Add a new item (say "LoremIpsum"), of template type "Rich Text", inside the "Rich Text Sections" folder.
Browse in Experience editor mode. Add the "Rich Text Component", set its data source to "LoremIpsum", and then write all the HTML content inside.
Here, the author has to switch to both editor modes. Please advise the better way to do this.
If you have the Insert Options set up correctly on the items in your solution, then from the Experience Editor you can use Insert Page from the Home tab on Ribbon. This will then pop up a modal showing all the Templates that have been configured as Insert Options, the same ones as if you were to right click on a node in the Content Editor and select the Insert option.
The page will be created as a child of the page you are currently on. You can navigate to different sections of the content tree by enabling the Navigation Bar option from the View Ribbon, selecting the page and selecting "Go".
EDIT: I mis-read your question. It seems you are trying to create the Datasource of the item when a component is added using the Experience Editor.
You need to set the Datasource Location and Datasource Template fields on the definition item of your Rendering:
Make sure you leave the Data source field empty on the Rendering item. Now when you add the component you will be prompted to Select the Associated Content. Your editors will be able to select existing content or create new ones.
You can read more in this blog post.
I've been translating a theme by simply customizing the HTML, but I've run into a problem:
The "Add to cart" button on a product page. I can translate the label on the button, but when you click the button the text changes from "Add to cart" to "Adding..." and then to "Added!".
Neither "Adding..." nor "Added!" are anywhere to be found the HTML of the theme, so I'm wondering where I should look if I want to translate those?
The "Adding", "Added" response comes from the theme's javascript - unfortunately that's hard-coded in and there's not a way to change it. You may want to try modifying another theme that doesn't use ajax to add products to your cart, like Sexy, Luna, or Nova - then you should be able to have more control over translating your store completely.
I'm trying to implement the Facebook Like button into a site and basically what I want is a very simple button that when clicked likes the corresponding facebook page and then opens it in a new window. I don't want the comments or the faces or the count, just the button and when clicked I don't want the option to add a comment. It just likes the page and opens it in a new tab, nothing more.
Any help would be appreciated.
Use this link
http://developers.facebook.com/docs/reference/plugins/like/
You can find answer for your question . Simply select the Layout to box_count or button_count . You will get simple like button .
If you want to use the facebook like plugin, the only customizations you can do are available here:
http://developers.facebook.com/docs/reference/plugins/like/
This will also generate the code on html5/iframe/xfbml into your application.
I am totally new to this. What I want to do is to add a like button on an external website, which will then like a photo in one of the album in a page. I followed the instructions but still get "error" or page inaccessible whenever the like button is clicked.
The test page is at http://www.jeremyhoo.comlu.com/rosken/ try clicking the like button to see what I mean. Any idea how do I correct this?
Thanks Heaps!
Change your og:url to http://www.jeremyhoo.comlu.com/rosken/