Jump to content

felixthecat

Members
  • Posts

    13
  • Joined

  • Last visited

Profile Information

  • Gender
    Male

felixthecat's Achievements

Jr. Member

Jr. Member (3/6)

1

Reputation

  1. Hello, What is the best approach to structure templates/pages where child-pages have similarities but different complexity. Person A name address (optional) Person B name interests (optional) birthday (optional) Person C name address (optional) age (optional) interests (optional) In the example only the name is common for all person (pages) and the other properties (fields) are optional. So what is best in terms of maintenance and handling? 1. parent/child structure (every optional field(s) is a child-page) 2. Repeater Matrix 3. Table with all possible properties (efficient?) 4. Pages with "showif" visibilty for fields
  2. Thank you... that is working ? But what is the relation between pagimages and the field?
  3. Hello, What is the correct way to add an manually created file to an existing imagefield. The new created file is in the same Folder where the page stores the files. Here what i tried. Runs without errors but doesnt add the file to the imagefield: // image_ok.jpg is the file which is stored in the imagefield // image_new.jpg is the manually created file and should be added to the imagefield of image_ok.jpg $pagefiles = $imageOK->pagefiles; $pagefiles->add('image_new.jpg' ); $page = $imageOK->page; $page->of(false); $page->save($pagefiles->name); What is wrong? Thanks.
  4. @bernhard i give it a try here a temporary hacky solution based on somas article about custom js in admin: http://soma.urlich.ch/posts/custom-js-in-processwire-admin/ // site/templates/admin.php $modules->get('JqueryCore'); $config->scripts->add($config->urls->templates . "scripts/changezoom.js"); require($config->paths->adminTemplates . 'controller.php'); // site/templates/scrips/changezoom.js $(function() { $("button.InputfieldImageButtonFocus").click(function() { setTimeout (function() { $(".focusZoomSlider" ).slider({max:99}) }, 200); }); });
  5. Yes i know the ImageSizerEngine php file calculates the scale with the function $scale = 1 + (($zoom / 100) * 2); and limits the zoom values from 2 to 70. I am using my own custom function to calculate a crop/zoom and build a image. I think it would be more logical to have a zoom-range from 0%-100% or 0.0-1.0. Where 100% means return the full image and 0% is an 0px image ? Anyway... is there some sort of "javascript hook" to change the slider component max value without manipulating the source files? Thank you
  6. Hello, I really like the new Features Focus and Zoom. Unfortunately the Zoom is limited to 50%. I looked in the sourcecode an found it hard coded in the file InputfieldImage.js zoomSlider.slider component. Any Chance to get the full range from 0 to 100. Thanks
×
×
  • Create New...