Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/22/2012 in all areas

  1. http://selectivizr.com/ works wonders if you care about IE6-8.
    1 point
  2. You should think if repeaters are the best way of achieving what you want. In this case, I suspect that it would be better to create each project as a child of a "projects" page. But I will answer your doubt anyway. Its not much different then doing the same with other kinds of fields. But, like with images, the field return a page array that you have to iterate with a foreach() Taking the example on the repeater fields docs http://processwire.c...ypes/repeaters/ (is this one that you were talking about?) foreach($page->buildings as $building) { echo "<h2>{$building->title}</h2><p>"; echo "Height: {$building->feet_high} feet, "; echo "Floors: {$building->num_floors}, "; echo "Year built: {$building->year_built} </p>"; } Notice that it's not that different from your example, and all the html is being echoed from inside the foreach. The same example can be also written with this alternative sintax, if it makes it more clear for you: <? foreach($page->buildings as $building):?> <h2><?=$building->title ?></h2> <p> Height: <?=$building->feet_high ?> feet, Floors: <?=$building->num_floors ?>, Year built: <?=$building->year_built ?> </p> <? endforeach; ?> You just have to adapt it to your html code. In your case I can imagine something like this: <? foreach($page->projects as $project): ?> <h3>project name</h3> <p><?=$project->name ?></p> <h3>project budget</h3> <p><?=$project->budjet ?></p> <h3>project description</h3> <p><?=$project->description ?></p> <? endforeach; ?>
    1 point
  3. Hello there update v1.0.3 I just went through all and release an new fix update for latest changes in PW 2.2.+ 1. Some issues fixed with new inputfields css and form builder mainly. Also added a overwrite of the TinyMCE skin used by default in PW. 2. This is now also in the default.php's header to set the "default" skin to all TinyMCE inputfields: ... <script> // overwrite TinyMCE skin setting globally // as defined in /wire/modules/Inputfields/InputfieldTinyMCE/InputfieldTinyMCE.js // and loaded before if('undefined' != typeof InputfieldTinyMCEConfigDefaults) InputfieldTinyMCEConfigDefaults.skin = "default"; </script> </head> Hope this update doesn't introduce any new issues, but I've looked at all and √. Download as always from github. https://github.com/somatonic/teflon-admin-theme-pw2
    1 point
  4. Forehead. I forgot to add forehead, now it's completely different joke. Dammit
    1 point
×
×
  • Create New...