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
Related
The situation is the following. I’m a beginner developer. Bought a domain and a simple hosting plan (includes 1 Msql base). I created a static HTML page. I modify it sometimes to show my progress.
Now I want to practise WordPress. Is it possible to keep this static webpage and create another dynamic page in WordPress? So this static page will be the main where I’ll put a link for the dynamic page.
Sorry if my question is too simple. I couldn’t find the answer anywhere.
Thanks!
Yes, you can create sub folder in public_html directory something like /public_html/xyz. so your domain will be xyz.com/xyz
now you can install wordpress in xyz folder and create dynamic website there.
Maybe you can use a sub-domain, they are normally free inside the hosting plan. You can have a folder for the html and other folder for the WordPress. Then just assign the correct folder for the main domain to the html and the subdomain.whatever.com to the WordPress.
Yeah there are a few ways to do it. Simplest is to name the page "index.html" and stick it in your root (public_html) directory. That page will display instead of the index.php file Wordpress uses, at least for the homepage.
Wordpress should "take over" if you navigate to any other URL.
There are several features in Cascade that I want in Joomla or Wordpress.
Cascade publishes all the content and make pre-render html files. At the frontend whenever users looks for anything it quickly renders the pre-generated html files.
Secondly it has folder based structure i.e you can create the folders and pages inside it. Thus same structure is followed while publishing.
Let say I have created following folder structure in Cascades:
Publications
Marketing
Budgets
2016
page1
page2
subfolder-2016
subpage-2016-1
subpage-2016-2
2015
2014
If I publish the publications folder, it will generate the HTML files for all the pages and keep the same folder structure on FTP. Now let say my site is cascadessite.com then I will be able to browse all the folders and their respective pages. e.g
cascadessite.com/Publications/Marketing/Budget/2016/page1.aspx or page1.php depends on my web server.
I want to do the same thing with Joomla or Wordpress. How would I do that?
I dont know about wordpress but in Joomla this is possible as you can create a heirarchy of categories instead of folders. So your entire articles are stored in database but maintains a structure as you mentioned. To get the url you wish, you can use sef components of joomla http://extensions.joomla.org/category/site-management/sef. Also you can create your own router file for the contents. Another tedious way is to modify the .htaccess but I am sure you don't need to do that, the addons are more than sufficient. As wordpress has lots of users it may be possible with wordpress too. YOu can enquire in their forum.
I have a set of custom html pages that are not made with WordPress in folder DIR
In the WordPress blog I have a web page called SPECIAL that only some users can access (after being authenticated). I would like to know if there is a way to allow those users to open the web pages in DIR (in a comfortable way)
For now i am using a very non-pratical solution:
I make a zip archive of that folder, upload it from the Admin interface of WordPress, using WP-Filebase, and put a link to the DIR.zip in the web page SPECIAL.
Yes I agree that my solution is ridiculous. Please help me find a better one.
Thanks in advance.
One solution would be to link to the pages contained within the DIR folder on the SPECIAL page itself, or create an additional WordPress-based page, linked to from SPECIAL, that performs the same function as your DIR/index.html page.
Alternatively you could place an iframe of DIR/index.html on your SPECIAL page.
A longer term solution would be to migrate the contents of DIR into your WordPress installation, and restricting access to the same group of users who can currently see the SPECIAL page.
I am setting up 10 new local wordpress sites. I have 10 folders all named like this:
"name-of-site.com"
Inside each is a simple file structure:
briefing files
html
wordpress
I want to set up a repository on git hub for the wp-content file but I can't find a way to create an alias. Surely the end result will be 10 different repos all called "wp-content"
How can I set up a separate repo for each wp-content folder and name it "name-of-site.com"
Is this glaringly obvious and I am being really stupid???
Why not have the top level folted, that is "name_of_site.com" be the repository, and in that folder, you can create a .gitignore file to ignore the other directories you don't want, that is, the html and briefing files (if I understand your layout correctly). That way, you're simply tracking the Wordpress content. You can even move it up a level so that only the briefing files and the HTML are in separate directories and the WP content is in the "name_of_site.com" directory.
Edit:
After your comments, I think you could do it this way:
Create repos for each site you have and put the wp-content of those sites in the .gitignore file
Create one repo for wp-content, which contains all your themes. Organize them according to your needs.
Write a simple shell script that pulls the latest theme into your site's folder from the repo in the previous step. That way, every time you update your theme, you can go to your chosen site and just synch up with the latest pushed version.
Does that make sense?
I have a directory /examples/ that is at the root of my site. I want to retain this hierarchy:
/examples/foo1/
/examples/foo2/ ...etc
I also have wordpress installed at the root with my posts shown on the home page. I found out the long way that I cant access any wordpress functions or anything wordpress related from within the /examples/ directory or any folders within examples directory.
I know I can make a page within wordpress called examples and make sub pages under examples to get the desired directory, but I dont want to end up with 300 subpages of example content. Thats like treating the page section as a post section.
Is there a way I can access wordpress variables and functions from the /examples/ directory that I made? Or is there another method that I have not thought of to get this directory and still have access to wordpress stuff?
I hope this is clear.. thanks!
This is similar to a question previously answered. Refer to the instructions for displaying WP content in the same domain:
Displaying articles from a wordpress site on a non-wordpress site