| [21] | 1 | === RB Internal Links === |
|---|
| 2 | Contributors: cohen |
|---|
| 3 | Donate link: http://www.blograndom.com |
|---|
| 4 | Tags: links, posts, slugs, permalinks |
|---|
| 5 | Requires at least: 2.1 |
|---|
| 6 | Tested up to: 2.5 |
|---|
| 7 | Stable tag: 0.21 |
|---|
| 8 | |
|---|
| 9 | Link to internal posts and pages in your blog in a similar to style to wiki. No need to remember full URLs, post ids or slugs. Wysiwyg plugin to help find previous posts and pages. |
|---|
| 10 | |
|---|
| 11 | == Description == |
|---|
| 12 | |
|---|
| 13 | An easy way to link to other posts and articles in your blog. As well as quickly typing in the link tag there is a tinymce wysiwyg |
|---|
| 14 | plugin that allows you to search for posts for category. |
|---|
| 15 | |
|---|
| 16 | I saw a need for this plugin and thought I'd give it a go. If you would like to help improve this plugin please contact me via my blog. |
|---|
| 17 | |
|---|
| 18 | == Installation == |
|---|
| 19 | |
|---|
| 20 | 1. Upload the "rb-internal-links" folder to your wp-content/plugins/ directory. |
|---|
| 21 | 2. Activate the plug-in |
|---|
| 22 | 3. Browse to Options > RB Internal Links to take a look at preferences |
|---|
| 23 | 4. Start internally linking |
|---|
| 24 | |
|---|
| 25 | == Usage == |
|---|
| 26 | |
|---|
| 27 | For more information visit http://www.blograndom.com/blog/extras/rb-internal-link-plugin/ |
|---|
| 28 | |
|---|
| 29 | To manually link a page: |
|---|
| 30 | |
|---|
| 31 | At the place you would like the link to appear write ( ignoring the ticks - i.e. ` ): |
|---|
| 32 | `<!--intlink id="post-slug" text="link text"-->` OR `<!--post id="post-id" text="link text"-->` |
|---|
| 33 | ...exchanging post-slug or post-id for the post or page slug/id you would like to link to. |
|---|
| 34 | |
|---|
| 35 | Note: |
|---|
| 36 | - text is the text or html you would like to put within the anchor tag and should be ok with anything other than { or ". |
|---|
| 37 | - you can specify a class for the link using ... `class="my_class"` ... |
|---|
| 38 | - you can specify a target for the link using ... `target="_new"` ... |
|---|
| 39 | - you can put html in to the text parameter (e.g. <img src='myimage.gif' />), just don't use " (quote marks) in the html |
|---|
| 40 | |
|---|
| 41 | Using the tinymce wysiwyg editor: |
|---|
| 42 | |
|---|
| 43 | Make sure you've ticked "enable wysiwyg editor" on the plugin preferences page. |
|---|
| 44 | A new icon will appear on the wysiwyg toolbar, it looks like a page with a link over it |
|---|
| 45 | Select the text you wish to turn in to a link (optional) |
|---|
| 46 | Click on the icon, a toolbox should popup |
|---|
| 47 | Select the category of the post you need or alternatively choose pages for a list of pages |
|---|
| 48 | Click on the post or page you wish to link to |
|---|
| 49 | Fill in the optional properties for the link |
|---|
| 50 | Click "Insert Link" |
|---|
| 51 | |
|---|
| 52 | == To do == |
|---|
| 53 | - Made a <!--extlink for items in the blog roll |
|---|
| 54 | - Take changes from the highlighted text in Visual mode and apply them to the link code |
|---|
| 55 | |
|---|
| 56 | == Change Log == |
|---|
| 57 | v0.15 (27/01/2008) |
|---|
| 58 | - Fixed bug with visual mode insertion hiding newly inserted link |
|---|
| 59 | - Added anchor parameter for linking to anchors within pages |
|---|
| 60 | v0.14 (19/12/2007) |
|---|
| 61 | - Changed CDATA comment tags from /* */ to //, which should resolve issues with the tinymce icon |
|---|
| 62 | v0.13 (23/10/2007) |
|---|
| 63 | - Changed charset to utf-8 for tinymce plugin (thanks to vanco) |
|---|
| 64 | - Put in option for ID or slug returned to editor, default to be ID (good idea, thanks again vanco) |
|---|
| 65 | - Support for creating an internal link with an image |
|---|
| 66 | - The intlink code is now hidden in visual mode, replaced with the highlighted text |
|---|
| 67 | - The parsing engine has been completely rewritten for speed and scalability |
|---|
| 68 | - Some code changes that should help people with problems related to the wysiwyg icon not turning up |
|---|
| 69 | - Added filter for 'the_content_rss' |
|---|
| 70 | |
|---|
| 71 | v0.12 (21/10/2007) |
|---|
| 72 | - Stopped selected text with quote marks in from breaking the wysiwyg plugin |
|---|
| 73 | |
|---|
| 74 | v0.11 (19/10/2007) |
|---|
| 75 | - Updating some spelling mistakes |
|---|
| 76 | - Added debug information for missing wysiwyg icon |
|---|