This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Custom Modules


avatar
Legion 19
From: -
Custom Modules

Hello,
Last week I purchased the professional version of Contentteller. First I would just like to say this is a very impressive content managment system. So far everything is going well with the setup. However there is one small aesthetic issue I cannot solve.

I want my new menus to look like the old ones. I have attached images of the old and new menus.

The issue is I cannot work out how to separate each data entry into its own table.
New
Old

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Custom Modules
avatar
OP 19
From: -
Right I figured but didn't want to stuff it up. Thanks heaps works perfect!
1 Re: Custom Modules
avatar
Editor
0
From: -
Basically the same but with $article_title and in /blocks/articles_latest.php:

                         if (strlen( $article_title ) > 22 )

{
$article_title = substr( $article_title, 0, 20 ) . "...";
}
1 Re: Custom Modules
avatar
OP 19
From: -
Thanks and for the articles?
1 Re: Custom Modules
avatar
Editor
0
From: -
You need to add the following before the previous $news_latest line:

                           if (strlen( $newsstory_title ) > 22 )

{
$newsstory_title = substr( $newsstory_title, 0, 20 ) . "...";
}


This will limit the news stories to 20 characters
1 Re: Custom Modules
avatar
OP 19
From: -
In the second image attached in the first post you will notice that the text links are limited to a single line using a character limitation. How would I implement this into your code?
1 Re: Custom Modules
avatar
Editor
0
From: -
You find the HTML output of latest news in /blocks/news_latest.php:

$news_latest .= "&middot; <a href=\"" . $seo_url . "news" . $preferences[ 'param_action' ] . "story" . $preferences[ 'param_page' ] . $newsstory_seo . ".html\">" . htmlspecialchars( $newsstory_title ) . "</a><br />";


It is necessary to clear the cache (Main / Clear Cache in admin section) after every block modification.

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.