Welcome ,
  1. Home
  2. Cloning PageCarton Repository for Contribution

PageCarton Documentation



Interested in coding widgets, classes, or methods? Check out the Code section!

Cloning PageCarton Repository for Contribution


Image
# move to where to want PageCarton cloned
cd ~

# clone git repo branch you want to work on
git clone -b https://github.com/pagecarton/pagecarton.git

# edit pagecarton.json and set PC_BASE to the full path to where "pagecarton" is located. 
# The "pagecarton" dir must be the directory containing the "core" directory 
nano pagecarton/core/local_html/pagecarton.json

# copy local_html files to the web root
# Use cp -r pagecarton/core/local_html/* www/sample-dir/ to install to a sub directory
# change www to location to full path to your web root
cp -r pagecarton/core/local_html/* www/




# set the right file ownership and permissions
# ideally, the pagecarton directory must be readable and writable 
# by the user running the web server.
# usually this user is www-data or apache or nginx or daemon
chown -hR www-data:www-data pagecarton

# alternatively, set global permissions  (not recommended)
# chmod -R 0777 pagecarton

 

 

 

← Previous "Installing PageCarton via Composer""HTML Syntax & API for Embedding Widgets" Next →


 

Similar article

 

Changing Number of Posts to Display on a Widget Photo

Changing Number of Posts to Display on a Widget

Another interesting customization feature just came in the latest PageCarton. Users of PageCarton can now change the number of post shown in embedded widget from the admin panel. For example, be...

Documentation Article
 

 

Installing PageCarton via Composer Photo

Installing PageCarton via Composer

If you have Composer installed on your computer, you can easily get PageCarton up by running the following commands on your command line.  # download PageCarton via composer composer c...

article
 

 

Setting up PageCarton via Docker Photo

Setting up PageCarton via Docker

PageCarton now has a few files in its GitHub repository that helps to set it up on Docker easily. If you are familiar with Docker or a newbie, you should be able to get started with PageCarton...

article
 

 

Steps in Creating a PageCarton Website Offline Photo

Steps in Creating a PageCarton Website Offline

Creating a website has now been made easy with the use of Pagecarton, it's not necessary to know much about coding. If you have your contents ready, and the style of how your website wants to...

article
 

 

Steps in Creating a PageCarton Theme Photo

Steps in Creating a PageCarton Theme

Creating a PageCarton theme isn't actually a difficult task, but just that it might involve a long process and a little bit of how programming codes work. The main purpose of having a PageCarto...

article
 

 

HTML Syntax & API for Embedding Widgets Photo

HTML Syntax & API for Embedding Widgets

In an update to PageCarton that was available from August 2020, we added a new way to create and customize PageCarton Themes. In addition to existing ways of creating ...

article