LogoLogo
9.0.x
9.0.x
  • Overview
    • About Varbase
    • Roadmap
    • Release Cycle and Supported Versions
    • How to Get Support
  • Developers
    • Getting Started
    • Installing Varbase
      • Requirements
      • Installing Varbase with DDEV
      • Installing Varbase with Lando
    • Understanding Varbase
      • Basic Concepts
      • Core Components
        • Varbase Core
          • Varbase Admin
          • Varbase Page
          • Varbase Security
          • Varbase Webform
          • Varbase Default Content
          • Varbase Tour
        • Varbase Media
        • Varbase Editor
        • Varbase Email
        • Varbase SEO
        • Varbase Workflow
        • Varbase Layout Builder
          • Varbase Landing page (Layout Builder)
          • Varbase Heading Block
          • Varbase Rich Text Block
          • Varbase HTML Code Block
          • Varbase Media (Image/Video) Block
          • Varbase Gallery Block
        • Varbase Total Control Dashboard
        • Vartheme Claro
        • Vartheme BS4
      • Optional Components
        • Varbase API
        • Varbase Internationalization
        • Varbase Media Hero Slider
        • Varbase Carousels
        • Varbase Blog
        • Varbase Search
        • Varbase Social Single Sign-On
        • Varbase Media Twitter
        • Varbase Media Instagram
        • Varbase Content Planner
        • Varbase Bootstrap Paragraphs
          • Varbase Bootstrap Paragraphs Text and Image
        • Varbase Landing Page (Paragraphs)
      • Additional Components
        • Varbase Media Header
        • Varbase FAQs
        • Varbase Reports
        • Varbase Commerce
        • Varbase YouTube Import
      • Development Components
        • Varbase Development
        • Varbase Style Guide
        • Reroute Email
        • Varbase Updates Helper
    • Configuring a Varbase Site
      • Navigation
        • Defining Active Menu Trail Using Menu Position
      • Using View Modes Inventory
      • Content Moderation and Workflows
      • URL Aliases in Varbase/Drupal
        • Configuring URL Aliases
        • Managing URL Aliases
      • Managing URL Patterns for Multilingual Websites
      • Managing Date and Time Formats to Display Across the Site
      • Using Varbase Layout Builder
        • Creating a Landing Page With Varbase Layout Builder
        • Activating Varbase Layout Builder for Content Types
      • Configuring Pathologic When Going Live
      • Configuring SEO Features
        • Disallow Oembed Media Links
      • Configuring Security Features
        • Spam Protection
        • Password Policies
        • Other Security Kits
        • Flood Contorl
        • Enable HTTP Password Authentication
      • Configuring JSON:API Features
      • Configure Varbase Media Hero Slider
      • Configuring Varbase Media Header
      • Configuring Varbase Mailer Settings
        • Configure Symfony Mailer
        • Configure Swift Mailer
        • Switch From Swift Mailer to Symfony Mailer
      • Entity Definition Update Manager Class
      • Module Installer Factory Class
    • Theme Development with Varbase
      • Understanding The Vartheme Base Theme
      • Creating Your Own Theme
      • Local Tasks and Moderation Sidebar
      • Add Preloaded Fonts in Vartheme
      • Switch From Node SASS to Dart SASS for Old Sub-Themes
    • Launching a Varbase Site to Production
    • Updating a Varbase Site
      • Understanding Varbase Updater Package
      • Handling Patches When Updating
      • Handling Configuration Updates
      • Updating Varbase to work with Composer 2.0
      • Updating Drush to the Latest Stable Version
      • Version Update Guides
        • Updating Varbase ~9.0 to Drupal 10
        • Switch from CKEditor 4 to CKEditor 5 in Varbase ~9.1.0
        • Updating from Varbase 8.x to 9.x
    • Varbase Patches
    • Frequently Asked Questions (FAQs)
    • Extending Varbase
      • Overriding Varbase
      • Creating Your Own Feature
      • Creating A Sub Profile From Varbase
        • Varbase Sub Profile Generator
        • Varbase Sub Profile Basic Template
        • Varbase Sub Profile Basic Project Template
      • Install Needed YARN and Gulp Tools
      • Compiling Provided Component Styles
      • Check Standards/Practice Coding And Linting
  • Content Designers
    • Terminology
    • Accessing the Administration Area
      • Website Environments
    • User Management
      • Allow Email/Username Login & Registration
      • Default Roles and Site Personas
        • Edit Roles' Permissions
        • Managing Roles
      • Add User
      • Edit User
      • Masquerading as another user
    • Dashboard
      • Reports
    • Content Structure
      • EntityQueues
      • Menu Management
        • Add Menu Items
        • Update Menu Items
        • Adding a Page to the Menu
      • Taxonomies
        • Manage Vocabulary
        • Edit Vocabulary
        • List Terms
        • Add Terms
        • Reorder and Edit Terms
      • Webforms
        • Setting up Emails Handler Conditions
        • Setting up Confirmations Message Settings Types
    • Content Management
      • Create Content
        • Add a Basic page
        • Add a Landing page
        • Add Blog
        • Add Media
          • Image
          • Remote video
          • Video
      • Modify Content
      • Delete Content
      • Preview Content
      • Bulk Edit Content
      • Content Moderation
      • Publish Content
      • URL Alias
    • About Layout Builder
      • Section
      • Custom Blocks
        • Heading Block
        • Basic Block
        • Media Block(Image/Video)
        • Rich-Text Editor “WYSIWYG”
      • Managing Blocks
    • Search Engine Optimization
      • XML Sitemap
      • Meta Tags in Varbase
      • URL Redirects
      • Domain Redirects
      • Prevent a Single Content From Being Indexed
    • Site Configuration
      • System
        • Clearing Varbase Cache
        • Google analytics
        • Mail templates
      • User interface
      • Development
      • Varbase settings
      • Web services
    • Common Error Handling Tips
  • Contributing
    • Contributing to Documentation
