Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-09-22 19:35:39

Ambitiouslemon
New Member
From: DC
Registered: 2007-09-19
Posts: 6
Website

Set default admin tab

How do I set the default admin tab that loads? The current default is to load the “write” tab. This is good if you are using txp for a blog but for static sites the best default would be the “articles” tab since you are usually just editing existing pages.

The write tab is also the one that loads when clicking the “content” tab. I would also like to set “articles” as the tab that loads when clicking “content.”

Trying to get things as easy as possible for the site owner.

Offline

#2 2007-09-22 19:39:31

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,192
Website GitHub

Re: Set default admin tab

You might want to take a look at asy_dashboard

After logging in users are presented with a (customisable) welcome page together with a list of the most recent articles.


TXP Builders – finely-crafted code, design and txp

Offline

#3 2007-09-22 19:50:14

Ambitiouslemon
New Member
From: DC
Registered: 2007-09-19
Posts: 6
Website

Re: Set default admin tab

Just took a swing at that but couldn’t get it to work. The plugin is pretty old so I am guessing it doesn’t work with new the new txp version.

Offline

#4 2007-09-22 21:03:23

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Set default admin tab

works fine for me for txp 4.0.5.

Offline

#5 2007-09-22 21:28:48

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,192
Website GitHub

Re: Set default admin tab

It works for me too. Have you set up the asy_dashboard form (type=misc)?


TXP Builders – finely-crafted code, design and txp

Offline

#6 2007-09-22 21:39:23

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Set default admin tab

In your index.php root file replace this line:

79 // $event = (gps(‘event’) ? gps(‘event’) : ‘article’);

with this one

$event = (gps(‘event’) ? gps(‘event’) : ‘list’);

This will make the articles page load on default index.php request.

regards, marios

Hey @iblastoff, that looks really cool. Are the styles of your own ?

Last edited by marios (2007-09-22 21:41:52)


⌃ ⇧ < ⌃ ⇧ >

Offline

#7 2007-09-23 10:22:59

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,192
Website GitHub

Re: Set default admin tab

Hey iblastoff, that looks really cool. Are the styles of your own ?

marios, I think you’ll find it is this redesign by smalltransport.


TXP Builders – finely-crafted code, design and txp

Offline

#8 2007-09-23 16:23:49

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Set default admin tab

That is a REALLY nice admin interface. The best I have seen yet, apart from the original, which I am very attached to….

Steve, what do you have in your asy_dashboard form? I don’t get the same view after creating the form according to the suggestion by Senser in the help text..

Offline

#9 2007-09-23 19:23:44

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,192
Website GitHub

Re: Set default admin tab

The best I have seen yet, apart from the original…

Not sure I agree — it sure looks good but I think that’s about it. On that screenshot there are 13 identical looking buttons of which 3 are highlighted. So tell me, how do you know where you are, and what do you do next?

what do you have in your asy_dashboard form?

The latest articles and comments are two functions in sencer’s plug-in. The rest you can style as you like. I guess steve has added some of the php functions used in the diagnostic tab, a php-date function and a link to logout.

Last edited by jakob (2007-09-23 19:24:26)


TXP Builders – finely-crafted code, design and txp

Offline

#10 2007-09-23 20:30:45

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Set default admin tab

Hi Jakob,

Agree it looks good and my comment about it being the best yet should be tempered by the fact that I have only seen two Admin interface alternatives – this one and another by Jon Hicks. That one does not work well for me on Safari. Where you are is the same as the normal TXP interface – two buttons highlighted at a time – content/write for example.

I don’t see a Dashboard button now I come to think of it. Where did that go??

Offline

#11 2007-09-23 22:45:45

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,192
Website GitHub

Re: Set default admin tab

Where you are is the same as the normal TXP interface – two buttons highlighted at a time – content/write for example.

Sure. The question was somewhat rhetorical (I know my way around txp). My point was a new user would see 3 (essentially identical) black buttons and 10 white buttons and ask themselves “where do I go from here?” Whilst I’m not the biggest fan of the txp setup and regularly change it, it does at least establish a relationship between the areas — content, presentation, admin — and the actions: write, categories, images…

