![]() When the IE8 cuts the Web Slice from HTML structure, it adds BODY tags around it so the Web Slice is like a small HTML page with all CSS styles from the source page. Check this screenshots taken from the Czech version of Maxiorel website ( You can see that the Web Slice need a few CSS editing, but the basic job is done. Click on it and add your new slice to the IE8 toolbar. As soon as you will move the cursor over any of the blocks there will a green rectangle appear. If you would like to add Web Slices only for specified block, you can use this variables for PHP conditions construction.Ĭopy the modified template file and try it. It is already defined by the default template and use $block->module and $block->delta for unique identification. You can find the we don’t need to add a special ID for the main block’s DIV. The last change is adding of class="entry-content" for the DIV with block’s content. The H2 title will be used for Web Slice’s name, so add class="entry-title" here. Just add class="hslice" to the first DIV. There is a main DIV with ID, the title of the block and its content. Module ?>" id="block-module ?>-delta ?>">Īs you can see, this template is very simple. Most themes use the default which looks like this. Go to your Drupal website theme and find a template file. You can implement Web Slices for Internet Explorer 8 in Drupal using its themes and block templates, for example. …there will be extremely useful content for Web Slice…Īs a author of the first book about Drupal in Czech I should write a few lines about Web Slices and Drupal. The result should look like this piece of code: The last required change in your HTML code is to add class="entry-content" for the element containing the body of your Web Slice. The result name will use all the texts in these elements. You can repeat this class for more elements. You can use H1, H2, H3, P or any other element where will be class="entry-title". The name could be taken from any of the elements in the HSLICE DIV. Remember, that the ID has to be unique in whole HTML structure so the IE8 parser will be able to cut the Web Slice code from the page.Įvery Web Slice needs a name. ![]() If you have this DIV in the current code already, just add class="hslice" to it and call this DIV with id="something". The first requirements is to add a DIV which will represent the Web Slice panel. In a few minutes you can have fully working Web Slices and valuable add-on for your Internet Explorer 8 visitors. The only thing you have to do is add a few CSS class to your HTML code. In most cases there is no need to completely rebuild your websites. Internet Explorer 8 (IE8) RTW is available for download here (for 32-bit and 64-bit flavors of Windows XP, Windows Vista, Windows Server 2003 and Windows Server 2008).These Web Slices for Internet Explorer 8 can be created very easily. On MSDN the company is offering no less than six tutorials set up to make it easy for web developers to embrace the feature with their websites.įollowing the lessons offered, devs will be able to leverage Web Slices in multiple scenarios including Adding Web Slices to a Web page Adding visible content to your Web Slice Setting an expiration time Setting a time-to-live (TTL) value Getting Web Slice content from an RSS feed source Using a custom button to install a Web Slice.” “A Web Slice uses simple HTML markup to represent a clipping of a Web page, enabling users to subscribe to content directly within a Web page,” Microsoft explained. In this regard, developers have to introduce Web Slices into their websites in order for IE8 users to subscribe to via the browser. Designed to allow end users to subscribe to a specific area on a webpage and receive updates with every refresh suffered by the content, Web Slices need more than Internet Explorer 8 in order to gain traction with end users. Web Slices are one of the new browser features introduced by Microsoft with the advent of Internet Explorer 8. Initially, the page contains one simple Web Slice, but you will gradually implement additional functionality,” Microsoft noted. You start with a Web page that contains a fictitious conference schedule, a weather report, and ticket auction for a hit Broadway musical. “In these short lessons, you will learn how to add Web Slices to an existing Web page. The software giant is offering the source code accompanying the Web Slice Tutorial topics on MSDN. Devs interested in tailoring their websites for Internet Explorer 8 can now grab Web Slice tutorials from the Microsoft Download Center. Microsoft is already offering extensive documentation for developers to start integrating Web Slices into their websites via MSDN, but the company has gone one step further.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |