Page 1 of 1

Calendar 0.7.3 problem - not replacing content completely

Posted: Tue Oct 10, 2006 2:40 pm
by Anders kramer
Hi. I just installed the Calendar module. But i've go a problem.

It installed just fint,but when i clicked a date, the place the calender was, was replaced by the event thing... I got that problem fixed so that it replaces {contet}, but not intirely.

When i click a date, the event comes up where the content is, but it only replaces the content text, not the headline (see image).

Image

How can i fix this?

Re: Calendar 0.7.3 problem - not replacing content completely

Posted: Tue Oct 10, 2006 3:10 pm
by calguy1000
Did you use the inline param to the Calendar tag?

Re: Calendar 0.7.3 problem - not replacing content completely

Posted: Tue Oct 10, 2006 3:14 pm
by Anders kramer
I did...

Re: Calendar 0.7.3 problem - not replacing content completely

Posted: Tue Oct 10, 2006 4:12 pm
by calguy1000
if the heading is in your template, then that is the problem.  Inlined content only replaces {content}, nothing more.

Re: Calendar 0.7.3 problem - not replacing content completely

Posted: Tue Oct 10, 2006 6:27 pm
by Anders kramer
but the ekstra heading is just from one of the pages...

heres my codes:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<__html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- Change lang="en" to the language of your site -->

<head>

<title>{sitename} - {title}</title>
<!-- The sitename is changed in Site Admin/Global settings. {title} is the name of each page -->

{metadata}
<!-- Don't remove this! Metadata is entered in Site Admin/Global settings. -->

{stylesheet}
<!-- This is how all the stylesheets attached to this template are linked to -->

{cms_selflink dir="start" rellink=1}
{cms_selflink dir="prev" rellink=1}
{cms_selflink dir="next" rellink=1}
<!-- Relational links for interconnections between pages, good for accessibility and Search Engine Optmization -->


{literal}
<__script__ type="text/JavaScript">
<!--
//pass min and max -measured against window width
function P7_MinMaxW(a,b){
	var nw="auto",w=document.documentElement.clientWidth;
	if(w>=b){nw=b+"px";}if(w<=a){nw=a+"px";}return nw;
}
//-->
</__script>
<!--[if lte IE 6]>
<style type="text/css">
#pagewrapper {width:expression(P7_MinMaxW(950,1100));}
#container {height: 1%;}
</style>
<![endif]-->
{/literal}
<!-- The min and max page width for Internet Explorer is set here. For other browsers it's in the stylesheet "Layout: Left sidebar + 1 column" -->


</head>

</__body>

<div id="pagewrapper">

    <!-- start accessibility skip links -->
    <ul class="accessibility">
      <li>{anchor anchor='menu_vert' title='Skip to navigation' accesskey='n' text='Skip to navigation'}</li>
      <li>{anchor anchor='main' title='Skip to content' accesskey='s' text='Skip to content'}</li>
    </ul>
    <!-- end accessibility skip links -->


    <hr class="accessibility" />
    <!-- Horizontal ruler that is hidden for visual browsers by CSS -->


   <!-- Start Header, with logo image that links to the default start page. Logo image is changed in the stylesheet  "For template: Left menu + 1 column" -->
  <div id="header">
           <h1>{cms_selflink dir="start" text="$sitename"}</h1>
   <hr class="accessibility" />
 
   </div>

   <!-- End Header -->



   <!-- Start Breadcrumbs -->
   <div class="breadcrumbs">
        {breadcrumbs starttext='Du er her' root='Home' delimiter='»'}
   <hr class="accessibility" />
   </div>
   <!-- End Breadcrumbs -->


   <!-- Start Content (Navigation and Content columns) -->
   <div id="content">

      <!-- Start Sidebar -->
      <div id="sidebar">

      <!-- Start Navigation -->
      <div id="menu_vert">
         <h2 class="accessibility">Navigation</h2>
         {menu template='simple_navigation.tpl' collapse='1'}
      </div>
      <!-- End Navigation -->

      </div>
      <!-- End Sidebar -->

      <!-- Start rightmenu -->
      <div id="rightmenu">

