Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/21/2012 in all areas

  1. Has anybody had the chance to try out these repeatable fields yet? I have one more update that I put in the latest commit, though this applies to all fields, not just repeatable fields. This update enables you to create columns rather than just rows. You can now specify a width percent in any field's input settings (or use the columnWidth property on an inputfield from the API). Here's a screenshot of the new setting: And here's the result (combined with a repeatable field). In the screenshot below, I've set building_name to have a width of 50%, floors to have a width of 25% and height to have a width of 25%: Note that because this involves some stylesheet tweaks, this may not work on 3rd party admin themes right away. But I'll be happy to assist admin theme developers to add the necessary stylesheet tweaks to make this work.
    3 points
  2. This option has been added in the latest commit. You'll see it when editing any field from the 'input' tab. From the API, it's Inputfield::collapsedPopulated
    1 point
  3. So, In this case my answer would be the winner, right?
    1 point
  4. So many different answers for such a simple question This is how flexible PW is! and I will add another one If you would like to have the kind of "settings" page that CMSs like Wordpress have, you can create a page named "site_settings" or "preferences" or "watheveryouwant", and throw there fields like "site_title", "background_color", "content_width", etc... and call them from templates like this: $settings = $pages->get('name=site_settings'); $title = $settings->site_title; $background = $settings->background_color; $width = $settings->content_width; EDIT: I created variable $settings for readability
    1 point
×
×
  • Create New...