There have been lots of threads on txp admin facelift, makeover etc. There was even a flickr gallery of ideas for a while, but few have been put out into the wild. It’s one (not so difficult) thing to make one’s own modifications, it’s quite another making one that will work everywhere, with every language, individual setup/plug-in etc.


TXP Builders – finely-crafted code, design and txp

Offline

#12 2007-09-23 23:13:03

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: Set default admin tab

jakob wrote:

bq. Hey iblastoff, that looks really cool. Are the styles of your own ?

marios, I think you’ll find it is this redesign by smalltransport.

I think that’s the nicest one I’ve seen so far.

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#13 2007-09-23 23:45:13

iblastoff
Plugin Author
From: Toronto
Registered: 2006-06-11
Posts: 1,197
Website

Re: Set default admin tab

jakob wrote:

Not sure I agree — it sure looks good but I think that’s about it. On that screenshot there are 13 identical looking buttons of which 3 are highlighted. So tell me, how do you know where you are, and what do you do next?

ehh thats not really the fault of the admin interface as it is my own doing. i added the dashboard tab myself but i can’t get it to recognize that its NOT on the write or content tab. i started this thread in order to get help with the dashboard tab issue but didn’t get a response so i kinda just left the whole thing.

The latest articles and comments are two functions in sencer’s plug-in. The rest you can style as you like. I guess steve has added some of the php functions used in the diagnostic tab, a php-date function and a link to logout.

yep pretty much! i also snipped some functions (total articles/total comments) from some now-defunct plugins that could be considered a basic starting point in adding what you want to show. just a tiny step ahead of sencers initial simple dashboard. i couldn’t think of anything else to add at the time.

jstubbs in my form i had:

<div id="dashboard">
<h1 class="dashb_username">Welcome,
	<txp:php>
		global $txp_user;
		echo " " . $txp_user . "!";
	</txp:php>
	<a href="index.php?logout=1">[logout]</a>
</h1>

<h3 class="dashb_date">
	<txp:php>
		echo date('D M d Y g:i A');
	</txp:php>
</h3>

<hr />
<p class="dashb_lastmod">Last Modified: 
	<txp:php>
		echo $GLOBALS['prefs']['lastmod'];
	</txp:php>
</p>

<p class="dashb_lastmod">You are running 
	<txp:php>
		echo "TXP " . $GLOBALS['prefs']['version'];
	</txp:php>
</p>

<h2 class="dashb_heading">Latest Articles</h2> (<txp:lam_post_count /> published entries in total)
<div class="dashb_list"><txp:lam_dabo_articles limit="5" /></div>

<h2 class="dashb_heading">Latest Comments</h2> (<txp:lam_comment_count /> comments in total)
<div class="dashb_list"><txp:lam_dabo_comments limit="5" /></div>
</div>

<div id="dashb_footer">
<img src="<txp:site_url />textpattern/txp_img/carver.gif"/> <a href="http://textbook.textpattern.net/">Textbook</a> - <a href="http://forum.textpattern.com/">Support Forums</a>
</div>

the last two tags (<txp:lam_post_count /> and <txp:lam_comment_count />)won’t work with the default asy_dashboard cause i added them myself. atm i’m not sure where i placed my own modified version of the plugin. either way for the accompanying css is just something basic like this (its rather bloated for the sake of clarification):

#dashboard {
	margin:25px auto;
	width:50%;
	padding:15px;
	border:3px solid #eee;
}

h1.dashb_username {
	display:inline;
	text-align:left;
	color:#00ccff;
}

h2.dashb_heading {display:inline;}

h3.dashb_date {text-align:right;}

p.dashb_lastmod {
	text-align:right;
	margin:0;
}

.dashb_list {margin:10px 0;}

#dashb_footer {text-align:center;}

Last edited by iblastoff (2007-09-23 23:52:14)

Offline

#14 2007-10-29 14:29:48

fuls
Member
Registered: 2005-11-16
Posts: 117
Website

Re: Set default admin tab

Can someone send me the files of smalltransport redesign…the download link on his site is not working.

Thanks!

Offline

#15 2007-12-09 14:44:14

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: Set default admin tab

iblastoff

would you mind sending me the files for the smalltransport admin interface? I, too, cannot download it from that site!

Last edited by net-carver (2007-12-09 14:45:30)


Steve

Offline

Board footer

Powered by FluxBB