Jump to content

Inputfield Page Source (module)


Martijn Geerts
 Share

Recommended Posts

Inputfield Page Source

Display a string with the rendered output of the Page (per it's Template) in an Inputfield. The markup could be copied with a button click (flash enabled browsers) and/or copied manually from the Inputfield. The rendered output is a runtime only value which is not stored in the database.

Potential Use

Provide an easy way for editors to copy the sourcecode of the page for the use in newsletter services and such.
 
Note !
This Inputfield should not be used in the page template directly. (could give some “funky” results :P )
 

post-577-0-62905200-1420789425_thumb.png

Download on GitHub

  • Like 10
Link to comment
Share on other sites

  • 2 weeks later...

Actually I build a Fieldtype & Inputfield that connects with MailChimp, creates a campaign, in the field you could select the lists and segments and a few other settings. After saving the page, all markup, settings and plain text is pushed to mailchimp. When I finished the field, the API was depricated, so the field has never been used in the wild. (bummer)

As a response I build this simple field and this doesn't rely on those great PHP coders at MailChimp who code quicker then I can smoke my cigaret. 

Link to comment
Share on other sites

  • 4 years later...

This looked like exactly what I need - similar use, copying email code. It doesn't support the latest version though. Does anyone know of a similar module that works with PW3? 

EDIT: Nevermind. I found a new way to break it though. Because my site is exclusively used by backend users and those with specific roles, I had guest page view turned off. Turning it on got the module working in PW 3. 

Edited by Chris Whissen
update
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...