Address details in an hCard microformat

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
7/1/2013 3:20:44 PM
Gravatar
Total Posts 11

Address details in an hCard microformat

Hi Joe,

I'm in the process of building an hCard microformat section to show the company address details within my layout.master's footer.

I'm attempting to populate it using the company/address info captured in the site settings and placed into the hCard markup using the <portal:CompanyStreetAddressLiteral id="CompanyStreetAddressLiteral1" runat="server" /> etc tags, and so far so good.

The Administration/Site Settings/Company info fields captured are: Company Name, Street Address, Street Address Line 2, Locality/City, Region/State, Postal Code, Country,Phone,Fax and Public Email, but I cant find/figure out what all the corresponding <portal> tags should be; could you point me to a list?

I'm also wondering if you could add in capture/output for the geo latitude/longitude and the org organization-name/organization-unit values relating to the company (using http://microformats.org/wiki/hcard-cheatsheet as a reference here)

Many Thanks,

Al.

 

 

 

 

7/2/2013 10:26:42 AM
Gravatar
Total Posts 18439

Re: Address details in an hCard microformat

Hi Al,

The available built in Literal controls are:

<portal:CompanyNameLiteral id="lit1" runat="server" />

<portal:CompanyStreetAddressLiteral id="lit2" runat="server" />

<portal:CompanyStreetAddress2Literal id="lit3" runat="server" />

<portal:CompanyAddressLocalityLiteral id="lit4" runat="server" />

<portal:CompanyAddressRegionLiteral id="lit5" runat="server" />

<portal:CompanyAddressCountryLiteral id="lit6" runat="server" />

<portal:CompanyPostalCodeLiteral id="lit7" runat="server" />

<portal:PublicEmailLiteral id="lit8" runat="server" />

<portal:CompanyPhoneLiteral id="lit9" runat="server" />

<portal:CompanyFaxLiteral id="lit10" runat="server" />

Note that none of the literal render any html markup so you would need to wrap them in your own markup for hcard

​We don't currently have fields for long and lat so you would have to hard code that at the moment. I'll log a request in our project tracker, maybe we can add those in the future at some point.

Hope that helps,

Joe

7/2/2013 12:10:28 PM
Gravatar
Total Posts 11

Re: Address details in an hCard microformat

Brilliant, Thanks Joe.

You must sign in to post in the forums. This thread is closed to new posts.