Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2010-01-02 22:32:51
- Aalandriel
- New Member
- From: Denmark
- Registered: 2009-12-27
- Posts: 7
Article based tooltips with qtip
Okay a slight introduction to what I’m aiming for. I’m building a bilingual tutorial / learning site about Adobe Products (primarily). In that regard I will have a tutorial section which will consist of the run of the mill tutorials – Textpattern section with articles and multiple keywords defining the relations – nothing out of the ordinary there.
However any article on the page may be linking to a glossary section with articles about various features in the programs. For instance when talking about page layout in InDesign I may mention text wrap, but instead of explaining the feature locally in the article I’ll be using qtip to load a tooltip with an explanation of the feature. The QTip will hold the title of the glossary article as well as the exerpt, and just like the normal article listing the title will link to the full glossary page.
And here’s where I’m starting to feel my lacking knowledge. Is it possible for a section to have 2 or more pages assigned, and is it possible to differentiate from a jQuery call and a txp link? My reasoning says not a chance. So I’ve been looking into a few alternatives:
Adi_variables to organize the glossary links as variables – a pain to do but I’m thinking necessary(?)
rah_external_output to output the page used in qTip – Needed if I can’t assign multiple pages to a section depending on link source.
I’m thinking I will need adi_gps to send the linkvars to rah_external_output but haven’t fully explored this yet…
So question to all you txp experts: Does this sound like a sound way to do things or have I missed something very basic that would make this a lot easier?
I hope I have explained the issue well enough for you guys to get the idea, otherwise shout and I’ll see if I can provide a slight example of what I want to achieve.
/Aal – Ida
Offline
#2 2010-01-03 16:54:16
- Aalandriel
- New Member
- From: Denmark
- Registered: 2009-12-27
- Posts: 7
Re: Article based tooltips with qtip
Nothing like a good night sleep to fix your own problems.
In case anyone is interested. This is how I got it working with the following code in rah_external_output:
<txp:variable name="URLid" value='<txp:php> $id= $_GET["id"]; echo $id; </txp:php>' />
<txp:article_custom id='<txp:variable name="URLid" />'>
<txp:excerpt />
</txp:article_custom>
And then ofcourse a get method in the javascript.
Last edited by Aalandriel (2010-01-03 16:54:38)
Offline
Pages: 1