Hi guys!
I just installed CMSMS 1.4.1 and I have lots of questions about it, but my first one is:
How can I clip the articles on my frontpage to a paragraph only and add an "read more", and the links to send you to the full article?
For example on
http://www.norboo.net/cms/
I want the Content 2/ Content L and Content R clipped to 1 paragraph...
road2cms
[solved] "read more" link
[solved] "read more" link
Last edited by road2cms on Mon Sep 15, 2008 2:07 pm, edited 1 time in total.
Re: "read more" link
The best way to do this is to use the "News" Module to add articles to your site. You can separate articles via categories. So they fall in a specified area in your site.
I'm typing fast so sorry for the typos.
Example: http://abc.fusiondigitalmedia.com/ "What's New and "Upcoming Events" are using the News Module
So go to the "News module" under the "Content" tab
Add a category or just use the default
Add a news story. Note just because it says news doesn't mean it has to be news. By using categories you can use the module for many things concerning automated style story development.
Then put this smarty code block in a page or template
To acheive the look I have on the site above I used the following smarty code in my template
{cms_module module='News' detailpage='events' category="events" number="1"}
Note: number="1" is filtering the story on the home page by 1 story you could make it 2 and it would just show 2 you could remove number="1" and the system will show all stories.
Ex: detailpage='events' means when you click on a story in the events area there is smarty code on a page with an alias of events to pass the info to that page. (You will find a pages alias by creating a page and going to the Options Tab)
As well as adding this smarty code to the detail page (The page that is designated for the specified content)
So this code is in a page with an alias of "events"
{cms_module module='News' detailpage='events' category="events" }
This will pull only the events category.
If you wanted to filter more then one category on a page you could do this
{cms_module module='News' detailpage='events' category="events, news," }
or you could simply do this
{cms_module module='News' detailpage='events' } This will show all news module content on the page with an alias of "events"
To read more about the option the News mod has go to the News module and click on the help to the right of the module in the admin
Shane
I'm typing fast so sorry for the typos.
Example: http://abc.fusiondigitalmedia.com/ "What's New and "Upcoming Events" are using the News Module
So go to the "News module" under the "Content" tab
Add a category or just use the default
Add a news story. Note just because it says news doesn't mean it has to be news. By using categories you can use the module for many things concerning automated style story development.
Then put this smarty code block in a page or template
To acheive the look I have on the site above I used the following smarty code in my template
{cms_module module='News' detailpage='events' category="events" number="1"}
Note: number="1" is filtering the story on the home page by 1 story you could make it 2 and it would just show 2 you could remove number="1" and the system will show all stories.
Ex: detailpage='events' means when you click on a story in the events area there is smarty code on a page with an alias of events to pass the info to that page. (You will find a pages alias by creating a page and going to the Options Tab)
As well as adding this smarty code to the detail page (The page that is designated for the specified content)
So this code is in a page with an alias of "events"
{cms_module module='News' detailpage='events' category="events" }
This will pull only the events category.
If you wanted to filter more then one category on a page you could do this
{cms_module module='News' detailpage='events' category="events, news," }
or you could simply do this
{cms_module module='News' detailpage='events' } This will show all news module content on the page with an alias of "events"
To read more about the option the News mod has go to the News module and click on the help to the right of the module in the admin
Shane
Last edited by sugna on Sun Sep 14, 2008 3:29 pm, edited 1 time in total.
Re: "read more" link
Also one more trick that I use. If you want to name the [more] link something other then [more] then you need to FTP to the "News Module" under "Modules in the root directory and go to:
admin / modules / news / lang and en_US.php
and edit line 264
$lang['more'] = 'add what you want';
Ex:
$lang['more'] = '[More]';
$lang['more'] = 'More »';
$lang['more'] = 'Read More »';
$lang['more'] = 'Go to article »';
admin / modules / news / lang and en_US.php
and edit line 264
$lang['more'] = 'add what you want';
Ex:
$lang['more'] = '[More]';
$lang['more'] = 'More »';
$lang['more'] = 'Read More »';
$lang['more'] = 'Go to article »';
Last edited by sugna on Sun Sep 14, 2008 3:30 pm, edited 1 time in total.
Re: "read more" link
Thanks Sugna!
I was really confused by the name "News". I worked with Joomla before and it functions little bit different.
I'll try it and if doesn't work, I'll bother you again...
road2cms
I was really confused by the name "News". I worked with Joomla before and it functions little bit different.
I'll try it and if doesn't work, I'll bother you again...
road2cms
Re: "read more" link
You don't must edit php file,sugna wrote: Also one more trick that I use. If you want to name the [more] link something other then [more] then you need to FTP to the "News Module" under "Modules in the root directory and go to:
admin / modules / news / lang and en_US.php
and edit line 264
$lang['more'] = 'add what you want';
use moretext param in tag, ex: moretext="add what you want display"
Alby