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

Hessel
Hessel

Hi, I'm building an job overview plugin. It's almost ready but I get really stuck at this point:

I have an Job overview page, wich displays all jobs. each job considers an : title-slug-description-image etc. The component on that page outputs only the title and description, and underneath that there's a read more button.

All jobs on that page are displayed because of onrender():

  public function onRender()
    {        $this->vacatures = $this->page['vacatures'] = VacatureModel::all();
    }

I created a new page called jobs/:slug

the problem is, How can I display all items ( {{ vacature.title }} {{vacature.description}} image, aquirements etc etc of job number 1 using the slug? without showing job number 2?

on the top of the jobs/:slug page I defined the component like this :

 [vacature vacature1]
slug = "{{ :slug }}"  

vacature1 is a partial wich overwrites the vacature component so all items are displayed instead of only title and description

Your help is so welcome!

1-1 of 1

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