MODx Community Forums
The MODx Blog
Donations
Feedburner Feeds
Documentation
Bugs & Requests
The Wiki
download MODx
plugins, modules, snippets
online demo
Nov 21, 2008, 06:53 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search via SMF
or Google:
modx forums
all of modxcms.com
web
MODxCMS.com
Forums
Help
Login
Register
News
:Read what MODx Developers say:
MODx Dev. Blogs
MODx Community Forums
»
Add-ons, Extensions & Elements
»
Module, Plugin & Snippet Usage
(Moderators:
zi
,
PaulGregory
)
»
[Plugin] AutoLinkRef
Pages: [
1
]
Go Down
« Previous topic
Next topic »
Print
Author
Topic: [Plugin] AutoLinkRef (Read 4516 times)
0 Members and 1 Guest are viewing this topic.
Guillaume
Moderators
Posts: 711
The future is built today.
[Plugin] AutoLinkRef
«
on:
Mar 11, 2006, 06:59 PM »
Hello !!
I wrote this plugin to integrate in document and manage easily links towards websites to which I often refers.
So, I suppose it run in chunks (I not test this).
Quote
/* Plugin : AutoLinkRef
* Version : 1.0
* Date : 2006-03-12
* Author : Guillaume Charneau (Guillaume)
*
* Short desc : Create links automatically from a reference [-xxxxx-]
*
* Installation :
* Create a new plugin
* Copy and paste this code into
* Check OnWebPagePrerender (system events > Template Service Events)
*
* Long desc :
* This plugin parse the (x)html code to create weblinks from [-linkalias-] tag.
* It can add "http://" before url, if you want.
* All link attributes can be used to create the link and its context.
* Possibility to specify values by default.
* Possibility to use or not default values for each link.
*
* Example :
* [-modx-] can become <a href="
www.modxcms.com
" class="modxlink" id="linkToModx" lang="en">Modx</a>
*
* Todo :
* To add an interface to manage parameters
* To add table into database for parameters
*/
Regards
Edit (2006-03-12 23:42) : I have modified
www.modx.com
to
www.modxcms.com
; Thanks, davidm.
plugin.autolinkref.txt
(6.86 KB - downloaded 403 times.)
«
Last Edit: Jul 20, 2006, 10:42 AM by PaulGregory
»
Logged
Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
garryn
Coding Team
Posts: 1,175
Re: [Plugin] AutoLinkRef : New !!
«
Reply #1 on:
Mar 11, 2006, 07:08 PM »
Great plugin Guillaume! Thanks for sharing
One of those additions that I know will be a timesaver to a lot of people.
Cheers, Garry
Logged
Search
|
Download Latest Release
|
General Support
About MODx
|
Documentation
|
Bugs/Wishlist
|
FORUM RULES
Garry Nutting
— http://www.immerse.me.uk - My Playground
|
My Amazon Wishlist
|
XBOX 360 Gamertag: webnerd
davidm
Marketing & Design Team
Posts: 6,733
The best way to predict the future is to invent it
Re: [Plugin] AutoLinkRef : New !!
«
Reply #2 on:
Mar 12, 2006, 12:23 PM »
It sure will be a time saver !
Just one thing of no importance, in the example : it's modxcms.com not modx.com
It will sure be nice to have this, along with an autolink feature and the phpGiggle thing that's in the hopper
Logged
.:
david-molliere.net
:
Pour un web libre, moderne et ouvert!
::
Forums modxcms.fr
:
Participez à l'élaboration du site MODx francophone !
:.
! Nouveau !
En live, ne manquez pas les news de modxcms.fr sur Twitter
! Nouveau !
MODx est l'outil idéal pour les developpeurs et webdesigners qui cherchent un framework de gestion de contenu hautement flexible et performant, tout en étant simple d'accès pour les utilisateurs finaux.
Config :
Apache 2.2.8 - MySQL 5.0.45 - PHP 5.2.6 | Debian 4.0 (Etch)
Réalisations sous MODx :
nodeo.net
|
pargade-notaires.fr
|
soleil.info
|
gican.asso.fr
|
michelez-notaires.com
|
amadom.gerondicap.com
|
jocelyne-violet.net
bugsmi0
Sr. Member
Posts: 354
Re: [Plugin] AutoLinkRef : New !!
«
Reply #3 on:
Jun 22, 2006, 09:25 PM »
I don't suppose this has any features to create a link with a _blank target location ?
Logged
SMF Bookmark Mod - check it out
http://mods.simplemachines.org/index.php?mod=350
Guillaume
Moderators
Posts: 711
The future is built today.
Re: [Plugin] AutoLinkRef : New !!
«
Reply #4 on:
Jun 23, 2006, 04:45 AM »
Hi bugsmi0
Quote from: Guillaume on Mar 11, 2006, 06:59 PM
* All link attributes can be used to create the link and its context.
You can create a link with all attributes
An example for your case ; in the code of the
snippet
plugin you need to add sommething like this :
Code:
$alr_links['grunzig']['text'] = 'grunzig';
$alr_links['grunzig']['title'] = 'Website of Grunzig';
$alr_links['grunzig']['href'] = 'www.grunzig.net';
$alr_links['grunzig']['hreflang'] = 'fr';
$alr_links['grunzig']['target'] = '_blank';
This code will generate this link :
Code:
<a lang="fr" hreflang="fr" title="Website of Grunzig" href="http://www.grunzig.net" target="_blank">grunzig</a>
«
Last Edit: Jun 27, 2006, 07:56 AM by Guillaume
»
Logged
Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
bugsmi0
Sr. Member
Posts: 354
Re: [Plugin] AutoLinkRef : New !!
«
Reply #5 on:
Jun 24, 2006, 02:05 AM »
Code:
$alr_links['grunzig']['text'] = 'grunzig';
$alr_links['grunzig']['title'] = 'Website of Grunzig';
$alr_links['grunzig']['href'] = 'www.grunzig.net';
$alr_links['grunzig']['hreflang'] = 'fr';
$alr_links['grunzig']['target'] = '_blank';
what snippet should we put this code in the dropmenu ? does it matter where in the snippet the code goes ?
Logged
SMF Bookmark Mod - check it out
http://mods.simplemachines.org/index.php?mod=350
Guillaume
Moderators
Posts: 711
The future is built today.
Re: [Plugin] AutoLinkRef : New !!
«
Reply #6 on:
Jun 26, 2006, 10:15 AM »
Sorry bugsmi0 but I don't understant your questions. My english is so bad...
Could you explain what do you want to mean ?
Thanks
Logged
Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
bugsmi0
Sr. Member
Posts: 354
Re: [Plugin] AutoLinkRef : New !!
«
Reply #7 on:
Jun 26, 2006, 07:10 PM »
the code above you said to put it inside the snippet, did you mean the dropmenu snippet ? if so where in the dropmenu would this code go
Logged
SMF Bookmark Mod - check it out
http://mods.simplemachines.org/index.php?mod=350
Guillaume
Moderators
Posts: 711
The future is built today.
Re: [Plugin] AutoLinkRef : New !!
«
Reply #8 on:
Jun 27, 2006, 07:56 AM »
Sorry ! I commit an error. You need to put it inside the plugin and not the snippet.
For example, if you put this inside the plugin AutoLinkRef :
Code:
$alr_links['grunzig']['text'] = 'grunzig';
$alr_links['grunzig']['title'] = 'Website of Grunzig';
$alr_links['grunzig']['href'] = 'www.grunzig.net';
$alr_links['grunzig']['hreflang'] = 'fr';
$alr_links['grunzig']['target'] = '_blank';
In a document, this plugin will replace
Quote
[-grunzig-]
by
Quote
<a lang="fr" hreflang="fr" title="Website of Grunzig" href="
http://www.grunzig.net
" target="_blank">grunzig</a>
Logged
Sorry for my english. I'm french... My dictionary is near me, but it's only a dictionary !
Pages: [
1
]
Go Up
Print
« Previous topic
Next topic »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Important News
=> Security Notices
-----------------------------
Commercial Support
-----------------------------
=> [CS] About Commercial Support
-----------------------------
Development & Coding
-----------------------------
=> Commercial Inquiries & Bounties
=> Core Code
===> MODx Next
===> xPDO
=> Module, Plugin & Snippet Creation and Modification
=> In Development
=> Templates
=> Internationalization
===> Bulgarian
===> Chinese
===> Czech
===> Dutch
===> French
===> German
===> Irish
===> Italian
===> Japanese
===> Polish
===> Portuguese
===> Russian
===> Slovak
===> Spanish
===> Swedish
===> Persian - فارسي
-----------------------------
Support
-----------------------------
=> Release Support
===> 0.9.6.2
===> 0.9.6.1
===> 0.9.6
===> 0.9.5 and earlier
=> General Support
===> MODx 101
===> E-Commerce, E-Marketing, Analytics & SEO
===> Hosting Experiences
===> IIS / Windows Hosting Issues
=> Documentation, Tips & Tricks
===> Documentation Suggestions & Corrections
-----------------------------
Add-ons, Extensions & Elements
-----------------------------
=> Module, Plugin & Snippet Usage
=> General Repository Items Support
=> Navigation & Tagging/Taxonomy
===> Wayfinder & DropMenu
=> Creating & Repurposing Content
===> Ditto
===> Jot
===> QuickEdit
=> Users, Authentication & Personalization
===> WebloginPE
===> WebLogin, WebSignup and WebChangePwd
=> Rich Text Editors & File Browser
===> TinyMCE
===> FCKeditor
===> MCPuck File Browser
=> Forms, Form Processing & Anti-Spam
===> eForm
=> Search
===> AjaxSearch
=> E-business
=> Polls, Calendars, Address Book and Community
=> Third-party integrations
=> Images, Videos & Podcasts
===> MaxiGallery
=> Manager, Parser & the Core
===> Backup & Versioning
===> Doc Finder
===> ManagerManager
===> PHx
=> Templates
-----------------------------
General Discussions
-----------------------------
=> General MODx Discussions
=> Web Design and Development
=> Wishlist
=> You and Your Sites
=> modxcms.com Discussions and Suggestions
=> Off-topic
-----------------------------
Czech Community
-----------------------------
=> Oznámení
===> Důležitá oznámení/novinky
===> Bezpečnost
=> Podpora
===> FAQ (často kladené otázky)
===> Instalace
===> Moduly, pluginy, "snippets & code" (šablony zdrojových kódů)
===> Design & Šablony
=> Dokumentace, tutoriály (návody) a překlady
===> Dokumentace
===> Tutoriály (návody)
===> Překlady (lokalizace)
=> Komunita
===> Oznámení
===> Představte se, prosím
===> Ukázky práce
===> Různé aneb cokoli co se jinam nehodí
-----------------------------
Bulgarian Community
-----------------------------
=> Поддръжка
===> Често задавани въпроси
===> Инсталация
===> Модули, Плъгини, Снипети и код
===> Дизайн и Шаблони
=> Документация, Ръководства и Превод
===> Документация
===> Ръководства
===> Превод
=> Общество
===> Съобщения
===> Представете се
===> Представете сайта си
===> Дискусии извън MODx
-----------------------------
Dutch Community
-----------------------------
=> Ondersteuning
===> Veel gestelde vragen
===> Modules, Plugins, Snippets & Code
===> Design & Templates
=> Documentatie, Tutorials en Vertalingen
===> Documentatie
===> Tutorials
===> Vertalingen
=> Community
===> Aankondigingen
===> Stel jezelf voor
===> Site Showcase
===> De stamkroeg
-----------------------------
Finnish Community
-----------------------------
=> Tuki
===> UKK
===> Asennus
===> Moduulit, liitännäiset, koodinpätkät
===> Ulkoasu/Sivustopohjat
=> Dokumentaatio, oppaat ja käännökset
===> Dokumentaatio
===> Käännökset
===> Oppaat
=> Yhteisö
===> Tiedotteet
===> Esittele itsesi
===> MODx sivustosi
===> Kahvihuone
-----------------------------
Filipino Community
-----------------------------
=> Suporta
===> Kadalasang tanong
===> Instalasyon
===> Moduler, Maidadagdag, Karagdagang mga Code
===> Desenyo at Templates
=> Dokumentasyon, Mga Turo, Mga Salin
===> Dokumentasyon
===> Mga Turo
===> Mga Salin
=> Kumunidad
===> Anunsyo
===> Ipakilala ang sarili
===> Ang Galing ng pinoy
===> Tsismisan atbp
-----------------------------
French Community
-----------------------------
=> Support
===> FAQ
===> Installation
===> Module, plugin, snippets
===> Design/Templates
=> Documentation, Tutoriels et Traductions
===> Documentation
===> Traduction
===> Tutoriels
=> Communauté
===> Annonces
===> Présentez vous
===> Vos sites
===> Le Bistrot Français
-----------------------------
German Community
-----------------------------
=> Support (de)
===> FAQ (de)
===> Installation (de)
===> Module, Plugins, Snippets & Code (de)
===> Design & Templates (de)
=> Dokumentation, Tutorials und Übersetzung
===> Dokumentation
===> Tutorials (de)
===> Übersetzung
=> Community (de)
===> Ankündigungen
===> Stellt Euch vor
===> Beispielseiten
===> Off Topic / Verschiedenes
-----------------------------
Irish Community
-----------------------------
=> Tacaíocht
===> CC Ceisteanna Coitianta
===> Breiseáin (cláir bhreise), Snippets & Comhaid
===> Suiteáil
===> Dearadh & Teimpléid
=> Doiciméid, Teagascóireacht agus Aistriúchán
===> Doiciméadú
===> Teagascóireacht
===> Aistriúchán
=> Pobal
===> Fógraí
===> Cuir Tú Féin in Aithne
===> Gailearaí an Láithreáin
===> Caifé / An Tábhairne / Ábhar Cainte Eile / Ilghnéitheach
-----------------------------
Italian Community
-----------------------------
=> Supporto
===> FAQ
===> Installazione
===> Moduli, Plugin, Snippet e altro codice
===> Web Design e Template
=> Documentazione, Tutorial e Traduzione
===> Documentazione
===> Tutorial
===> Traduzione
=> Comunità
===> Annunci
===> Presentazioni
===> Siti in vetrina
===> Chiacchiere in libertà
-----------------------------
Japanese Community
-----------------------------
=> サポート
===> 良くある質問
===> インストール
===> モジュール・プラグイン・スニペット・本体
===> デザインやテンプレート
=> マニュアル・テュートリアル・翻訳
===> マニュアル
===> 事例集、テュートリアル
===> 日本語化
=> コミュニティ
===> お知らせ
===> MODxサイト展示場
===> 自己紹介
===> 雑談
===> 国産リソース
-----------------------------
Persian Community
-----------------------------
=> پشتيباني
===> راهنما
===> نصب
===> ماژول , پلاگین ها , کد ها و جزییات
===> طراحی و قالب ها
=> مستند سازی , آموزش ها و ترجمه ها
===> مستند سازی
===> آموزش ها
===> ترجمه ها
=> انجمن ها
===> اخبار
===> معرفی کردن خود
===> نمایش دادن سایت ها
===> بحث های عمومی و سایر موضوعات
-----------------------------
Polish Community
-----------------------------
=> Wsparcie
===> FAQ
===> Instalacja
===> Moduły, pluginy, snipety i kod
===> Wygląd i szablony
=> Dokumentacja, tutoriale i tłumaczenie
===> Dokumentacja
===> Tutoriale
===> Tłumaczenie
=> Społeczność
===> Ogłoszenia
===> Przedstaw się
===> Twój serwis WWW
===> Hyde Park
-----------------------------
Portuguese Community
-----------------------------
=> Suporte
===> FAQ - Dúvidas Frequentes
===> Instalação
===> Módulos, Plugins, Snippets e Código
===> Design e Templates
=> Documentação, Guias e Traduções
===> Documentação
===> Guias
===> Traduções
=> Comunidade
===> Anúncios
===> Apresente-se!
===> Bar da esquina (fora de tópico)
===> Portfólio de Sites
-----------------------------
Russian Community
-----------------------------
=> Поддержка
===> ЧАВО (FAQ)
===> Установка
===> Модули, плагины, сниппеты и код
===> Дизайны и шаблоны
=> Документация, Уроки, Перевод
===> Документация
===> Уроки
===> Перевод
=> Сообщество
===> Объявления
===> Представьтесь публике
===> Галерея сайтов
===> Диван
-----------------------------
Scandinavian Community
-----------------------------
=> Support
===> Frågor och svar
===> Installation
===> Moduler, plugins, snippets och kod
===> Design & sidmallar
=> Dokumentation, guider och översättningar
===> Dokumentation
===> Guider
===> Översättningar
=> Webbgemenskap
===> Meddelanden
===> Presentera dig själv
===> Visa upp dina webbsidor
===> Ordet fritt
-----------------------------
Spanish Community
-----------------------------
=> Soporte
===> FAQ
===> Instalación
===> Modulos, Plugins, Snippets & Código
===> Diseño y plantillas
=> Documentación, Tutoriales y Traducciones
===> Documentatción
===> Tutoriales
===> Traducciones
=> Comunidad
===> Anuncios
===> Presentaciones personales
===> Muestra de sitios
===> El Café
-----------------------------
TÜRKÇE (Turkish)
-----------------------------
=> Destek
===> SSS
===> Kurulum
===> Modüller, Pluginler, Snippetlar & Kodlar
===> Dizayn & Temalar
=> Belgeleme, Eğitmenler ve Çeviri
===> Belgeleme
===> Eğitmenler
===> Çeviri
=> Topluluk
===> Duyurular
===> Kendinizi Tanıtın
===> Site Vitrini
===> Konu Dışı