Pragmatism in Code

Michael Percy AKA DeeEmm - Waxing lyrical about life the universe and everything software related...

Subscribe to feed Viewing entries tagged Module

EasyBlog - Display list of blog titles using the Latest Blogs module

Posted by DeeEmm
DeeEmm
DeeEmm AKA Michael Percy is an industrial software engineer specialising in lang
User is currently offline
on Saturday, 21 January 2012
in Joomla 1.7 How To's

When recently migrating the DeeEm.com site I needed a way to be able to organise the tutorials section so that each tutorial was easily accessible. This meant creating an index of blog posts so that visitors could browse through each category so see if there were any mods that applied to their site. Whilst EasyBlog makes provision for listing category titles, there is no way to list the blog posts without additionally showing an intro portion from the post itself. This is achieved using the 'Latest Blogs' module, and whilst there is a setting to control the length of text displayed, even setting this to the minimum possible value, you will still display a couple of newlines in the output.

Whilst digging though the code to see if there was a way that I could modify the CSS or core code to force the list to display as I wanted, I discovered that there is a hidden value within the administration settings for the module that hides the intro text. The solution is to manually apply this value by directly editing the database table.

The value in question is for the 'introtext' variable: (Content be taken from). This will only allow you to select between 'introtext' or 'main content'. What you cannot see is there is a third value 'Hidden'. I assume that this does not display, due to it having the value '-1', or at least it does not display in the browsers that I am using.

The solution is therefore very simple. 

using phpMyAdmin or your favourite MySQL client, browse to the #__modules table and search for the Latest Posts module you wish to edit (TIP - search for the module title + if you have just added the module it will be on the last page!). When you have found it, hit the edit button, and then scroll down to the 'params' section and search for the text "showintro":"0" . This may have the value of either 0 or 1 depending on the value of the setting in the admin section. Simply change the value to -1 and save it. Be careful not to change any of the other text.

Now you will notice that the intro text is gone, and the additional carriage returns are no longer visible.

One caveat is that if you edit any other settings within the admin section, it will overwrite this value and you will neeed to manually re-apply this fix.

/DM

Recent comment in this post Show all comments
  • DeeEmm
    DeeEmm says #
    UPDATE: There does seem to be one caveat with this. The Module does not follow the SEO URL schema, meaning that the links are cons...
Hits: 537 1 Comment Continue reading
Rate this blog entry
0 votes

Dolphin Maintenance Tools Module

Posted by Admin
Admin
Admin has not set their biography yet
User is currently offline
on Monday, 21 June 2010
in Latest News

We have just released a free module that allows you to easily enable / disable your website. This is a great help for performing maintenance tasks such as adding modifications or backing up.

The module is easily installed within the standard Dolphin module structure, and requires a small modification to one file to be able to utilise.

The module provides an easy place to edit a maintenance page that will be displayed in the browser to visitors when the site is disabled.

There are future plans to add additional features to the basic module, so if you have an idea for s setting that you feel should be included, just let me know.

The module is available for download from the store or over at the Boonex marketplace.

/DM

Hits: 928 0 Comments Continue reading
Rate this blog entry
0 votes