add new feture

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
ykkashyap

add new feture

Post 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
Peciura

Re: add new feture

Post 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.
Last edited by Peciura on Sun Oct 11, 2009 1:54 pm, edited 1 time in total.
spngg
New Member
New Member
Posts: 7
Joined: Sat Dec 12, 2009 6:21 pm

Re: add new feture

Post 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
Peciura

Re: add new feture

Post 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.
spngg
New Member
New Member
Posts: 7
Joined: Sat Dec 12, 2009 6:21 pm

Re: add new feture

Post 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
Peciura

Re: add new feture

Post 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'}
Locked

Return to “Modules/Add-Ons”