Page 1 of 2

available modules not shown in manager

Posted: Wed Nov 14, 2007 8:36 am
by keratos
Hi, first things first,

thanks for reading this - I've just installed CMSMS and am a total n00b to this field of applications. MySQL, PHP, Apache - phew! I dont know how I did it. Anyway, I've got the foundation of my first ever web site up and running however I've hit a problem...can you help please:

Whilst looking for a blog module I logged into my admin area and finally found myself in the Extensions->ModuleManager area. Nothing is listed. A further scurry around the admin area revealed that I need the URL to a repo in SiteAdmin->GlobalSettings but I dont see any URL text entry box for the rep - there is no URL box.

How do I point my admin site to the repo and list the modules.

I'm using CMSMS 1.2

thanks.

Re: available modules not shown in manager

Posted: Wed Nov 14, 2007 9:47 am
by RonnyK
Keratos,

the repository URL is not inside the Global Settings, it is shown under "Extensions -> Module Manager -> Preferences". There should the URL for the repository stand, being "http://modules.cmsmadesimple.org/soap.p ... Repository".

It might be an memory-issue that the ModuleManager isn't showing any files, as browsing the complete repository could require some memory. You could increase your memory to at least 16MB, to see if MM is then showing the list of modules.

Another option would be to go to dev.cmsmadesimple.org and browse and download the modules there. XML-files can then be uploaded using "Extensions -> Modules -> Upload" after which the module still needs to be installed using the link behind the uploaded Module.

A archive package can be unpacked locally and then transferred under the \Modules folder. Also the install link should be used as with the uploaded XML, as these two options only transfer the files.

Ronny

Re: available modules not shown in manager

Posted: Wed Nov 14, 2007 10:23 am
by keratos
Ah, thanks Ronny.

I viewed the page source and could indeed see something relating to "memory exhausted" whatever that means.

Anyway, I recall seeing a "Resources" icon on my webmin page (I'm running webmin on ubuntu) and in there I had changed the default (128M) to 16M inline with webmin install - it prints a friendly message out to the console. I've now changed this to 32M and everything is fine. I've downloaded the blog module however....

I've created a single home page and added the tag {cms_module module='Blogs'} as per module help info. I've defined a new category called CMSMS and made my first ever blog entry. But, when I view site, the blogs appear on the home page, with a category link below. What I want is a list of categories that can be clicked on to reveal a blog page with the category as the title and all the entries for the blog.

The module info describes some parameters, one such param is show="everything". I changed this to show="shortcategory" and tried "category" but all I get with either is no blogs at all, and no links !!!

Sad!

Any ideas?

Daz

Re: available modules not shown in manager

Posted: Wed Nov 14, 2007 10:42 am
by RonnyK
Daz,

I dont know the Blogs-module that well. What I did myself is using the News-module instead and combine that with Comments to have the ability to add the comments, the help of comments shows how to attach comments to the news-detail.

You can create a news-category like "Blog" and call that specifically in the calling of {news}, like
{news number=5 category="Blog" dateformat="%B %d, %Y"}
In the detail-template of News, these last lines are inserted to call the comments module ONLY for category BLOG. All other news-categories then dont have a comment-inserting option.
{if $entry->category == 'Blog'}
{cms_module module='comments' dateformat="F d, Y H:i:s" modulename='News' pageid=$entry->id}
{/if}
Check this URL for the example,

http://test.krijt.eu/index.php?page=blog

Ronny

Re: available modules not shown in manager

Posted: Wed Nov 14, 2007 1:22 pm
by keratos
Nice 1 Ronny.

I've only been dabbling circa .. 1 day .. with CMS and have no understanding of the instructions/HTML code you provide. I've got so much to learn: CMS, Apache, PHP, mySQL, CSS, HTML etc. I have zero knowledge of these  :'(

I'll blindly copy you suggestion into wherever it needs to go (I'll do some digging).

The blog module is not what I would call a blog really and the formatting is quite poor - but probably tweakable.

Thanks for the hints.

D

Re: available modules not shown in manager

Posted: Wed Nov 14, 2007 1:27 pm
by RonnyK
Daz,

I can put some logic in here if you want, basically the two pieces of code is what is required to get it working. For styling, you should edit the stylesheets for "News" and for "Comments".

Ronny

Re: available modules not shown in manager

Posted: Wed Nov 14, 2007 2:08 pm
by keratos
Getting there. My first page is done with links to Articles (which are in reality News without comments) and a daily news bar on the right.

On my daily news bar Ronny, I display a single article (todays news). I'd like  news from previous days to appear as links only (subject line from the article) under todays' news. So thats a list of articles (subject line only) and when I click on one, the article appears in full. How do I get this list Ronny?

Thanks in advance,
D

Re: available modules not shown in manager

Posted: Wed Nov 14, 2007 2:15 pm
by RonnyK
D,

what do you mean exactly. I'm trying to figure what you mean, do you have a link?

Do you want the single news to display full and the older news as links?

