Checkbox Selection

Author Message

Philip K.

Monday 09 January 2006 6:31:56 am

Hi.

There is a little problem:
In my website I want to list some pdf files.
A user should have 2 alternatives to get some of these pdf files:

First way:
The user clicks on the pdf file to downoad it.

Second way:
There is a checkbox in front of each row where the user can make his selection which pdf files he want to get.

after that he must fill out a contact form an send it.
how can I check, which checkboxes were checked by the user??

thanks a lot - I hope you understood my problem - if not: ask :)

Linux is like a wigwam; no windows, now gates, and apache inside!

Siw Helen Thorslund

Monday 09 January 2006 12:26:20 pm

<b>First way:</b>

Use this code to get a link to the pdf for download:

To open pdf in same window:

	{def $attribute=$node.object.data_map.file}
	<a href={$attribute.content.filepath|ezroot()}>{$node.name}</a>

To open a box that will ask where to download pdf to:

	{attribute_view_gui attribute=$node.object.data_map.file icon_size='small' icon_title=$node.name}

<b>Second way:</b>

I would override the products and modify this with checkboxes. Then use the order loop from the shop to collect what files and by who they are downloaded.

www.VZT.no ( http://www.VZT.no )
VZT References ( http://http://vzt.no/index.php/vzt_eng/referanser )
VZT Extensions ( http://vzt.no/index.php/vzt_eng/extensions )
www.MediaBase.no ( http://www.MediaBase.no )

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.