#1 2008-07-03 16:13:00

cuda
Member
delta
Real name: Dayne Larsen
From: Louisiana, USA
Known languages: English
Website

seperate tab for each section

Ok I have a client that would prefer to have write tab for each section….so for this case I need two write tabs one would be default to the NEWS section and the other to a SALES section. Is is possible to just clone the write tab and default it to a different section?

Thanks for any direction….

Offline

 

#2 2008-07-04 04:40:45

colak
Admin
omega
Real name: Yiannis
From: Cyprus
Known languages: el, en
Website

Re: seperate tab for each section

I think that this might be easier to do with two installs…

Offline

 

#3 2008-07-04 04:50:07

Gocom
Moderator
omega
Real name: Jukka Svahn
From: Finland
Known languages: EN, FI
Website

Re: seperate tab for each section

I think that this might be easier to do with two installs…

I think a little plugin (and couple lines of jQuery powered JS) is much more easier than two seperate installs. Installing two TXPs for one same site, just sounds cheap :P


Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />

Offline

 

#4 2008-07-04 13:29:20

cuda
Member
delta
Real name: Dayne Larsen
From: Louisiana, USA
Known languages: English
Website

Re: seperate tab for each section

i am using a combination of asy_dashboard

http://forum.textpattern.com/viewtopic.php?pid=84885#p84885

and this new top level tab code:

http://gerhardlazu.com/blog/49/addremove-admin-tabs-without-hacking-txplibheadphp

to create a dashboard with a tab so you can always get to it….then there are links to the specific actions that are desired….now I have gone and hacked the txp_article.php file to grab a variable from the url and default to that section….specifically the getDefaultSection() function, took one line of code.

However this would be much better if it was all in a plugin but how do I get the proper section selected when I go to the write tab using jquery? I am a jquery rookie/nob…..

thanks guys

Last edited by cuda (2008-07-04 13:30:40)

Offline

 

#5 2008-07-04 14:28:44

Gocom
Moderator
omega
Real name: Jukka Svahn
From: Finland
Known languages: EN, FI
Website

Re: seperate tab for each section

$("#section option[value=MySectionFromURL]").attr("selected","selected");

For getting the GET variable from URL, you could use something like this


Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />

Offline

 

#6 2008-07-04 16:56:51

uli
Member
tau
Real name: Uli
From: Cologne/Köln
Known languages: de > en

Re: seperate tab for each section

I’m a bit late, and it seems like a lot work is already done, but wouldn’t it be easier to hack sed_section_fields to react on a user name instead of a user privilege? Plus you can get rid of it by simply switching it off.

Just a thought.

Offline

 

#7 2008-07-04 21:45:59

Gocom
Moderator
omega
Real name: Jukka Svahn
From: Finland
Known languages: EN, FI
Website

Re: seperate tab for each section

uli wrote:

…react on a user name instead of a user privilege…

Uli, offtopic? This is about seperate tabs for all sections, not about privs or usernames…

Last edited by Gocom (2008-07-04 21:46:18)


Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />

Offline

 

#8 2008-07-05 22:12:52

cuda
Member
delta
Real name: Dayne Larsen
From: Louisiana, USA
Known languages: English
Website

Re: seperate tab for each section

thanks gocom I am getting something up and running now with no core hacks…and learn some jquery on the fly too!!!

Offline

 

#9 2008-07-06 07:45:51

jakob
Member
upsilon
From: Germany
Known languages: en, de
Website

Re: seperate tab for each section

cuda, I’d love to see how this pans out and also how you achieved it. This – along with the ability to to show the article pane with only a subset of articles, e.g. a particular section – is something often desired.


TXP Builders – finely-crafted code, design and txp

Offline

 

#10 2008-07-06 12:29:04

cuda
Member
delta
Real name: Dayne Larsen
From: Louisiana, USA
Known languages: English
Website

Re: seperate tab for each section

jakob – I am doing exactly what you wanted with the article pane as well using the lam_browse_by plugin and just creating a link on the dash board for the specific search criteria…this could have been achieved with just the basic search function too. But I am kicking around the idea of making this into a plugin….

Here is what I have now:
1. Upon Login you get the dashboard
2. There is a top level “Dash Board” tab
3. You can create links on the dash board page that link to the article pane for a specific section
4. There are links on the dash board that go to the write tab with the desired section all ready picked and if you use sed_section_fields all the proper custom fields will show

This is all very messy and hacked up but if I find time I will try to release it

Offline

 

Powered by PunBB
© Copyright 2002 – 2005 Rickard Andersson