Skip to content
Discussion options

You must be logged in to vote

You can just create a route in your regular Laravel routes file, pointing to your own controller.

Route::get('/third-party/{entry}', 'MyController@show');
use Statamic\Facades\Entry;
use Statamic\View\View;

public function show($entry)
{
  $entry = Entry::find($entry);

  $collection = $entry->collection();

  $data = [...]; // not sure what you want to do, but you can add whatever variables you need in the view.

  return View::make()
    ->template('templatename')
    ->layout('layoutname')
    ->with($data);
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jgarcia421
Comment options

Answer selected by jgarcia421
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants