Requirement is multiple sub domains using same Database and different design
For example my main site URL isĀ www.mysite.com.
My requirement is
www.sub1.mysite.com
www.sub2.mysite.com
www.sub3.mysite.com
I also tried Drupal Domain
I am using drupal 8.6.
How can I achieve this requirement.
You'll have to implement multi-site structure of DRUPAL 8 like this.
-- core
-- modules
-- contrib
-- custom
-- themes
-- contrib
-- custom
-- sites
-- site1
-- modules
-- custom
-- contrib
-- themes
-- custom
-- contrib
-- files
-- site2
-- modules
-- custom
-- contrib
-- themes
-- custom
-- contrib
-- files
-- site3
-- modules
-- custom
-- contrib
-- themes
-- custom
-- contrib
-- files
For reference, please check this link i.e. https://www.drupal.org/docs/8/multisite/multisite-folder-structure-in-drupal-8
For more technical articles or help, have a look at http://etutorialz.com
Related
We are supposed to put all the pages of our app in the pages folder, and we can create subfolders, that is intersting.
But is there a way to have an hierarchy like this:
Identity
-- components
-- pages
Posts
-- components
-- pages
pages
-- index.jsx
-- (link to pages from Identity and Posts, somehow)
index.js
So I would like to keep related pages in separated modules/folders, and link them somehow to the main pages folder in the root directory.
Is that possible ?
you probably can create a symbolic link between those folders.
ln -s /Users/full/path/to/posts ./pages/posts
When I go to "Settings >> General >> Site Language" I can select the language for the WordPress admin interface. This list is divided into two parts. The first part lets me choose among the already installed languages. The second part of the list lets me choose a language that is not installed, and WordPress will download the language files for me.
However, I have noticed that the second part of the list (i.e. the one that shows the list of installable languages) is sometimes not there. I imagine that there is a setting somewhere or so that makes all the languages show up, but I don't know which settings it is.
So my question is: How do I get the full list of installable languages show up under "Settings >> General >> Site Language"?
Ensure that WordPress files are owned by www-data. Use chown if you are on a local machine. If your installation is online, and you can ssh, use chown as well, of not use the control panel to change ownership.
I'm using PHPStorm while develop WordPress plugins (mainly for HTML/CSS/JS).
Each plugin is a separate PHPStorm project since I can have several goodies from using this way.
The issue is when working on a plugin, the WordPress functions like _e are marked as Warnings (yellow color) and the information PHPStorm gives is that
"Undefined function _e"
How can I configure PHPStorm that it understand the WordPress functions and do not shows that errors and autocomplete the functions without to have a big project wrapping the WordPress installation?
You need to reference WordPress code in some way. Few possible approaches:
Add as External Library -- perfect for referencing only: Settings | PHP | Include paths
Add as part of the project itself (careful, as in this case WP code will be used during Search/Refactor/etc operations) -- Settings | Directories | Add Content Root
Symbolic link somewhere in the project (but #2 is still better for your case)
I am trying to develop a bilingual site based on WordPress (bilingual sites in Quebec are a necessary reality). The problem is I find automated translators (i.e. Google Translate) do not get the context right.
I noticed during a WordPress install (with Fantastico) I can select the folder where WordPress would live. Would it possible to have set up like:
public_html
|-index.html
|-english_site
|-wordpress install for english
|-french_site
|-wordpress install for french
Is it feasable to have both WordPress installs hook into the same database and media uploads? Or is there a better way to avoid automated translators?
I'd definitely recommend, WPML plugin for handling multilingual sites.
One admin area, every bit of content can have multiple hand crafted translations. Including pages, posts, menus etc. Plugins also get translated if they contain the relevant translation files.
Also supports sub domains, so you could do french.yourdomain.com or yourdomain.com (english / default).
Just notice that if you install any multilingual plugin, you should NOT have multiple WordPress instances. Multilingual plugins use a single WP install to serve several languages.
The language-directories structure that you see in the URL is a virtual thing. You shouldn't have real directories on the server. WordPress should be installed in the root path, not in a language directory.
If you're looking to serve languages from different domains (or subdomains), have a look at this FAQ for how to setup on your DNS and Apache.
I need to set up Drupal 6 as a multilanguage site.
1 installation, several language versions = several domains, i.e.
English at englishsite.com
French at frenchsite.com
German at germansite.com.
I've found a Tutorial that suggest that you need access to server's http.conf - this is quite unlikely on shared hosting.
Is it really neccesary?
Maybe You can set it up with .htaccess or any other way.
Namely: what should I do to have such a configuration working ?
(after setting Language negotiation to Domain name only on .../admin/settings/language/configure)
According to what I've found this could resolved in at least 2 ways.
Admin interface
Make the domains point to the Drupal directory in the hosting account admin interface (what is equivalent to http.conf edit suggestion from the tutorial)
Symbolic links
Replace the domain-specific directories with symbolic links to the Drupal directory (in Unix-based systems), i.e.
ln -s <drupalDirectory> <domainDirectoryName>