This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

idunets
idunets

There are some way to extract values from extra-fields of static pages into some component?

I need that to implement AJAX handlers...

I can load the static page content but, I need to get properties that was setted by user...

enter image description here

I need some example of code... I can load the static page content as a Partial #noobhacks :)

public function onOpenHome()
{

    $this->page['categories'] = Category::all();

    return [
        //'main' => $this->renderPartial('home'),
        'main' => $this->renderPartial('../content/static-pages/index'),
        '.home_categories' => $this->renderPartial('work_list_categories_post')
    ];
}

or as content:

[viewBag]
==
<main class="home_container" __color="{{ color }}">
    <section class="box">
        {% content '/static-pages/index.htm' %} <!-- <<<<------  -->
        {{ content |raw }}
    </section>
</main>

But I have no ideia how to access to property of colorpicker color

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.