1
iolai
Default page
  • 2004/7/9 14:35

  • iolai

  • Quite a regular

  • Posts: 206

  • Since: 2004/6/26


How do I choose a specific page to be the first page that site visitors see, and not a module?

In other words, how do I set the default page?

2
McPheron
Re: Default page
  • 2004/7/13 15:21

  • McPheron

  • Just popping in

  • Posts: 13

  • Since: 2004/6/25


I have seen this question come up alot in all the CMS systems I have used. People get too reliant on modules and information stored in a database. If you have static content such as an About Us page that you want to display, you don't need HTML wrappers or a special module. If it was a normal website you would just create a new page with the same menu items as your index.html page. You can do the same thing here. Just make a copy of the index.html file in your theme folder. If you are using a documented theme, you should see a comment line that says "Display center blocks" or something similar. Just replace this entire section with normal html static content. Name your new index.html file to aboutus.html or whatever applies to your page and add a link to this page in your main menu. This is much easier than other methods if you just need a page or two of extra content.

edit- I realized the menu portion probably is not a beginner thing to do. You are not stuck with the automatically generated module menu. You can create a custom block in the admin menu and design your own menu. You just add the same links that you want to your custom block plus any extra links you want such as our about us example. When your custom menu is working just turn off the display option for XOOPS main menu block in the blocks admin.

3
iolai
Re: Default page
  • 2004/7/13 15:51

  • iolai

  • Quite a regular

  • Posts: 206

  • Since: 2004/6/26


I probably should've been more specific.

There is a line: $xoopsConfig['startpage']

How do I define startpage variable?


4
McPheron
Re: Default page
  • 2004/7/13 15:58

  • McPheron

  • Just popping in

  • Posts: 13

  • Since: 2004/6/25


I just read your question again. I think I misunderstood it and gave you a long answer. In admin under general preferences you have an option to choose which module loads at startup. I think it defaults to NEWS. Just pick NONE from that dropdown list. If you want to add some content to the new blank homepage, you can do so by creating a custom block that only displays on the homepage. Make sure you set group permissions so anonymous users see your new custom blocks. That's what I did for my start page.

Sorry, I gave a long answer that first time. I misunderstood.

Login

Who's Online

509 user(s) are online (456 user(s) are browsing Support Forums)


Members: 0


Guests: 509


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits