Skip to content

Commit

Permalink
default meta title and description
Browse files Browse the repository at this point in the history
  • Loading branch information
indpurvesh committed May 1, 2017
1 parent 0e7d388 commit a4c1009
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public function view($slug)


$view = view('catalog.product.view')
->with('metaTitle', 'test')
->with('product', $product);

$title = $product->page_title;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@extends('layouts.app')

@section('meta_title')
{{ $category->name }}
@endsection

@section('content')
<div class="row">
<div class="col-md-12">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@extends('layouts.app')

@section('meta_title')
{{ $product->title }}
@endsection

@section('content')

<div class="row">
Expand Down
4 changes: 2 additions & 2 deletions modules/base/Mage2/System/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">

<title>{{ $metaTitle }}</title>
<meta name="description" content="{{ $metaDescription }}"/>
<title>@yield('meta_title', $metaTitle)</title>
<meta name="description" content="@yield('meta_description', $metaDescription )"/>

<link href="{{ asset('vendor/mage2-basic/css/appscss.css') }}" rel="stylesheet">
<link href="{{ asset('vendor/mage2-basic/css/appless.css') }}" rel="stylesheet">
Expand Down

0 comments on commit a4c1009

Please sign in to comment.