jonathancraddock.com
Hiking Recipes Photography Blog
  
Joomla: Page Nav Titles Plugin   ( jonathancraddock.com  )
Wednesday, 12 January 2011 12:53

I've just installed a new plugin for my Joomla site, Page Nav Titles, from Kirill Mazur. His site and instructions are in Russian, although the plugin itself is English - and very easy to use. One useful tip is to remember that in addition to enabling the plugin, you also need to edit the global defaults in the article manager so that the navigation is displayed. Took me a while to spot that one!

Joomla has built in functionality to display "Next" and "Previous" links on article pages, and this is almost a direct replacement for that, with the added benefit that the words Next and Previous have been replaced with the actual titles of the articles. The screenshot below illustrates this.

Screenshot of Joomla Plugin

Might want to add some additional CSS to style it slightly differently. For the moment I just have it centered on a grey background and got rid of the default underlining. Code snippet below.

/* Style for the previous / next links on article pages */
.pagenav {
BACKGROUND-COLOR: #dddddd;
MARGIN-TOP: 12px;
min-width:400px;
TEXT-DECORATION: none;
}

/* Remove underline from previous / next links on article pages */
.pagenav a:link, .pagenav a:visited {
text-decoration: none;
}

A useful plugin, supposedly carrying some SEO benefits, and I think a definite improvement over the simple previous/next default option that doesn't really provide any useful information to the user prior to clicking.

 

JCI'm Jonathan Craddock - welcome to my website and blog! I post on things I find interesting or useful, and a developing trend seems to be Lake District routes I've walked in my ongoing personal challenge to climb all 214 Wainwrights. Other themes are Recipes and Technology, and a full sitemap is available. Listed below are my five latest trip reports.

You can contact me via Twitter, or just leave a comment on an article. I also run a companion climbing site, LifeOnTheLedge. Enjoy!

 
Embedded article lists within a Joomla article   ( jonathancraddock.com  )
Saturday, 04 December 2010 19:26

For a while now I have wanted a simple method for automatically creating lists (with links) to "similar" or "recent" articles, which could be embedded inside other Joomla articles. There are a wealth of plugins to do this in all manner of fancy ways, with cascading drop-down menus and table-of-contents formatting, and so on. Mostly they are solutions for creating menus and I just wanted a simple bullet list. For example, the most recent five articles in a given section or category. I also wanted to be able to embed this within the text of another article, and for it to automatically update as the site content changes.

Currently I'm testing a combination of a module called "Article Lister", and using this in conjunction with a plugin called "Modules Anywhere". I created multiple instances of the Article Lister module and pointed them at different article Categories. You can leave the Article Lister modules unpublished, using an override setting in Modules Anywhere. For ease of use I named the modules by Category - for example, "artlist_Wainwrights" and "artlist_Recipes". These modules can now be embedded into an article (by use of the Modules Anywhere plugin) simply by enclosing a reference in curly brackets.

 
Latest Wainwrights Walks:

Embedded below using the syntax: module artlist_Wainwrights enclosed in a pair of brackets, { xxx }


Latest Recipes:
Embedded below using the syntax: module artlist_Recipes enclosed in a pair of brackets, { xxx }

 
For me, this gives me exacly what I needed. Simplicity itself to install and configure the modlues/plugin, and complete flexibility to where you use the lists. More intuitively, you would probably normally use the "Article Lister" module to povide a quick set of links in a sidebar. I tested this and it works great, but it wasn't what I had in mind just yet - but I will be using this functionality in future. All in all, a very easy fix to something I'd puzzled over for a while!

 
JCE - Upgraded Editor   ( jonathancraddock.com  )
Monday, 30 November 2009 00:21
Had been having a few problems with Joomla's default editor, the TinyMCE. Some of them were just weird, others more subtle - like replacing certain characters from within embedded HTML code that makes it impossible to embed YouTube clips, etc. Just installed JCE and so far, so good. It looks much better featured, although currently my spell-checker is ignoring it...! But anyway, get it here!
 
Detect Joomla Frontpage   ( jonathancraddock.com  )
Sunday, 22 November 2009 23:40

Found a nice easy way to identify your current location on your Joomla site, with the following code from a Joomla forum:

<?php $menu = &JSite::getMenu();
if ($menu->getActive() == $menu->getDefault())
{
// Script here will execute only on frontpage.
}
?>

I think it may be handy to fine tune a couple of page elements that I can't seem to find any conventional way to get at.

Also noticed that the upgrade to Joomla 1.5.15 at the weekend messed up the MCE editor. It turned out some of the defaults had changed and needed to be edited in the Plugin Manager. There's a "Functionality" radio button that had to go from "Advanced" to "Extended". I dread to think what the "Basic" setting does!

 
<< Start < Previous 1 2 3 4 5 6 Next > End >>

Page 1 of 6
 

Twitter Updates

    Follow me!