Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#25 2011-07-13 10:24:43
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: adi_link – Enhanced links
aliceaod, didn’t you perhaps put your jquery call
<script type="text/javascript" src="textpattern/jquery.js"></script>
first in your code, before the external one
<script type="text/javascript" src="<txp:site_url />js/external.js"></script>
?
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#26 2011-07-14 00:12:44
- aliceaod
- Member
- Registered: 2011-07-11
- Posts: 18
Re: adi_link – Enhanced links
uli wrote:
aliceaod, didn’t you perhaps put your jquery call
<script type="text/javascript" src="textpattern/jquery.js"></script>
first in your code, before the external one
<script type="text/javascript" src="<txp:site_url />js/external.js"></script>
?
EUREKA!!!!!!!!!!!!!!!!!!!!!!
Thank you. Now it works!!!
Last edited by aliceaod (2011-07-14 00:19:30)
Offline
#27 2011-07-14 11:40:36
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: adi_link – Enhanced links
:) Glad I could help!
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#28 2012-04-25 19:24:16
- hhriebe
- New Member
- From: West Vancouver, BC, Canada
- Registered: 2007-06-20
- Posts: 8
Re: adi_link – Enhanced links
I’ve been using wet_link, but I needed something to help package external links. The big advantage for this simple use case is the included default class: keeps things short and consistent. Did I miss it or is there no way to link to a specific article id (e.g. wet_link href)? It would be great if there was an option to use the link description as the title (wet_link default)—there doesn’t seem to be a clean way to do this with adi_link. Could use title=”%s” (ala wet_link) to maintain backwards compatibility and brevity. So comparing the two could look like this:
<txp:adi_link id="3" ext_link="1" title="%s" />
<txp:wet_link linkid="3" rel="external" class="ext_link" />
Thanks for another great plugin!
Henning Riebe
Embracing Emptiness
HenningVision
Offline
#29 2012-04-26 04:32:52
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_link – Enhanced links
Hi hhriebe,
Don’t know if I’ve misundertood but why would links to articles be external?
Anyway, would something like this do anything for you?
<txp:adi_link ext_link="1" link_text='<txp:title/>'><txp:permlink /></txp:adi_link>
Of course, the above would only work inside a <txp:article />
tag.
Having said all that & reread your post … I’m not sure if I’ve answered the right question! Perhaps an example might help?
Offline
#30 2015-06-17 10:22:14
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_link – Enhanced links
Version 0.5 available for download:
- new attribute: ‘link_span’
- fixed lack of recognition for https://
- fixed up parse problem in container mode
- cater for URLs in “Article link” custom field
- now fails more subtly if id not found
- auto-detects external links
- new ‘article_id’ attribute
- TXP 4.6 tag registration
Offline
#31 2022-04-14 11:14:53
- ibadullah
- Member
- From: Kabul, Afghanistan
- Registered: 2017-09-16
- Posts: 49
Re: adi_link – Enhanced links
i am working on a project and here is our team section, in this section total 7 persons, and they want to have their social links with every individual.
i tried to dynamic the link using custom filed but i can’t.
can any body help me in this case. thank you
Offline
#32 2022-04-14 11:29:50
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_link – Enhanced links
Check that the custom field is called “Article link” and that the value is a link ID – i.e. a link that you’ve already added under Content.
Offline