- AspDotNetStorefront (28)
- Business (20)
- Canadian eCommerce (42)
- Canadian eCommerce Benchmarks (3)
- Careers (3)
- Design (1)
- eCommerce (64)
- Ecommerce Toronto Meetup (10)
- Magento Commerce (21)
- Magento Extensions Updates (4)
- Magento Video Tutorials (1)
- Monthly eCommerce Statistcs (4)
- Ramblings (8)
- Salesforce.com (2)
- Search Engine Optimization (1)
- Social Media (9)
- SocialGift.com (1)
- Sports South (0)
- This Week in eCommerce (13)
- User Experience (1)
- Ecommerce Toronto Meetup #11 – Fraud
- eCommerce Trends for 2012
- This week in eCommerce – Jan 2012
- Is Your Magento EE 1.10.1.1 Admin Product Saving Extremely Slow?
- Ecommerce Toronto Meetup # 10 – Online and Offline Returns
- Demac Media Partners with Shop.ca
- Calculating Lifetime Customer Value in Magento
- Canadian eCommerce Statistics Series – December 2011
- My office so far! @demacmedia http://t.co/AajVcHMH
- Some desks already setup in main area. http://t.co/ag8m2TYt
- The guys taking a break from setup. @demacmedia http://t.co/xHI56DDH
- Main room before move in. http://t.co/70rHSRGR
- Chaos today at @demacmedia. #moving to bigger / badder offices.
- @mbertulli http://t.co/gp8gSPE1
- RT @DealuxeCEO: Cat's out of the bag! @ssheffman is taking a new direction as Fashion Director @ShopDealuxe. Taking online retail to new ...
- my company creates..and sometimes run, high-performance #magento e-commerce websites..this is one of them: www.dealuxe.ca
- moving on up, literally ....to a new office space above us....what have we created? @mbertulli @demacmedia @JenaBela
- up "late" hacking..man I'm getting old, this used to be my prime time.
- Let's do this ! (@ Bloke & 4th) http://t.co/MwZvZ32b
- I'm at Wynn Fitness (98 The Esplanade, Church, Toronto) http://t.co/wH5AAdCP
- RT @dcolomvakos: moving on up, literally ....to a new office space above us....what have we created? @mbertulli @demacmedia @JenaBela
- @demacmedia http://t.co/y3MaL0M1
- 2012 eCommerce trends http://t.co/HF1Y9NMJ
- A few articles from this week in eCommerce. First of the year, so articles sum up the month so far http://t.co/GUxGJrmT
- @demacmedia blog: Is Your Magento EE 1.10.1.1 Admin Product Saving Extremely Slow? - http://t.co/oDucFqyk
AspDotNetStorefront v9 Skin Token Tips
With the release of version 9 of AspDotNetStorefront many developers are going to be running into tiny roadblocks as they get used to working with standard ASP.NET themes with some AspDotNetStorefront goodness sprinkled on top.
First, you can find a fresh list of v9 supported skin tokens at http://manual.aspdotnetstorefront.com/p-1064-skin-tokens.aspx.
The template.master that ships with v9 has some good examples of how skin tokens work, especially with passing in additional parameters. Let’s go through a few examples:
Displaying images from your App_Themes/Skin_x/images/ folder
Notice the logo.gif placement. This will display the logo.gif file found in App_Themes/Skin_x/images/logo.gif.
1: <asp:Image ID="logo" runat="server" ImageUrl="<%$ Tokens:SKINIMAGE, logo.gif %>" />
And to display an image found at App_Themes/Skin_x/images/icons/icon_1.jpg:
1: <asp:Image ID="Image2" runat="server" ImageUrl="<%$ Tokens:SKINIMAGE, icons/icon_1.jpg %>" />
Topic Related Tokens
There are actually three (3) tokens related to topics, so make sure you use the correct token for the correct use case.
If you want to render out a link to a topic, you are going to use the TopicLink:
1: <a runat="server" href='<%$ Tokens:TopicLink, Returns %>'>Returns</a>
If you want to render out the contents of a topic, you would use the Topic token:
1: <asp:Literal ID="ltrHelpBox" runat="server" Text='<%$ Tokens:Topic,helpbox %>' /></div>
If you want to display the title of a topic only, you would use the TopicTitle:
1: <asp:Literal id="mytopictitle" runat="server" text="<%$ Tokens:TOPICTITLE, TheTopicId %>" />
Using Literal controls within normal html elements
Sometimes you want to use standard html and just have Token values output to them. The problem with Tokens (more how they are bound) is that they require an ASP.NET server control to bind properly. To get around this, try something like the following:
1: <a href='<asp:Literal ID="Literal1" runat="server" Text="<%$ Tokens:SignInOut_Link %>" />'>
We’ll keep posting any goodies we find in this new version of AspDotNetStorefront.
This entry was posted in AspDotNetStorefront, eCommerce and tagged AspDotNetStorefront, eCommerce, Skinning, Tips. Bookmark the permalink.






