4 replies [Last post]
Zsigmon's picture
Offline
Joined: 11/09/2007
Juice: 64
Was this information Helpful?

Hey,

I have a tricky question.
What if I'd like to use formatted product page + CVS import?

In details:

I'd like a product page look like this: http://www-03.ibm.com/systems/uk/x/rack/x3250/index.html
(actally I don't need tabs, but detailed information, maybe pictures, links, etc in a formated way)
Can I use CVS import with this together?

I mean: Will the page be overwritten if I use CVS import after having the formatted product page created?

Or is there any way to create a formatted template for various product types and import background data via CVS import? (this option would be lovely ; -)

Thanks in advance,

Zsigmond

Zsigmon's picture
Offline
Joined: 11/09/2007
Juice: 64
XML

Actually importing XML + strong knowledge of XML would solve this problem, but now I'm looking for a solution for simple human beings, not hardcore programmers Smiling

CpILL's picture
Offline
Early adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/08/2007
Juice: 549
Re: CVS import + formatted product page

The formating of the page is controlled via the theme template. What you mean is formating the content. The CSV import doesn't check the data's format or escape it with CDATA so formated text might not work. Importing the data and how it looks when its displayed are 2 separate things usually.

If you want something specific, like the IBM page, then I'd go with:

1. create a product class (e.g. 'doorbell')

2. Add a custom CCK field for each part of the page you want to format specifically to the 'doorbell' content type.

3. Modify the theme template to show the different parts where you want them in a template file called 'node-doorbell.php'

Uberdevelopment www.tsd.net.au/blog

Zsigmon's picture
Offline
Joined: 11/09/2007
Juice: 64
uhm

Final step: background data will come from a CSV file, as column n, n+1, n+2 and so on.
Am I right? Smiling

CpILL's picture
Offline
Early adopter... addicted to alphas.Getting busy with the Ubercode.
Joined: 08/08/2007
Juice: 549
Re: uhm

spot on my man Eye-wink

Uberdevelopment www.tsd.net.au/blog