Content Keywords

 This page shows you the source code and the detail of importing Content Keywords from Google webmaster tools.

The function of this page

 This page is to import Content Keywords csv.

Content keywords for the pages 

The more detail about this page's function is at Checking the content's keyword is analyzed and Import Content Keywords.

Location of Source code

  The location of source code is "[ALINOUS_HOME]/admin/internallinks/" folder.

location of  the source code

Import Content Keywords csv

In order to import the Content Keywords csv file, you have to show the popup window, by clicking the "import Content Keywords Csv" button of the page.

Import Content Keyword Csv

After that, the popup window to import the Csv file appears.

Import Content Keywords csv file

The source code is "importpopup.html" and "importpopup.alns".

Import Csv

 When you push the "Import Google webmaster tool's CSV" button, source code below is executed.

The "ProgressJob.startJob()" function starts the background job with progressbar. The detail of launching background job with progress bar is written in "Start back ground job with the progress bar" section of Robot access log's implementation.

This time, it starts "backbroundWrapper()" function and the source code is below.

This function calls "doUploadCsv()". It uses Csv functions and handle each records by calling "handleOneRecord()".

Processing csv record

The "handleOneRecord()" process single csv record.

The format of csv record's 3'rd record is below.


This string starts with "[" and end with ]. If multiple urls are there, separate it with ":".  The "GoogleContentKeywords.parseTopUrl()" function parse it. it is written in java.

 The location of the Java source code is picture below.

Java source code

View imported Content Keywords data with datatable

 By parsing the csv file and import the data into database table. You can analyze the data with datatable viewer.

Html for the Datatable

 In the "index.html" next section defines the column of datatable to view the Content Keywords data.

This table has 4 columns. If you want to add new column when you customize this application, please add here at first.

Activate Datatable

 After defined the datatable's html, activate it with Javascript.

By this script, specify the data below.

  • Columns to sort and default sort order
  • Ajax url to get Content Keyrowds data
  • Additional parameters to query the data from the hidden input in the form in this html

The "aaSorting" is the default order of sorting data. In this page, it sorts with the path.

The "aoColumns" specify the available sorting. in this setting, we can sort this table with Host, Path and coount.

Get Content Keywords data by Ajax

 The Datatable get data form "/admin/content/serverData.alns". The source code is below.

This source code is

  1. Get limit and offset to query from the parameter
  2. Get order and direction from the parameter
  3. Get fulltext search string and make it
  4. Select data
  5. Select data count
  6. Make json data

In this program, it uses "ADJUST_WHERE". It is one of the Alinous-Core programming language's function. About the function, please take a look at Connect SQL and HTML.

Go to Top