{news number='5'}
{cms_module module="Calendar" inline=0 summaries=0}
      </div>

      <!-- End rightmenu -->

      <!-- Start Content Area -->
      <div id="main">
         <div style="float: right;">{print showbutton=true script=true}</div>
         <h2>{title}</h2>
         {content} <br />

      <hr class="accessibility" />
      </div>
	  <!-- End Content Area -->


   </div>
   <!-- End Content -->

   <!-- Start Footer. Edit the footer in the Global Content Block called "footer" -->
   <div id="footer">
      {global_content name='footer'}
   </div>   
   <!-- End Footer  -->


</div><!-- end pagewrapper -->
<__body>
</__html>
any suggestions?
And by the way, i've never used php before, or CMS, so please bare over with me :)

Re: Calendar 0.7.3 problem - not replacing content completely

Posted: Tue Oct 10, 2006 7:12 pm
by calguy1000
Having the {title} in the content area of your template, means that the page title will always show up above {content}
which is why you're getting this when you click on a calendar entry.  try putting that stuff into your page, you'll see what I mean.

Anders kramer wrote: but the ekstra heading is just from one of the pages...

heres my codes:

     
     
        {print showbutton=true script=true}
        {title}

        {content}


     
     
 


any suggestions?
And by the way, i've never used php before, or CMS, so please bare over with me :)

Re: Calendar 0.7.3 problem - not replacing content completely

Posted: Tue Oct 10, 2006 7:59 pm
by Anders kramer
Put what stuff?

How do you suggest i should place the codes?

I want the headlines to change, like when you click different points in the menu...
Like i said, i don't know much about PHP and CMS, so could you give me an exaple of how the code should look to make it work?

Regards
Anders

Re: Calendar 0.7.3 problem - not replacing content completely

Posted: Wed Oct 11, 2006 8:30 am
by Dr.CSS
when you go to edit the page put the {title} at the top of the 'content edit box', in source view, and when your page renders the {title} should take on the style that is on the page now but when you have a news article showing the {title} will be removed...

Or you could make a copy of the template and take the {title} out of it then make a page called News, using this template, with  a couple of words in the content edit box, anything will do as it will never show, make it 'not show in menu' then in your news tag use  detailpage='news'  'news' being the alias of the page, then clicking on a news link will call this page for the display of article detail.

Re: Calendar 0.7.3 problem - not replacing content completely

Posted: Wed Oct 11, 2006 1:34 pm
by Anders kramer
hmm, i can't seem to get it to link to the page... is this the correct code?

Code: Select all

{news number='3' detailpage="news"}

Re: Calendar 0.7.3 problem - not replacing content completely

Posted: Wed Oct 11, 2006 6:52 pm
by Dr.CSS
Did you make a page called news?
Have you tried it with only single quotes?
From the news 'Help'...
(optional) detailpage="pagealias" - Page to display News details in. This can either be a page alias or an id. Used to allow details to be displayed in a different template from the summary.

To see it working from the back end...

http://multiintech.com/CMSMSDemo/admin/login.php

Name: adman
Password: adman

look at the main template for how the tag is used...
look at the news template to see no {title}
look at the News page, options, to see I changed the alias to news1 then look at the other news page to see it has news as alias and some words as content that never show up and it is using the new news template...

Re: Calendar 0.7.3 problem - not replacing content completely

Posted: Wed Oct 11, 2006 9:44 pm
by Anders kramer
hmm... i tiried it, and then realized... this is a tag for the News module... It's the calendar module i ned help with... even though this seems as the perfect solution, it dosen't work for Calendar... is there a simular tag that does?

Re: Calendar 0.7.3 problem - not replacing content completely

Posted: Thu Oct 12, 2006 10:18 am
by Dr.CSS
woops to bad you can't put a CSS call in the calendar template like div#main h2{display:none}
Have no idea how I got onto the news thing sorry, must have been tired.