Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-09-22 14:13:51

rawtext
Member
From: Massachusetts, USA
Registered: 2006-09-13
Posts: 21

Install to sub dir, control a root section

In hopes of having more control over my /menu section for a restaurant site, I’ve installed to /menu so I can deal with categories more easily as menu will be the default section, well that and the end-use won’t have to worry about choosing sections and all that.

My question is can I have a section in my /menu install that goes to /about rather than /menu/about or can I just plain controll the root of the domain with a section from my /menu install?

If not I guess I should be installing another txp to the root for my other site sections?

Another question is can I hide sections and categories and all that besides the menu section? Just to make things easier for the end-user if I do end up using 1 install for the whole site.

If anyone has any idea, let me know.

Offline

#2 2006-09-22 18:59:49

jordi
Member
From: Barcelona
Registered: 2005-09-14
Posts: 94
Website

Re: Install to sub dir, control a root section

I do not see very clear what you’re trying to accomplish, I think you are confusing TXP sections with subdirectories in the server, but in any case I’m pretty sure that you don’t need a TXP install for each section. You can have unlimited sections, “menu”, “about”, “blog”, whatever, with 1 install.

Offline

#3 2006-09-22 20:20:49

rawtext
Member
From: Massachusetts, USA
Registered: 2006-09-13
Posts: 21

Re: Install to sub dir, control a root section

I understand sections are unlimited, I want to know if I install txp to /menu can I control from that install a section that is located at /about rather than the default location of /menu/about

That’s as clear as I can be.

Offline

#4 2006-09-22 20:59:17

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Install to sub dir, control a root section

If you installed Textpattern in /menu/, then that is the root of your Textpattern site, and all your sections will be like site.com/menu/about/. (Section ‘menu’ would look like site.com/menu/menu/.)

If the end user is only going to add articles in the menu section, you can set ‘Selected by default?’ to ‘yes’ for that section, so that they won’t have to care about the section. You can also make the categories show up only on the menu page, see this how-to. This way you can have your install in the root and have pages like site.com/menu/, site.com/about/ etcetera.

For your other question: there is a plugin, ied_hide_in_admin, that might do what you want.

Offline

#5 2006-09-22 21:16:46

rawtext
Member
From: Massachusetts, USA
Registered: 2006-09-13
Posts: 21

Re: Install to sub dir, control a root section

Els wrote:

If you installed Textpattern in /menu/, then that is the root of your Textpattern site, and all your sections will be like site.com/menu/about/. (Section ‘menu’ would look like site.com/menu/menu/.)

Right.

If the end user is only going to add articles in the menu section, you can set ‘Selected by default?’ to ‘yes’ for that section, so that they won’t have to care about the section. You can also make the categories show up only on the menu page, see this how-to. This way you can have your install in the root and have pages like site.com/menu/, site.com/about/ etcetera.

That solves my problem of where to install to, I can install to my domain’s root and controll /menu as the ‘default selected section’.
I didn’t know about the default selected section being tied to the write subtab, I thought it meant something else in relation to the search function, thank you for pointing that out.

The only thing is yes I am using categories but only to output the cat name in a table attr, I’m only using txp:article_list as I need 1 page of articles displayed. Basically an article will consist of a 3 fields (food-title, small-price, & large-price). About 200 articles spanning 10 categories of food ;o) It’s very possible I will use more fields in the future, just don’t know which yet.

For your other question: there is a plugin, ied_hide_in_admin, that might do what you want.

Now that’s gotta be a core feature in the future. I heard on the forum you can edit txp’s php to customize your user privileges. Maybe I’ll look in to that.

Thanks again Els.

Offline

Board footer

Powered by FluxBB