Hello. Im putting together a site baed on wcms. Everything is coming along great, except one challenge. I have a layout where there is the contents of the selected article. On the left side though, there is a box that I need to show last 3 articles from a specific (News) structure level. Is that possible?
Thanks in advance!
Article contents and "latest news" box
greetings
There is a nice tag called like this
When you write your articles, whether news or something else, there is an input box called keywords. The words entered there are used by the internal search engine. To use keywords in the RELATED: output enter the keywords surrounded by asterik like this
You can use mulitiple keywords, (which enables you to call them in different sections) but to be called thru 'RELATED:' they must EACH be surrounded by asteriks. My understanding is that it is not case sensitive
Hope this makes sense
There is a nice tag called like this
related is capitalized, followed by a colon ":" followed by the number of items you want to have displayed "5:" followed by the keyword entered in the article summary.{RELATED:5:keyword}
When you write your articles, whether news or something else, there is an input box called keywords. The words entered there are used by the internal search engine. To use keywords in the RELATED: output enter the keywords surrounded by asterik like this
Code: Select all
*keyword*
Hope this makes sense
Umm, I think they go according to creation date, so if you change the display order in the article listing to be different than the creation date I'm not sure it would make a difference in the listing.
If you just want to show the newest articles regardless of their categories you would just use {NEWS:5) (change the No.5 to however many you want to have displayed)
Then the newest in desending order would be listed with first the date then the title on each line. (The newest would be at the top of the list)
Actually I'm just getting to know this program myself. I am finishing a site that would normally have taken me a day or two but has taken a month because of learning this program as I go.
So there may be other ways to do this.
Have you found the manual yet? It is very good, but it took me a while to find. In case you haven't -here is the link:
http://docu.fhss.de/english_version.phtml
I find I am visiting it often but am getting more comfortable with the program as I go. Good luck...
If you just want to show the newest articles regardless of their categories you would just use {NEWS:5) (change the No.5 to however many you want to have displayed)
Then the newest in desending order would be listed with first the date then the title on each line. (The newest would be at the top of the list)
Actually I'm just getting to know this program myself. I am finishing a site that would normally have taken me a day or two but has taken a month because of learning this program as I go.
![Rolling Eyes :roll:](./images/smilies/icon_rolleyes.gif)
Have you found the manual yet? It is very good, but it took me a while to find. In case you haven't -here is the link:
http://docu.fhss.de/english_version.phtml
I find I am visiting it often but am getting more comfortable with the program as I go. Good luck...
okay, here's what I found while searching on another matter:
in /include/inc_front/content.func.inc.php on or around line # 409 it shows
you will find
and
Bear in mind that I have no idea what I'm talking about, so save the original intact and don't blame me if it breaks....![Twisted Evil :twisted:](./images/smilies/icon_twisted.gif)
Your assignment, should you choose to accept it, is to let us know if it works or fails![Exclamation :!:](./images/smilies/icon_exclaim.gif)
in /include/inc_front/content.func.inc.php on or around line # 409 it shows
in that section it refers toall new article list sorted by date
if you look in //-include/inc_conf/conf.template_default.inc.php-//template_default -"news" -
you will find
// new articles
and
Near as I can tell you can format it there. You can try adding the articleSummary or articleSubHead found higher up under article default.// related articles based on keywords
Bear in mind that I have no idea what I'm talking about, so save the original intact and don't blame me if it breaks....
![Twisted Evil :twisted:](./images/smilies/icon_twisted.gif)
Your assignment, should you choose to accept it, is to let us know if it works or fails
![Exclamation :!:](./images/smilies/icon_exclaim.gif)