FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

page part forms (custom fields)

Feed 87 posts, 17 voices

Avatar
184 posts

If anyone has an idea of how to assign a filter to a page_part_form type, I would be most interested. I have a fairly large form I am working on and it would be great to assign a WYSIWYG filter to just one or two of the textarea fields (I don’t want the client to have to be expected to do this for every page they create, but rather have the filter be pre-assigned).

 
Avatar
4 posts

Does anybody know how to enable filters? I was trying fckeditor and textile, neither of them worked.

 
Avatar
1 posts

In page part forms, when you have either a list-box or drop-down field and save your page, does it pre-select your chosen items when you edit that page again?

It’s not happening for me: it works fine with radio boxes (and viewing the source of the page shows ‘checked=“checked”’), but not for list-boxes or drop-downs (there’s no ‘selected=“selected”’).

I’m using Frog 0.9.5, with SQLite, and version 0.0.7 of TheM’s plugin.

Cheers.

 
Avatar
70 posts

I’ll take a look into this. First priority is to port everything to Wolf. Not sure how log Frog/Wolf can use this plug-in together.

 
Avatar
5 posts

Regards to M, best ever plugin for Frog! Waiting for filter support with page part forms. Thanks, M!
BTW: it would be GREAT if there will be image support. For example insert image(images) in product catalog.

 
Avatar
9 posts

Split multiselect values with json_decode:

ex.

<?php 
    $array = $this->content('__multiselect__');
    $result = json_decode($array); 
    echo $result.'<br />'; 
?>

To find values if it exists in multiselect use:

<?php		
    $search_array = $this->content('__multiselect__');
    $result = json_decode($search_array);
    if (in_array('search_string', $result)) {
        echo '---search_string--- string has been found!';
    }
    else {
        echo 'Not found... :-(';
    }
?>