Jump to content

gregory

Members
  • Content Count

    70
  • Joined

  • Last visited

Community Reputation

17 Good

About gregory

  • Rank
    Full Member

Contact Methods

  • Website URL
    http://www.pixeldev.it

Profile Information

  • Gender
    Male
  • Location
    Italy

Recent Profile Visitors

1,133 profile views
  1. To build my templates I usually use "Direct Output". I ask you if it is possible to avoid reloading the menu included in _head.php when browsing the website. For example, I noticed that using "Delayed output" the menu does not reload (optically) and appears to remain fixed. How can I do the same thing through "Direct Output"? Thank You
  2. Great! That's exactly what I was looking for. It works perfectly! Thanks a lot πŸ™‚
  3. Unfortunately the icons are not stored anywhere. I'll see what I can do with PageReference... πŸ˜‰
  4. Thanks for the reply, but that's not what I need. The backend it's ok, but in frontend I would like to show the icons. I attach two screenshots.
  5. Hi Guys, is it possible to retrieve the icon of a field set in FieldtypeOptions? Eg, setting a "WiFi" icon to a "WiFi" field (checkbox) in the admin, and then show this icon + name on frontend? // Output multiple selection: foreach($servizi as $item) { echo '<ul class="uk-list">'; echo '<li>' . $item->title . '</li>'; echo '</ul>'; } Thank You in advance.
  6. I think I have solved it this way thanks to your suggestion. if($input->get('tipologia')) { $value = $sanitizer->selectorValue($input->get('tipologia')); $selector .= "tipologia={$value}, "; $summary["tipologia"] = $sanitizer->entities($value); $input->whitelist('tipologia', $value); }
  7. Hi guys. In Skyscrapers search-form.php, I have added a select to filter the contents based on an Option (type) field. <div class='uk-form-row'> <label class='uk-form-label' for='search_tipologia'>Tipologia</label> <div class='uk-form-controls'> <select id="search-tipologia" name="tipologia" class="uk-select"> <option value="">Qualsiasi</option> <?php foreach(array('Bed and Breakfast', 'Agriturismo', 'Masseria', 'Hotel') as $range) { $selected = $range == $input->tipologia ? " selected='selected'" : ''; echo "<option$selected value='$range'>$range</option>"; } ?> </select> </div> </div> In the search.php template how can I retrieve the contents? $selector = ''; // we use this to store the info that generates the summary of what was searched for // the summary will appear above the search results $summary = array( "city" => "", "height" => "", "floors" => "", "year" => "", "keywords" => "", "tipologia" => "", ); // if a city is specified, then we limit the results to having that city as their parent if($input->get('city')) { $cityName = $sanitizer->pageName($input->get('city')); $city = pages("/cities/$cityName/"); if($city->id) { $selector .= "parent=$city, "; $summary['city'] = $city->title; $input->whitelist('city', $city->name); } } // if a tipologia is specified how to show the content? if($input->get('tipologia')) { <------------------------> } // we are allowing these GET vars in the format of 999, 999-9999, or 999+ // so we're using this loop to parse them into a selector foreach(array('height', 'floors', 'year') as $key) { Thank You in advance.
  8. Hi @Gideon So, I'm using pro module "Repeater Matrix". I enclose a series of screenshots regarding the template. Thanks for your help.
  9. Hi @Gideon So, "case_studies" is a repeater matrix field.
  10. Hi @Gideon So, the field type (named pdf) is "file".
  11. Hi everyone. I can't see the PDF uploaded via a field called "pdf". I get a url like this: http://localhost:8888/mywebsite/site/assets/files/1129/test.pdf%EF%BB%BF%EF%BB%BF Could anyone help me? Thank you. <?php foreach($page->case_studies as $item) { if($item->type == 'contenuto') { echo " <a class='btn btn-primary btn-sm' target='blank' href='{$item->pdf->first()->url}' role='button'>Download</a> "; } } ?>
  12. Thanks, that was what I was looking for! Thank you all for the support. πŸ™‚
  13. Hi guys. I need to create a field (link field) that allows me to select the internal pages to use as links. Do you have any suggestions? Thank you.
  14. Hi @flydev, have you got to test it with Form Builder? Thank You.
Γ—
Γ—
  • Create New...