You are not logged in.
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
I think that this might be easier to do with two installs…
neme.org | hblack.net | neme-imca.org | code4.net | LABS
Offline
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
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
$("#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
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
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
thanks gocom I am getting something up and running now with no core hacks…and learn some jquery on the fly too!!!
Offline
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
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