silverstripe starting page in db level - mysql

silverstripe has main page, which after every rebuild is created new (as home page not always suits).
How and where can i see/change this after rebuilt in mysql level (table?).
I have looked however could not find place/table/field which denotes that this is "link of home page, etc."
Any help would be nice.

This is created based of requireDefaultRecords in SiteTree, this indicates that this can be stopped with a yml config (in _config/config.yml)
SiteTree:
'create_default_pages' : 'false'

In old and deprecated SilverStripe 2.4 you could define any page as homepage for a domain. However this was refactored to a module in 3.x and by default the page with URLSegment "home" is the default home page.
But you can install the functionality with the homepage for domain module, best using composer:
composer require silverstripe/homepagefordomain
which will add an input field to the cms where you can define that page as homepage for a specific domain.

Related

How to view themes in magento

i installed theme using magento connect.Then in configuration ->Design->Themes->default name is also entered in the field.Then cms ->pages ->Home page.The default page is present.But theme is not displayed here.What i have to do.please any one suggest for this?
Did you mentioned the Theme / Package Name in the configuration ->Design->Themes->default.
1st you have to mention the package name and then default. You have to mention this at two places in the configuration.

Add containing folder to project in PhpStorm

I'm developing a plugin for Moodle and created a project inside my Moodle installation. I'm extending a class called block_base but PhpStorm says undefined class block_base. My guess is that is because all the moodle files (including the class block_base) aren't in the project files.
How do I add this to the project files? I could just simply make the entire Moodle installation the project but I don't want that because i'm using GitHub and I then have to put all of the Moodle files on there as well and that is just pointless.
PHPStorm can handle multiple git roots within a single project (this is how I manage my plugins).
So, you can do the following:
Check out a copy of the main Moodle repo (from git#github.com:moodle/moodle.git)
Put your plugin (including the .git subdirectory) in the correct place in the Moodle code
Set the whole of the Moodle code as the project for PHPStorm
Go to File > Settings > Version Control
Usually PHPStorm will (at the bottom of the dialog) display a list of detected git roots and you can just click 'Add root'. If not, click on the '+' on the right and add the path for your plugin.
Now, you can make changes to your plugin and update, without having to check in a full copy of Moodle (as an added bonus, it makes it nice and easy to pull the latest Moodle code, so you can test your plugin against upgrades).

How to retrive ci management url in SonarQube?

Links section of my SonarQube configuration page is completely blank and no links are automatically populated here. Any help on how to populate default links on this page which are supposed to be retrieved from project pom?
The CI management URL is automatically fed during SonarQube analysis:
either using the value of the value of the <url> tag of the <ciManagement> section of the POM:
<ciManagement>
<system>Jenkins</system>
<url>the_url_of_your_ci_system</url>
</ciManagement>
or more generally (if you're not using Maven) using the property sonar.links.ci

Including projects in other projects in PHPStorm

Say I am working on a couple of PHP projects named Framework and Application, where the latter is using the former. When I dive in the Application's classes, I see some of them extending Framework's classes, for example:
class Application_Controller extends Framework_Controller
When I hover mouse over Framework_Controller and click Ctrl, I want the name to become clickable link upon clicking on which the source code of the Framework_Controller class from the Framework project will be opened.
Currently I have achieved almost the same thing by adding the Framework codebase path to the "Include path" list (having the Application project opened, go to File/Settings/PHP). The Framework codebase tree appears under "External Libraries" in the Project window. So when I click on Framework_Controller as described above the Framework_Controller class file gets opened indeed. However, PHPStorm does not take into consideration that the file actually belongs to another project named Framework — it just opens the file. This has the following disadvantages:
On the top navigation bar, the full path to the file is shown (i.e.
starting from "/") rather than starting from the Framework project
root directory.
If I want to edit the file (and possibly more related files in the Framework codebase), I would have to manually switch to the Framework project window and find the same file in there.
So I am wondering if there is any way I could tell PHPStorm that the Application project uses/includes the Framework project, so that when I click on Framework_Controller as described above, the Framework_Controller class file gets opened in the Framework project window rather than just a file external to the Application project.

Is there a generic Hudson reporter?

Our build has a variety of generated HTML reports. I would like to have those reported and accessible on the build page, like JavaDoc entries. Is there a generic way to expose these reports without writing a custom plug ins ?
If that isn't available, is there a way to post an HTTP link on the page ?
You can choose "archive the artifacts" and archive for example "reports/*.html"
These will appear under the project page under the heading "Last successful artifacts".
Even if you clear your workspace before each build, these artifacts are moved to a separate directory.
You could also add a build script which will modify or update a file in your userContent directory (since Hudson 1.299), and link to these build artifacts in yet another location.