Hello-
I'm not certain how to accomplish what I need but I can describe it:
I need a select box that dynamically lists all Pagesetter pids and builds an onselect list so a user can simply select the pid they want and they are redirected to that pid.
Any idea how to accomplish this?
Many thanks!
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Pagesetter onSelect
-
- Rank: Moderator
- Registered: Mar 15, 2005
- Last visit: May 30, 2010
- Posts: 1077
-
- Rank: Softmore
- Registered: Aug 08, 2002
- Last visit: May 21, 2010
- Posts: 122
I did something similar.
Put in your full template or list-header:
Code
<form id="filtra" >
<select name="filtraCategoria" ONCHANGE="location = this.options[this.selectedIndex].value;">
<option value="">Filter publication</option>
<!--[pagesetter_inlinePubList5 tid=2 orderby=$core.pid pubcnt=-1]-->
</select>
</form>
in your inlineList you must have:
Code
<option value="<!--[pnmodurl modname="pagesetter" tid=2 func=viewpub pid=$core.pid]-->"><!--[$core.pid]--></option>
hope it helps
edited by: arkanoyd, May 21, 2009 - 02:00 AM -
**unknown user**
- Rank: Helper
- Registered: Mar 16, 2002
- Last visit: May 18, 2010
- Posts: 985
Little Javascript:
Code
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
little HTML:
Code
<!--[pagesetter_readpubCount tid=$core.tid assign=CountPubs]-->
<select onChange="MM_jumpMenu('parent',this,0)" id="SelectList">
<!--[pagesetter_inlinePubList tid=$core.tid pubcnt=$CountPubs]-->
</select>
and your inlineList:
Code
<option value="<!--[pnmodurl modname=pagesetter func=viewpub tid=$core.tid pid=$core.pid]-->"><!--[$core.pid]-->: <!--[$core.title]--></option>
You can of course hard code the '$core.tid' to the actual tid number...
Is it something like this you mean?
- Igor -
- Rank: Moderator
- Registered: Mar 15, 2005
- Last visit: May 30, 2010
- Posts: 1077
Thanks to both of you. I made a slightly modified version of Igor's stuff. It worked brilliantly!
Thanks so much!
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