If so, you can call NEWS twice, once with "number=1" and once with "start=2" with different templates etc.... That way you can show the latest news one way and a list of older items another way.

Ronny

Re: available modules not shown in manager

Posted: Wed Nov 14, 2007 2:20 pm
by keratos
Sorry! Thanks for keeping with me Ronny, this is childsplay for you I suppose...

YES I would like a single full news then links to older news. I've got the NUMBER='1' and NUMBER='2' in where I need them however I cannot understand how to make this "template" that only lists the subject lines (as links)  from news '2' to 'n' ?

How do I do this in CMSMS?

Phew!

My day job is an Aerospace avionics engineer (C,C++,Unix,Linux,VAX/VMS,Ada,VAPS,MC68k and so on)  honest !! :P

Re: available modules not shown in manager

Posted: Wed Nov 14, 2007 2:23 pm
by keratos
Whilst your busy thinking, I visited : http://www.peuterspeelzaal-anja.nl/

Cool site but I cant understand a word, it seems to be in Dutch or something?

Anyway, if you are indeed a 'NL' locale my friend, your English is superb, as are your sites.

One question, the children on the page, mmmm?? in the UK we wouldnt do that - new pedophiles and alike lurk the dark corners of the WWW. In NL is this not a problem ? Here in the UK we wouldnt normally put images of children on sites .

Re: available modules not shown in manager

Posted: Wed Nov 14, 2007 2:26 pm
by keratos
This is taken from my Layout->Templates->Orange theme Ronny.

I guess I need to put something in here for the summary list?

What does the "detail page" do?


 
   
        News
          {news number='1' detailpage='news' category="General" dateformat="%d %b %Y"}
   
   
 
 

Re: available modules not shown in manager

Posted: Wed Nov 14, 2007 2:36 pm
by RonnyK
Detailpage is the content-page that is opened to show the details. Instead of replacing the content of the current page. So the page-title will then be the page-title of the detailpage instead of where you were.

As for the site, I dont put the pages on that site, I only created the structure. I dont know what people would/could do with some pictures of the playgroup.

Are you using summary as well or only subject and details in the news-entries?

Ronny

Re: available modules not shown in manager

Posted: Wed Nov 14, 2007 2:42 pm
by keratos
http://80.193.156.95/cmsmadesimple-1.2/

I've got the todays news but the archive is not correct. I just want a list of subject lines (not summary not detail) as links then display the detail in the content page, for links clicked.

Extract from my template code...

 
 
   
        Today's News
          {news number='1' start='1' detailpage='news' category="General" dateformat="%d %b %Y"}
        Archive
          {news start='2' detailpage='news' category="General" dateformat="%d %b %Y"}
   
   
 
 

Re: available modules not shown in manager

Posted: Wed Nov 14, 2007 2:57 pm
by RonnyK
D,
{news number="1"}

{news start="5" summarytemplate="short"}
With an extra summary-template called "short", being:

{foreach from=$items item=entry}


{if $entry->formatpostdate}

{$entry->formatpostdate}

{/if}


{$entry->titlelink}



{/foreach}
Gives only date/link for the archive, so dont use "start" twice, but "number='1'" for the current and "start='2'" for the archive.

If you change the template to:

{foreach from=$items item=entry}


{if $entry->formatpostdate}

{$entry->formatpostdate}
                {$entry->titlelink}

{/if}

{/foreach}
You get a single line for the archive, check
http://demo.krijt.eu/index.php?page=newstwice

Ronny

Re: available modules not shown in manager

Posted: Wed Nov 14, 2007 2:59 pm
by keratos
Almost there..

Created (well hacked the default one) , a news summary template called "Archive" :

Code: Select all

<!-- Start News Archive Template -->
{if $pagecount > 1}
  <p>
{if $pagenumber > 1}
{$firstpage} {$prevpage} 
{/if}
{$pagetext} {$pagenumber} {$oftext} {$pagecount}
{if $pagenumber < $pagecount}
 {$nextpage} {$lastpage}
{/if}
</p>
{/if}
{foreach from=$items item=entry}
<div class="NewsSummaryLink">
	{$entry->titlelink}
</div>
{/foreach}
<!-- End News Display Template -->
Then in my site template I changed the template to:

Code: Select all

<!-- Start RightSidebar -->
   <div id="rightsidebar">
     <!-- Start News -->
        <h1>Today's News</h1>
          {news number='1' start='1' detailpage='news' category="General" dateformat="%d %b %Y"}
        <h1>Archive</h1>
          {news start='2' detailpage='news' summarytemplate="Archive" category="General" dateformat="%d %b %Y"}
     <!-- End News -->
     <!-- Start Search-->
     <div id="search">
        {search}
     </div>
   <!-- End Search -->
   </div>
   <! -- End RightSidebar -->
but it is still displaying all news items rather than all bar todays!

any idea?

edit: Just warned of your post whilst I was submitting this. I think I did pretty much what you said, but the "start='2'" is not working?