Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2011-03-15 11:18:06

gfdesign
Member
From: Argentina
Registered: 2009-04-20
Posts: 401

Re: esq_adminsplash - Admin splash page

Very usefull plugin!
So. What should I do for place the help´s tab in the first level for to be accessible for any author and it isn´t under extension´s tab or any else tab?
Thanks

Offline

#14 2011-03-16 00:05:55

radneck
Plugin Author
Registered: 2005-07-03
Posts: 109

Re: esq_adminsplash - Admin splash page

Have a look at these two posts.

It should be accessible to anyone anyway, so long as it is set at the default admin tab.

Offline

#15 2011-03-16 00:18:54

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: esq_adminsplash - Admin splash page

cain-mi wrote:

Have a look at these two posts.

Should you prefer esq_adminsplash to be its own top-level tab, rather than on the Home tab, as these two post show, then replace “start” in the examples they give with “help” or whatever you would like the tab name to be.

Offline

#16 2011-03-16 11:38:13

gfdesign
Member
From: Argentina
Registered: 2009-04-20
Posts: 401

Re: esq_adminsplash - Admin splash page

Thanks for yours reply. But, with this way, may I to put the help´s tab without sublevels ?

Offline

#17 2011-03-16 11:43:37

radneck
Plugin Author
Registered: 2005-07-03
Posts: 109

Re: esq_adminsplash - Admin splash page

I dont think that’s possible, due to the way txp works. I could be wrong though.

Offline

#18 2011-03-16 12:24:07

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: esq_adminsplash - Admin splash page

gfdesign – is this what you mean?

(esq_adminsplash is powering the help tab)

Offline

#19 2011-03-16 12:25:19

gfdesign
Member
From: Argentina
Registered: 2009-04-20
Posts: 401

Re: esq_adminsplash - Admin splash page

yep. That is my intention. But without sublevel.

Last edited by gfdesign (2011-03-16 12:28:01)

Offline

#20 2011-03-16 12:36:01

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: esq_adminsplash - Admin splash page

Sorry – that screenshot was with Txp on the Content Tab.

Here’s the help tab with the native subtab header and one with the preference set to empty.


The location indicator is still present in the second screenshot, but that’s the admin theme css

Offline

#21 2011-03-17 00:20:21

radneck
Plugin Author
Registered: 2005-07-03
Posts: 109

Re: esq_adminsplash - Admin splash page

The indicator is still there because there is still a sublevel nav item, but it has no text content, probably like
<li><a href="index.php?event=esq_adminsplash"></a></li>

Offline

#22 2011-03-17 00:44:27

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: esq_adminsplash - Admin splash page

cain-mi wrote:

The indicator is still there because there is still a sublevel nav item, but it has no text content

Very true. I didn’t mean to give the impression that the sub-level nav was actually gone – only that it should be possible to hide it using the admin theme css, thus achieving the desired appearance gfdesign described.

Sorry if my suggestion confused or misled.

Last edited by maverick (2011-03-17 00:44:52)

Offline

#23 2011-03-18 19:06:21

maruchan
Member
From: Ukiah, California
Registered: 2010-06-12
Posts: 595
Website

Re: esq_adminsplash - Admin splash page

I put this code in to register the tab and I’m getting an error:

add_privs('tab.start', '1,2,3,4,5,6');
register_tab('start', 'esq_adminsplash', $config['Home']);

The error I get is:

Undefined variable $config

Any ideas? The Home tab shows up correctly. Thanks.

Last edited by maruchan (2011-03-18 19:06:54)

Offline

#24 2011-03-18 19:26:11

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 976
Website

Re: esq_adminsplash - Admin splash page

Marc

It should be:

register_tab('help', 'esq_adminsplash', $config['tab_name']);

You set the tab name in the configuration array at the top.

$config = array(
		'tab_name' => 'Name of your tab here',

Last edited by maverick (2011-03-18 19:27:24)

Offline

Board footer

Powered by FluxBB