Page 1 of 1

add new feture

Posted: Sat Oct 10, 2009 10:26 pm
by ykkashyap
Hi,

I am a new for this cms.

Now i am working on  this cms base website  for http://ekem.org.gr/

when i click on the publocation menu then a page open. On this page there is a section of ebook .
In ebook section, there is a link of "Free Download", below every every ebook image .

My problem is here :-

when any one click on this link then a window open and user input their email and that email save in database then that ebook(in pdf format) open.


Plz help me to slove this problem.............................


Thanks and regards,
YOGESH Kumar Kashyap

Re: add new feture

Posted: Sun Oct 11, 2009 1:46 pm
by Peciura
create UDT lets say "test" with content
  return $_GET['file_path'];

create new inline form
with
  fields
     required field e-mail(enable e-mail validitatio ),
     hidden field "file_path" with smarty tag  "{test}" and
     "store relults in DB"
  submition template  {*i assume file "http://www.ekem.org.gr/uploads/news/id6 ... MA1009.pdf" exists*}
     {capture assign='path'}{root_url}/uploads/news/{$test}{/capture}
     

create new page "new_page" (not cachable) it sould contain new form.

In http://www.ekem.org.gr/index.php?page=p ... s&hl=en_US  create links like this
  Free Download




edit This topic should be moved some where else.

Re: add new feture

Posted: Sat Dec 12, 2009 6:29 pm
by spngg
Hi Peciura.

I'm also trying to do something like this, but I don't understand what you mean by "create new inline form" can you give me a hint?

thanks
spngg

Re: add new feture

Posted: Sat Dec 12, 2009 9:34 pm
by Peciura
what you mean by "create new inline form" can you give me a hint?
Nothing special, just tick "Display form inline?:  Inline means any form followup replaces the {cms_module} tag, non-inline replaces the {content} tag." in the "Main" tab of your form.

Re: add new feture

Posted: Sun Dec 13, 2009 3:59 pm
by spngg
thanks pecuria, but when i create a new content page i cannot see this tag.  i've also searched these forums and the api and cannot find anything for "Display form inline"  :P

How do I create a form ?

Thanks

Re: add new feture

Posted: Mon Dec 14, 2009 7:18 pm
by Peciura
How do I create a form ?
1. Download and install module FormBuilder-0.5.12 (all newer versions are still in Beta stage). dev.cmsmadesimple.org/project/files/69#package-77
2. Create form (Extensions » Form Builder » Add New Form); at this step you will find all form options.
3. Call it in content page like

Code: Select all

{cms_module module='FormBuilder' form='contact'}