$49

Ad Wizard

Documentation  •  Changelog

Documentation

Custom Fields

As of Ad Wizard 3, it's now possible to use custom fields with your ads. These custom fields can be absolutely anything that you want.

In the example above, the "Alt Tag" and "Title Tag" are native Plain Text fields in Craft. It's possible to pass these values in as options when you code it in Twig.

{
    'attr': {
        'alt': '{altTag}',
        'title': '{titleTag}'
    }
}

Which produces the following HTML...

<img
  src="http://example.com/assets/ads/coca-cola.png"
  width="200"
  height="90"
  class="adWizard-ad"
  style="cursor:pointer"
  alt="Pause and refresh! Coca-Cola"
  title="Vintage Coca-Cola advertisement"
  onclick="adWizard.click(99, 'http://www.coca-cola.com/')"
/>

Setup

To create a custom layout, click the "Field Layouts" link in the sidebar.

Then you'll be able to attach your new field layout to an Ad Group.

Once you've done that, you'll be able to edit custom fields on your Ad just as you would with any other element type.