Jump to content

Recommended Posts

Posted

Hi Community :)

I have just combined Foundation+ProcessWire (BIG THX to Joss :) ) and now I would like to use the fields as code-snippet-container from Zurb Foundation Framework. Is there any way to do this? Thanks!

Posted

I don't know if this is what you are asking for or talking about:

I use Hanna Code for most Foundation specific add-on stuff (Buttons, Panels, Pricing Tables, etc....).  It works very nicely and saves an enormous amount of time.

I either create an exclusive field (normally textarea) that will render whatever Foundation add-on I need or add it to existing $body (textarea) or text fields.

  • Like 3
Posted

Hannoa Code looks good, but I don't understand how it works.

I have in HannaCode -> [[top_bar_navigation]] with the code for the navigation bar as PHP.

Also I have a field marked as Textarea. TextForamtters -> HannaCode | Content type HTML/Markup.

my Template:

<body>
 <?php echo $page->top_bar_navigation; ?>
</body>

but I can't see my navigation bar. Could you help me please?

Posted
<div class="panel callout radius">
   <p><H4>Happy Labor Day!!!</H4></p>
<p><strong>Wishing everyone a fun and safe Labor Day Holiday.</strong></p>
<p><strong>We're closed today and will be open tomorrow, 2 September 2014.</strong></p>
</div>

This is one I used for the US Labor Day Holiday.  This is a Foundation Callout.

Here's how it looks from the Admin side:

post-756-0-64753100-1410700198_thumb.png

Posted

I can use this only like this:

<?php
$hanna = $modules->get('TextformatterHannaCode');
$page->body = $hanna->render('[[panel]]');
echo $page->body;
?>

but not like this:

[[panel]]

in my template.php

why?

Posted (edited)

On your page where you would want to see the Foundation Callout, you would have a textarea field (mine is called "body").

post-756-0-92131500-1410702583_thumb.png

In the body field I add the Hanna code:

[[wgc-panel-home-bottom-holiday]]

I make use of the _init.php file and have the following:

$body = $page->body;

In the particular template file or better yet in _main.php or header.inc you would have:

	echo $body;
Edited by cstevensjr
  • Like 7
Posted

On your page where you would want to see the Foundation Callout, you would have a textarea field (mine is called "body").

attachicon.gifpw-body-field.png

In the body field I add the Hanna code:

[[wgc-panel-home-bottom-holiday]]

I make use of the _init.php file and have the following:

$body = $page->body;

In the particular template file or better yet in _main.php or header.inc you would have:

	echo $body;

YEEEESSSSSS!!!!

Thank you so much for your time! Now I have understand how can I use Hanna Code! Thank you so much for your help and have a nice day :-)

  • Like 1

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
×
×
  • Create New...