Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-11-24 23:13:15

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Default Page and Style

While working on a new template for my site, I came across an idea that could make our lives easier.

Since I was using the default template on the site, I wanted to create a new one rather than overriding the default page and style. So I gave it another name but every time I entered the Pages or Style tab, my cursor was sitting in the default’s textarea.

What I propose is to default to whatever Page or Style you select on the Sections tab for the Default in the Uses page: and Uses style: drop downs.

Offline

#2 2006-11-26 23:52:24

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,196
Website

Re: Default Page and Style

you can always save the ‘default’ to something else (as a backup), and then use/edit the ‘default’.
As I understand, the concept for the ‘default’ template is: use this template for everything on the site, except when overridden for a specific page/section.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#3 2006-11-26 23:58:54

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Default Page and Style

As I understand, the concept for the ‘default’ template is: use this template for everything on the site, except when overridden for a specific page/section.

Yep.

Offline

#4 2006-11-27 02:47:43

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Default Page and Style

That’s what I did, copied the old default and used the new default for the site.

If I follow both your thinking, then why even have?

Default  	
Uses page: 	 ?
Uses style: 	 ?

Since the above config fields exist, then why not use them to control our Pages and Styles editing session?

Edit: Would a plugin be able to do this?

Last edited by hcgtv (2006-11-27 02:51:34)

Offline

#5 2006-11-27 02:56:03

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Default Page and Style

If I follow both your thinking, then why even have?

That is a relatively new feature; also notice you can’t delete “default” either, regardless of that setting.

Offline

#6 2006-11-27 03:09:13

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Default Page and Style

By the way: r2097.

Offline

#7 2006-11-27 17:23:46

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Default Page and Style

r2097 is cool, can the same be done to txp_css.php?

Mucho appreciado!

Offline

#8 2006-11-28 20:43:43

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Default Page and Style

r2100 is way cooler, thanks Mary.

Offline

#9 2006-11-28 21:00:54

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,634
GitHub Twitter

Re: Default Page and Style

…Very good idea hcgtv!
…And Thanks lot Mary!


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

Board footer

Powered by FluxBB