Powered by GitBook
On this page
  • Step #1 Download
  • Step #2 Select a Version
  • Step #3 Change Settings
  • Step #4 Generate
  • Step #5 Public Repositories
  • Step #6 Changing
  1. Developers
  2. Extending Varbase
  3. Creating A Sub Profile From Varbase

Varbase Sub Profile Generator

PreviousCreating A Sub Profile From VarbaseNextVarbase Sub Profile Basic Template

Last updated 1 year ago

Having a generator tool helper. Which helps in extending Varbase profile using the sub profile method.

Step #1 Download

Download the Varbase Sub profile generator from

and get ready to generate profiles.

Example: Let consider that the /var/www/html/products directory was the default products workspace directory.

  • Open a terminal window

  • Create the directory if it was not created yet

  • Change directory to the coding workspace directory

  • Clone the Varbase Subprofile generator

  • Change directory to the varbase-subprofile-generator directory

mkdir /var/www/html/products
cd /var/www/html/products
git clone git@github.com:Vardot/varbase-subprofile-generator.git
cd /var/www/html/products/varbase-subprofile-generator

Step #2 Select a Version

Set the version of the generator

Example: In case of wanting to generate a sub profile of Varbase 9.0.x run the following commands:

cd /var/www/html/products/varbase-subprofile-generator
git checkout 9.0.0

Step #3 Change Settings

source:
  profile:
    git_repository: git@github.com:Vardot/varbase_subprofile_basic.git
    dev_branch:
      name: 9.0.x
      alias: 9.0.x-dev
      label: 9.0.x
  project:
    git_repository: git@github.com:Vardot/varbase-subprofile-basic-project.git
    dev_branch:
      name: 9.0.x
      alias: 9.0.x-dev
      label: 9.0.x
target:
  profile:
    dev_branch:
      name: 1.0.x
      alias: 1.0.x-dev
      label: 1.0.x
  project:
    dev_branch:
      name: 1.0.x
      alias: 1.0.x-dev
      label: 1.0.x

Change the dev_version to mach with the target dev_branch name and alias.

target:
  profile:
    dev_branch:
      name: 3.0.x
      alias: 3.0.x-dev
      label: 3.0.x
  project:
    dev_branch:
      name: 3.0.x
      alias: 3.0.x-dev
      label: 3.0.x

Step #4 Generate

Run the generate command.

In a case of creating a Varbase sub profile named "cv". Run the following commands in the local terminal:

$ bash generate-varbase-subprofile.sh "cv" "/var/www/html/products" -vvv

The following directories will be created for the new sub profile.

$ cd /var/www/html/products
$ ls -l

products/
 - cv/
 - cv-project/

Step #5 Public Repositories

Saving the code in a repository is important. To let Composer build the project or manage the workflow of updates over code and config changes.

CV at Github.com

CV at Packagist.org

CV at Drupal.org

Step #6 Changing

Have a development working directory to work on changing on generated sub profile.

To install the development version of CV 3.0.x run this command:

composer create-project vardot/cv-project:3.0.x-dev PROJECT_DIR_NAME --stability dev --no-interaction

Commits changes over the code or configs to the cv and cv-project to the public repositories.

That will reflect on composer create-project, composer install or composer update.

CV on Github.com

Make sure that changes are updated in github.com site.

Do more composer create-project after committing changes and a new install for the site. To make sure that changes are working on install.

CV on Packagist.org

Make sure that changes are updated in the packagest.org site too.

CV on Drupal.org

Make sure that the code is synced with the project in Drupal.org site.

Notice the file which will set the default settings for Varbase Sub Profile Generator.

Example: The profile

Change target dev_branch for the profile and project to 3.0.x for the example profile

Example: The profile

Push the generated profile and project template to or for example.

Submit them to to be able to create projects or manage projects using the composer.

Commit to a new project in to list the profile in the projects catalog in Drupal.org

Example: The profile

Example: The profile

https://bitbucket.org/Vardot/varbase-subprofile-generator
settings.yml
CV
CV
CV
https://github.com
https://gitlab.com
https://packagist.org
https://drupal.org
CV
https://github.com/Vardot/cv
https://github.com/Vardot/cv-project
https://packagist.org/packages/vardot/cv
https://packagist.org/packages/vardot/cv-project
https://www.drupal.org/project/cv
CV
https://github.com/Vardot/cv
https://github.com/Vardot/cv-project
https://packagist.org/packages/vardot/cv
https://packagist.org/packages/vardot/cv-project
https://www.drupal.org/project/cv
https://www.drupal.org/project/cv/releases/3.0.0www.drupal.org