Re: [WSG] styling address tag or microformat hcard
tee wrote: On Jun 4, 2008, at 2:07 AM, Robert O'Rourke wrote: So you could have: Rob, thank you so much! It still wrapped inside the tag, I afraid it may throw the site into hundred lines of errors if I remove the address tag altogether in many of the php and phtml files. Guess I just have to live with it. Best, tee No problem, I don't think there will any problems with removing the tags but it depends on whether or not you have the time to go through the templates and test it out. I'm doing the same thing myself at the moment inbetween other projects so hopefully they'll consider changing the markup with a future release. -Rob *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] styling address tag or microformat hcard
On Jun 4, 2008, at 2:07 AM, Robert O'Rourke wrote: So you could have: Rob, thank you so much! It still wrapped inside the tag, I afraid it may throw the site into hundred lines of errors if I remove the address tag altogether in many of the php and phtml files. Guess I just have to live with it. Best, tee *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] styling address tag or microformat hcard
tee wrote: On Jun 3, 2008, at 4:49 PM, tee wrote: Thierry afaik, the address element is not supposed to contain this kind of information as it is related to the people who "maintain/are responsible" for the document itself (or a section of the document). It's a plain English but I read it many times, still I don't quite understand what you meant by 'not supposed to contain this kind of I look into the Mage folder, and the file I found that maybe controlling the address globally is located in 'Mage/Customer/etc/config.xml'. Forgot to add, strictly speaking, that address is xml format, not html address tag correct? here is the code: HTML true I found this 'How to add style to XML'in W3C site. http://www.w3.org/Style/styling-XML tee It won't be that XML that you are styling, it just allows you to define an HTML snippet that is used when the template calls addresses. Everything inbetween the section in the tag will be written into the HTML so you can write your custom HTML there. So you could have: -Rob *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
RE: [WSG] styling address tag or microformat hcard
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of tee > Sent: Tuesday, June 03, 2008 4:49 PM > To: wsg@webstandardsgroup.org > Subject: Re: [WSG] styling address tag or microformat hcard > > >>> > Thierry > >> > >> afaik, the address element is not supposed to contain this kind of > >> information as it is related to the people who "maintain/are > >> responsible" > >> for the document itself (or a section of the document). > > It's a plain English but I read it many times, still I don't quite > understand what you meant by 'not supposed to contain this kind of > > > >> information as it is related to the people who "maintain/are > >> responsible" > >> for the document itself (or a section of the document).' From: http://www.w3.org/TR/REC-html40/struct/global.html#h-7.5.6 "The ADDRESS element may be used by authors to supply contact information for a document or a major part of a document such as a form. This element often appears at the beginning or end of a document." -- Regards, Thierry | http://www.TJKDesign.com *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] styling address tag or microformat hcard
On Jun 3, 2008, at 4:49 PM, tee wrote: Thierry afaik, the address element is not supposed to contain this kind of information as it is related to the people who "maintain/are responsible" for the document itself (or a section of the document). It's a plain English but I read it many times, still I don't quite understand what you meant by 'not supposed to contain this kind of I look into the Mage folder, and the file I found that maybe controlling the address globally is located in 'Mage/Customer/etc/ config.xml'. Forgot to add, strictly speaking, that address is xml format, not html address tag correct? here is the code: HTML true I found this 'How to add style to XML'in W3C site. http://www.w3.org/Style/styling-XML tee *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] styling address tag or microformat hcard
Thierry afaik, the address element is not supposed to contain this kind of information as it is related to the people who "maintain/are responsible" for the document itself (or a section of the document). It's a plain English but I read it many times, still I don't quite understand what you meant by 'not supposed to contain this kind of information as it is related to the people who "maintain/are responsible" for the document itself (or a section of the document).' under app/design/frontend/default/default/template/customer/ address.phtml you can use this code inplace of where it says '..' (line 30 or thereabouts). Thanks Rob, for the example, I will try it out, however I don't think this is the right file and suspect it's not used anywhere in the site, because it has table markup. In the customer/my dashboard page, the address section is pulled from 'customer/account/dashboard/ address.phtml' which is pulled from this ' >getPrimaryBillingAddressHtml() ?>' and this ' >getPrimaryShippingAddressHtml() ?>'. In the onepage checkout, there is also an address section located in the 'progress.phtml', with this code: getShipping()->format('html') ?>address>. I look into the Mage folder, and the file I found that maybe controlling the address globally is located in 'Mage/Customer/ etc/config.xml'. So Adam, while it has no limitations changing template and layout (I know first hand how much freedom Magento gives to web designer as I have literally changing every line of html code in every phtml file :), but this address thing, I have not yet figured out and can't find a way to edit it at all. Magento is really great and they have done a terrific job, I do thinkt, the 'web standard' and 'semantic' part fall short, but as a user, I don't feel I can't expect much from them to deliver a 'much better' web standard compliant software - I wanted to use 'perfect' this word, but reminded myself there isn't a 'perfect' web standard solution but a good/best practise :) tee *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] styling address tag or microformat hcard
There are no limitations with Magento when it comes to templates / layout etc. So you could easily implement hcard. Cheers Adam (www.tweakmag.com) tee wrote: In Magento, they use ... for customer address. It lacks flexibility for styling as I can't have other html tags place inside the address tag. I wonder if there is a semantical way to do it and that it produces no validation error. Also, if any of you have started developing sites in Magento, do you know if I can incorporate Microformat hcard easily? Many thanks! tee *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *** *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
Re: [WSG] styling address tag or microformat hcard
Thierry Koblentz wrote: Hi Tee, In Magento, they use ... for customer address. afaik, the address element is not supposed to contain this kind of information as it is related to the people who "maintain/are responsible" for the document itself (or a section of the document). It lacks flexibility for styling as I can't have other html tags place inside the address tag. I wonder if there is a semantical way to do it and that it produces no validation error. Also, if any of you have started developing sites in Magento, do you know if I can incorporate Microformat hcard easily? That's the way to go, but I don't know about Magento Hi Tee, under app/design/frontend/default/default/template/customer/address.phtml you can use this code inplace of where it says '..' (line 30 or thereabouts). $_address->toString("{{firstname}}"); ?> $_address->toString("{{lastname}}"); ?> $_address->toString("{{street}}"); ?> $_address->toString("{{city}}"); ?> $_address->toString("{{regionName}}"); ?> $_address->toString("{{postcode}}"); ?> T: $_address->toString("{{telephone}}")); ?> It's not ideal, there might be some missing fields for example so it's usually best to only write out the surrounding HTML when the variable is present. There's a bunch of places where addresses appear aswell as this but that don't give you an easy way of separating out the parts of the address eg. book.phtml - for that file i just replaced with . Hope that gets you started -Rob *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
RE: [WSG] styling address tag or microformat hcard
Hi Tee, > In Magento, they use > ... > for customer address. afaik, the address element is not supposed to contain this kind of information as it is related to the people who "maintain/are responsible" for the document itself (or a section of the document). > It lacks flexibility for styling as I can't have other html tags place > inside the address tag. I wonder if there is a semantical way to do > it and that it produces no validation error. Also, if any of you have > started developing sites in Magento, do you know if I can incorporate > Microformat hcard easily? That's the way to go, but I don't know about Magento -- Regards, Thierry | http://www.TJKDesign.com *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***
[WSG] styling address tag or microformat hcard
In Magento, they use ... for customer address. It lacks flexibility for styling as I can't have other html tags place inside the address tag. I wonder if there is a semantical way to do it and that it produces no validation error. Also, if any of you have started developing sites in Magento, do you know if I can incorporate Microformat hcard easily? Many thanks! tee *** List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] ***