news panel

amar

No avatar

2009-04-06 03:36

hello, i use version 1.1..

i created a "news" category and I want to get the last 5 items (name only and link) and put them in a list on the left menu for a quick headline preview..

?p=p_37&sName=news

any help.. I checked out the faqs but the code snippet is unclear to me..

» Quick.Cms v1.x

amar

No avatar

2009-04-20 05:29

any help please?

treewood (OpenSolution)

Avatar: treewood

2009-04-20 07:58

1. create templates/news.tpl and copy to this file content of file templates/pages_list_1.tpl
2. add in index.php before this:
$sMenu1 = throwMenu( 'menu_1.tpl', 1, $iContent, 0 );
something like this:
$sNews = listSubpages( 'NEWS_PAGE_ID', 'news.tpl', 1 );
3. in templates/page.tpl after this: $sMenu1 put this:
$sNews

Now you must define in 2 step id of news page. I understand that page id is: 37 then it should be:
$sNews = listSubpages( 37, 'news.tpl', 1 );

In templates/news.tpl you should change "subList" to for example: "newsList" and define in templates/default.css styles to this news list

amar

No avatar

2009-04-21 12:06

thanks alot treewood, it works now.. =)

could I bother you with one more thing?

If I wanted to display it only on the main page and on the right side of the page, opposite to the menu, would that be difficult?

I think i saw an example similar in javascript but I cant find it again..

treewood (OpenSolution)

Avatar: treewood

2009-04-22 07:48

read this "how to add right column":
http://opensolution.org/Quick.Cms/docs/?id=tips#how_to_add_right_column

and this "how to display something on one page":
http://opensolution.org/Quick.Cms/docs/?id=tips#themes_-_changing_design_of_all_page_on_particular_subpage

amar

No avatar

2009-04-24 13:22

thanks again treewood, one step closer, I added in the column2 inside, but not so sure on how to display it only for the main page, still looking into this..

Jod

No avatar

2009-07-22 16:38

Can anyone tell me how I limit the number of subpages to be shown in the list? For example the 3 most recent (or based on the top 3 'position' number settings)

Thank you (as always fabulous script! I have been using Quick.CMS for years and still learning! :) )

Makaron

Avatar: Makaron

2009-07-23 08:43

Jod: This possibility is only in paid scripts (news plugin) so You don't recieve solution for Your problem.

Jod

No avatar

2009-07-25 23:31

Ok, thanks anyway

(I miss the old days of opensolution! This is only a tiny modification but these days the answer is usually 'only in paid scripts'. I am reluctant to purchase the script as I think the current price is too high :( I understand you need to make your money, just disappointed. Still love your scripts though)

Back to top
about us | contact