Import Internal links detected
This page shows you the source code and the detail of importing internal links from Google webmaster tools.
- The function of this page
- Location of Source code
- Import Internal Links csv
- View imported Internal Links data with datatable
This page imports Internal links Csv.
About the more detail, please take a look at Checking the internal link for the page is analyzed and Import internal links.
The location of source code is "[ALINOUS_HOME]/admin/internallinks/" folder.
In order to import the Internal Links csv file, you have to show the popup window, by clicking the "import Content Keywords Csv" button of the page.
The source code is "importpop.html" and "importpop.html".
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 pattern is almost same with one of Content Keywords.
This program makes the "wmil_internal_link_file" table record, read csv file and process the csv records.
handleOneRecord()" process single csv record. This function just insert the csv record into the "wmil_internal_link" table.
By parsing the csv file and import the data into database table. You can analyze the data with datatable viewer.
In the "index.html" next section defines the column of datatable to view the Content Keywords data.
This table has only 2 columns. If you want to add new column when you customize this application, please add here at first.
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 Count.
The "aoColumns" specify the available sorting. in this setting, we can sort this table with Path and Count.
The Datatable get data form "/admin/internallinks/serverData.alns". The source code is below.
Tose implementation is almost same with Content Keywords' implementation.