-
Posts
95 -
Joined
-
Last visited
Contact Methods
-
Website URL
http://www.pixeldev.it
Profile Information
-
Gender
Male
-
Location
Italy
Recent Profile Visitors
1,916 profile views
gregory's Achievements
Full Member (4/6)
27
Reputation
-
Add dynamic items in a select by FieldtypeOptions
gregory replied to gregory's topic in API & Templates
Hi @Zeka your suggestion works. $field = $fields->get('tipologia'); $all_options = $field->type->getOptions($field); $selected_option = $all_options->get("title="); // or ? foreach($all_options as $item) { $selected = $item->id === $selected_option->id ? " selected='selected' " : ''; echo "<option$selected value='{$item->id}'>{$item->title}</option>"; } Is there a way to visualize the translated values? Thanks -
gregory started following Menu fixed in Direct Output , Add dynamic items in a select by FieldtypeOptions , [Solved] Dynamically populate a field on another page and 2 others
-
Hi guys. How can I recall in a select the values of a FieldtypeOptions (tipologia in my example)? Thanks foreach($page->tipologia as $item) { $selected = $item->name == $input->item ? " selected='selected' " : ''; echo "<option$selected value='{$item->name}'>{$item->title}</option>"; }
-
Hi guys, is there any way to dynamically populate a field on another page after selecting the plan you want? The landing page will show the name of the selected plan and the price.
-
UIKIT3 slider autoheight using repeater fields
gregory replied to buster808's topic in Themes and Profiles
Try this @buster808 <div class='uk-slider-container uk-visible-toggle' tabindex='-1' uk-slider="ratio: 1280:900"> Ratio: size of your content. -
Module for Recurring Payments / Subscriptions
gregory replied to markus_blue_tomato's topic in General Support
? -
[SOLVED] Error sending comment (FieldtypeComments)
gregory replied to gregory's topic in General Support
I answer myself. The error is triggered when we leave empty the configuration field "Notifications From Email". ?- 1 reply
-
- 1
-
- comments
- comments module
-
(and 1 more)
Tagged with:
-
The error is triggered when we leave empty the configuration field "Notifications From Email".
-
Hi all, I duplicated the FieldtypeComments module by adding it in site/modules to get the Uikit3 html output. Problem: I can't post a comment. Where am I doing wrong? <?php echo $page->commenti->renderForm(); ?>
- 1 reply
-
- comments
- comments module
-
(and 1 more)
Tagged with:
-
Hi guys, in my _head.php template when I add the PHP code to display the menu I get an error. #0 wire/core/TemplateFile.php (304): require() #1 wire/core/Wire.php (394): TemplateFile->___render() #2 wire/core/WireHooks.php (823): Wire->_callMethod('___render', Array) #3 wire/core/Wire.php (465): WireHooks->runHooks(Object(TemplateFile), 'render', Array) #4 wire/modules/PageRender.module (536): Wire->__call('render', Array) #5 wire/core/Wire.php (397): PageRender->___renderPage(Object(HookEvent)) #6 wire/core/WireHooks.php (823): Wire->_callMethod('___renderPage', Array) #7 wire/core/Wire.php (465): WireHooks->runHooks(Object(P (line 7 of site/templates/_head.php) This error message was shown because: site is in debug mode. ($config->debug = true; => site/config.php). Error has been logged. This is the code for render menu: foreach($home->and($home->children) as $item) { $class = $item->id == $page->rootParent->id ? 'uk-active' : ''; echo "<li class='$class'><a href='$item->url'>$item->title</a></li>"; } How can I solve? Thanks
-
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
-
Great! That's exactly what I was looking for. It works perfectly! Thanks a lot ?
-
Unfortunately the icons are not stored anywhere. I'll see what I can do with PageReference... ?
-
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.
-
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.
-
[SOLVED] Add dynamic filtering content with dropdown in Skyscrapers
gregory replied to gregory's topic in API & Templates
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); }