Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add leadpages to Camaleon #535

Closed
mazharoddin opened this issue Nov 4, 2016 · 4 comments
Closed

How to add leadpages to Camaleon #535

mazharoddin opened this issue Nov 4, 2016 · 4 comments

Comments

@mazharoddin
Copy link
Contributor

mazharoddin commented Nov 4, 2016

Hi @owen2345,

Can you please let me know how to add Leadpages or other email opt-in landing page builders...I am trying to use contact form, but I feel Leadpages will increase opt-ins greatly.
I would like to offer some give aways to users if they subscribe to my blog, pls let me know how we can do that.

@owen2345
Copy link
Owner

owen2345 commented Nov 4, 2016

Hi @mazharoddin
I don't understand, could you please give me more details or an example?

@mazharoddin
Copy link
Contributor Author

Sure, Leadpages are mainly useful for providing some give aways to users like free PDFs or XLs etc.
Basically if they click the 'give away link' they will be prompted with subscribe option, if they subscribe they will allow to download that free PDF, in some cases if they subscribe they will be sent a confirmation mail along with the pdf download link.
What I observed is it really helps in growing email subscribers. pls find below for few images.

screen shot 2016-11-04 at 4 48 31 pm

If any user clicks on above link will be prompted with subscribe option.
screen shot 2016-11-04 at 4 39 36 pm

Lead pages allows us to configure these subscribe options various way.

@owen2345
Copy link
Owner

owen2345 commented Nov 8, 2016

ohhhh I understand, it is easy:

  • for the admin panel you can show the private file browser with:
$.fn.upload_filemanager({
        formats: $input.data("formats") ? $input.data("formats") : "",
        selected: function (file, response) {
            console.log(file.url.split('?file=')[1].replace(/%2/g, '/'));
        },
        private: true
    });
  • For the frontend you can create another url to download this file like:
send_file CamaleonCmsLocalUploader::private_file_path(params[:file], current_site)

Regards,

@mazharoddin
Copy link
Contributor Author

Sure @owen2345, let me try it. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants