Code Helper

Meta Robots Tag

Meta robots “noindex,nofollow”

  • The noindex,nofollow combination tells search engines not to index the page and not to follow the links on the page, meaning no link authority should be passed on either.
<?php if (SERVER_MODE != "LIVE") {?>
    <meta name="robots" content="noindex,nofollow" />
<?php }?>

Component, Helper Files

  • Add New Helper file (Modules\cms\app\Components\Helpers\VideoAlbumHelper.php)

Helper

  • Add new function in helper file

Function

Use Helper function
$videoAlbumList = VideoAlbumHelper::getCategoryList(null, null, true);

Constants

  • Constants added in config file (config\constants-cms.php)

Config

  • Used constant name

constant1

PHP Functions

  • Functions can be added in PHP file of helpers folder (e.g. MILaravel10App\Modules\Common\app\Helpers, MILaravel10App\Modules\Cms\app\Components\Helpers, etc).

Functions files

  • Function can be added in PHP file.

Add php functions

JS Functions and code

Common
  • JS codes can be added in (MILaravel10App\Modules\Common\resources\views\__partial) folder

Common js files

  • Add common function for js.

Add function in common js

Tools
  • JS codes can be added in (MILaravel10App\Modules\Tools\resources\views\__partial) folder.

Tools js files

  • Add js function and code for tools

Add js code for tools

Frontend
  • JS codes can be added in (MILaravel10App\Modules\Cms\resources\js\frontend.js).

Frontend js files

  • Add js function and code for frontend.

Add js function in frontend

results matching ""

    No results matching ""

    results matching ""

      No results matching ""