Calendar 0.7.3 problem - not replacing content completely

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
Anders kramer
Forum Members
Forum Members
Posts: 26
Joined: Sun Oct 08, 2006 4:38 pm

Calendar 0.7.3 problem - not replacing content completely

Post 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?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Calendar 0.7.3 problem - not replacing content completely

Post by calguy1000 »

Did you use the inline param to the Calendar tag?
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Anders kramer
Forum Members
Forum Members
Posts: 26
Joined: Sun Oct 08, 2006 4:38 pm

Re: Calendar 0.7.3 problem - not replacing content completely

Post by Anders kramer »

I did...
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Calendar 0.7.3 problem - not replacing content completely

Post by calguy1000 »

if the heading is in your template, then that is the problem.  Inlined content only replaces {content}, nothing more.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Anders kramer
Forum Members
Forum Members
Posts: 26
Joined: Sun Oct 08, 2006 4:38 pm

Re: Calendar 0.7.3 problem - not replacing content completely

Post 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 :)
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Calendar 0.7.3 problem - not replacing content completely

Post 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 :)
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Anders kramer
Forum Members
Forum Members
Posts: 26
Joined: Sun Oct 08, 2006 4:38 pm

Re: Calendar 0.7.3 problem - not replacing content completely

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Calendar 0.7.3 problem - not replacing content completely

Post 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.
Anders kramer
Forum Members
Forum Members
Posts: 26
Joined: Sun Oct 08, 2006 4:38 pm

Re: Calendar 0.7.3 problem - not replacing content completely

Post 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"}
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Calendar 0.7.3 problem - not replacing content completely

Post 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...
Last edited by Anonymous on Fri Dec 15, 2006 12:25 pm, edited 1 time in total.
Anders kramer
Forum Members
Forum Members
Posts: 26
Joined: Sun Oct 08, 2006 4:38 pm

Re: Calendar 0.7.3 problem - not replacing content completely

Post 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?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Calendar 0.7.3 problem - not replacing content completely

Post 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.
Post Reply

Return to “Layout and Design (CSS & HTML)”