Jump to content

psy

Members
  • Posts

    620
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by psy

  1. Links added and closing tags removed. I updated the version # to 0.0.3 but it is still showing 0.0.2 in the modules directory? Thank you all for your help. Much appreciated.
  2. OK. Still learning. Thanks. Submitted module via github and had to open a forum topic as part of that process. Hopefully sorted now. Let me know if I need to do more to make the module available.
  3. Hi dragan Could be a combination of a few things. It's my first module and I think I followed all the instructions to submit it to PW modules and the new forum. Github link is https://github.com/clipmagic/MarkupJsonLDSchema/zipball/master
  4. This module helps you dynamically create schemas for improved SEO & SERP listings from within your templates. Each schema can be configured to meet your requirements. You can even add your own ProcessWire schema classes to the module. Read about the module on github: https://github.com/clipmagic/MarkupJsonLDSchema Download from github: https://github.com/clipmagic/MarkupJsonLDSchema/zipball/master Download from ProcessWire modules: http://modules.processwire.com/modules/markup-json-ldschema/
  5. Just upgraded a site to 3.0.18 and having the same issue, ie image description not showing as image tag alt attribute even though 'body' ckeditor field settings as per tpr's post above.
  6. After trawling/trying everything this forum and everything I could search for on the topic, I couldn't find a solution to my problem. Scenario: I have a Fieldtype Options field as radio buttons. It's a required field 'display_price' with a default value of, 'Price'. The other choice is 'Text'. To preset a radio field with a default value it must be 'required'. I have fields that show/hide dependent on the value of 'display_price'. If I don't set 'display_price' as a required field, the page edit screen throws a warning that the default cannot be set. When 'required' is set, on the admin page edit, the show/hide works perfectly. However, regardless of the choice of the radio field, the dependent field's value is never saved. Removing the 'required' status of the 'display_price' field results in the associated subfield being saved. HOWEVER, from the client's POV, it's necessary that the 'display_price' be a required field. Help! TIA
  7. After creating fields and assigning to a template, I added pages with the template. All good. At one point, I had an admin edit page open to view the data and the template configuration in another browser tab to check the field names as I was coding the layout offline. I edited the page and submitted. I then viewed the front end page in another browser tab which showed nothing? Went back to the template config tab and refreshed it. All 35 x fields, including the title field were dropped from the template!!! I checked in phpMyAdmin and my custom fields were all there with, eg land_measurement: {"inputfieldClass":"InputfieldSelect","tags":"property","collapsed":0,"send_templates":[41],"showIf":"land_area!=''","columnWidth":80} where [41] matched my template id. Everything else in the template configuration was correct. What happened to the field assignments in the template? How can I recover them without having to reconstruct the template? More importantly, what caused this behaviour so I can avoid it in the future? Using: PW 2.6.1 Apache version 2.2.29 PHP version 5.4.40 MySQL version 5.5.42-37.1-log PS: I also had a template lose its fields on another site running an earlier PW version on a different host. Any ideas? TIA
  8. Woohoo! Got it. Thank you Soma. So much to learn! Solution: do as you say above and make the field Single page (Page) or empty page (NullPage) when none selected, then in the template: <p class="type"><?=$child->fields->property_category->label?>: <?=$child->property_category->title?></p> Still had to put $child->fields->property_category->label but all part of the learning process. Cheers
  9. Hi soma Not sure what you mean. This is my first PW site. I'm converting an existing site from another CMS. 'property_category' is a dropdown (single select). The $child page also contains other fields that are checkbox groups using the 'page' field type but haven't got to those yet. Does this make my question clearer?
  10. Thank you for the above. Unfortunately I cannot get it to work in my scenario where I have a foreach loop: <?php $children = $page->children; ?> <div class="listings"> <?php foreach ($children as $child) { ?> <div> <p><?=$child->headline?></p> <p><?=$child->property_display_price?></p> <p><?=$child->fields->property_category->label?>: <?=$child->property_category->title?></p> </div> <?php }?> </div> The only way I could get the 'property_category' label to display on the front end was as above specifying the 'fields' object and the property_category title is blank. The property_category title value gets called from another page from a 'page' dropdown. Like sarah_hue, I've tried lots of variations and the only way I can get the remote page title to display on the front end is to hard code the remote page id: <?=$pages->get('1088')->title?> Where 1088 is the selected value of the dropdown. All help most welcome.
×
×
  • Create New...