groups

info


tags: @import

Link to this snippet:


Download to Code Collector

language: HTML
licence: Other

ExtraContent Sample - @import and Contact Form

options: send to code collectorview all seydoggy's snippets
<div id="myExtraContent1">
	<div class="column two">
		<div class="content">
			<h2>How cool would it be?</h2>
			<p>How cool would it be to add a contact for to your HTML page? Well you need to have styled text for Pluskit's @import to work, so with ExtraContent, you can add the @import rule into the styled text sidebar inside an ExtraContent snippet and KAPOW! You have a contact form ON your HTML page! w00t!</p>

			<p>Here is what you do:</p>
			<ol>
				<li>create your HTML page using the php extension</li>
				<li>add <code><?PHP session_start(); ?></code> to View > Show Page Inspector > Header > Prefix</li>
				<li>in a styled text sidebar add <code>@import((Contact Form))</code> where "Contact Form" is the name of your contact form.</li>
				<li>wrap your @import rule in and appropriate ExtraContent snippet</li>
				<li>ignore formatting where necessary, but DO NOT ignore the @import rule!</li>
				<li>That's it, Pluskit and ExtraContent does the rest!</li>
			</ol>
			
		</div><!-- .content -->
	</div><!-- .column .two -->
	<div class="column two">
		<div class="content">
			@import((Contact Form))
		</div><!-- .content -->
	</div><!-- .column .two -->
</div><!-- #myExtraContent -->