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

karolis88 posts

Feed 9 posts

[Sticky] Which filter did you use for editing page content?

I use only TinyMCE. It has most useful functions.

 

Multiple find

And there issue again. How can i add ->children(array($args)) to this code?

 

page part forms (custom fields)

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... :-(';
    }
?>
 

Multiple find

Solved by myself.

<?php 
$types = $this->find('/folder/folder1')->children(); 
$types2 = $this->find('/folder/folder2')->children();
$typesall = array_merge($types, $types2);
$objects = array();
foreach($typesall as $type) :
   $objects = array_merge($objects, $type->children());
// other functions (order by etc.)
?>
 

Multiple find

Hello.

I need to get children from more then one parent. And i want to get these children by some parameters (ex. sort by date etc.)

For example:

<?php $latest_prop_houses = $this->find('/real-estate/london/houses'); ?>
<?php $latest_prop_houses = $this->find('/real-estate/liverpool/houses'); ?>
<?php $latest_prop_houses = $this->find('/real-estate/othercity/houses'); ?>

I want to join these find rows to one row and get all children of these cities (London, Liverpool, Other city).

Any solutions?

 

Bug with URL?

Unfortunately this solution did not work on 0.9.5 for me. Maybe there are other solution?

 

Inline navigation (present level items)

There is a way to show all present level menu items.

It finds present menu item’s parent and all his childs.

<?php $page = $this->find($this->parent->url); ?> 
<ul> 
<?php foreach ($page->children(array()) as $inline): ?> 
<li><?php echo $inline->link() ?></li> 
<?php endforeach; ?> 
</ul>
 

Lithuanian slug - string generator

Lithuanian slug – string generator generates lithuanian characters to english.

Download plugin

 

Extend slug generator

Thats great jMas!

Thanks!

Yesterday I played with your plugin and you can find lt_slug plugin in Plugin requests section.

 

Extend slug generator

Thanks for your quick reply jMas! Nice one!

I understand this is a plugin.

But is it possible to add this funcionality to Frog’s core?

 

Extend slug generator

For many languages Frog’s slug generator does not generates letters (ą, č, ę, ė, į, š, ž and so on).

Is it possible to replace these characters with a, c, e, i, s, z etc. in slug ?

 

Custom data plugin

Thanks for your request jMas!

Maybe I’ll make these refinements in the future.

If you have more free time you can do this and upload new plugin version!

Thanks again!

 

JM Contact plugin - Frog CMS contact form with different fields

What a great plugin.

Thanks jMas!

 

Custom data plugin

Hello everyone!

Custom data plugin allows you to keep custom data (like company name, phone number or email address) in the separated tab on Frog CMS.

Take a look to sql_update.txt file. You can easily add your own custom fields to database.

Getting value from specific field:

<?php custom_data('field_sys_name'); ?>

Download plugin