-
☆ A M B ☆
- 894 Posts
Download the wayfinder
ebook it will show you the in's and out of wayfinder
Thanks for the tip, Ben. I actually have the book and it has been helpful in the past. Now however, I guess I was hoping for a solution that was a bit more direct than that.
Did you try using something like this in your TPL?
<a href="[+wf.link+]?tabinterfaceid=[+wf.description+]">
You might want to look at jquery ui to do your tabs. It might have a bit of overhead just for tabs, but once you add it you could leverage jquery for other fancy tricks.
http://jqueryui.com
If you use jquery you would target the tab in a similar way...
<a href="[+wf.link+]#[+wf.description+]">
DropboxUploader -- Upload files to a Dropbox account.
DIG -- Dynamic Image Generator
gus -- Google URL Shortener
makeQR -- Uses google chart api to make QR codes.
MODxTweeter -- Update your twitter status on publish.
I'm not positive, but I think you want something like this:
<a href="[[~wf.id? &tabinterfaceid=`index`]]">Target Page</a>
I think the only way to send $_GET parameters in a link is to use a MODX link tag (where ## is the id of the resource) with the parameters as properties:
BTW, the tags in bwente's example are for Evolution. For Revolution, you'd want this:
@BobRay The perils of copy 'n paste!
You are correct. I should have said this...
based on djembe's example
<li[[+wf.classes]]><a href="[[+wf.link]]?tabinterfaceid=index">[[+wf.linktext]]</a>[[+wf.wrapper]]</li>
DropboxUploader -- Upload files to a Dropbox account.
DIG -- Dynamic Image Generator
gus -- Google URL Shortener
makeQR -- Uses google chart api to make QR codes.
MODxTweeter -- Update your twitter status on publish.
Try Bwente's solution. If it doesn't work, try this:
<li [[+wf.classes]]><a href="[[~[[+wf.id]]? &tabinterfaceid=`index`]]">[[+wf.linktext]]</a>[[+wf.wrapper]]</li>
Note that those are back-ticks, not quotes around the word 'index'.
Gentlemen –
Thanks again for all of the helpful advice. I feel like I'm closer to resolving this issue (at least conceptually), although I am not quite there yet with the implementation. One problem is that I am still not totally clear on how to create a wayfinder template that you can conditionally assign to a very specific document.
I did however actually achieve some degree of success by creating a test weblink and then associating it with the specific URL that opens the appropriate content tab. Actually, this is perhaps the most efficient way to accomplish the task at hand because it allows me to place all tabbed content within a single document, and then just create a new weblink for each of the different tabs that I need to open on that document. But I did nevertheless run into one problem here: the weblink that I created as a test did not (for some reason) take on the 'active self' class when selected in the menu, and therefore, it did not format properly (active links are supposed to display in red in my navigational menu). If I can get the selected weblink document to display properly in the wayfinder menu, I think this is the solution.
Any additional insights would be greatly appreciated.