|
Quotes |
" ... I want to tell you that your thyme product is functional and valuable beyond
words. I cannot imagine why any portal would be without it. It is the cornerstone of our new project ..."
" ... Thanks for such a complete project, its making my job much easier. ..."
" ... I have now deployed 4 different calendars and our users love them ... "
" ... Easy to install and use and a great look/design. ..."
" ... This has to be the easiest to use program I think I've had to deal with at all this year. ..."
|
|
| View previous topic :: View next topic |
| Author |
Message |
fridge
Joined: 19 Jul 2008 Posts: 31
|
Posted: Fri Aug 01, 2008 4:04 pm Post subject: [SOLVED] Week view differs from day and month view - why? |
|
|
table.heading in week view puts all elements (previous, next and title) in the same cell. Week and month view seems to use functions.php found in thyme/themes/slate/ (slate being the template that I use) but no matter how I change it I can't seem to affect the week view that looks completely different from the other two.
Is that controlled by another file or am I simply making some simple rookie mistake?
Would be very grateful for some hints on how to resolve this as it looks mighty disturbing to me... 
Last edited by fridge on Sat Aug 02, 2008 1:37 pm; edited 1 time in total |
|
| Back to top |
|
 |
esoft_ian
Joined: 12 Sep 2005 Posts: 5275
|
Posted: Fri Aug 01, 2008 5:56 pm Post subject: |
|
|
Hi,
They all use the same function. Without seeing it, this is a guess, but check the Header tab of your month view in Joomla Studio and look at the Align option. Then check the Week view Header -> Align and make sure it is set to the same thing. Let me know if that does not resolve it. |
|
| Back to top |
|
 |
fridge
Joined: 19 Jul 2008 Posts: 31
|
Posted: Fri Aug 01, 2008 6:25 pm Post subject: |
|
|
Hi,
Thank you for the quick reply!
Unfortunately it's not just a question of different alignment but the actual output of the php is completely different. This is the code from functions.php (I have made some changes to it and added classes in order to align the table cells differently):
| Code: |
echo("<center><table border='0' cellspacing='0' cellpadding='0' width='100%' class='heading' style='border-collapse: collapse; border-spacing: 0px; margin: 0;'>
<tr valign='middle'>
<td class='heading_prev' style='margin: 0; text-align:right;'><font class='heading'>");
echo($l);
echo("</font>\n</td>\n");
echo("<td class='heading_text' style='margin: 0; text-align:center;'><font class='heading'>");
echo($m);
echo("</font>\n</td>\n");
echo("<td class='heading_next' style='margin: 0; text-align:left;'><font class='heading'>");
echo($r);
echo("</font>\n</td>\n");
echo("</tr>\n</table>\n</center>\n");
|
And in month and day view, it turns out like expected:
| Code: |
<table border='0' cellspacing='0' cellpadding='0' width='100%' class='heading' style='border-collapse: collapse; border-spacing: 0px; margin: 0;'>
<tr valign='middle'>
<td class='heading_prev' style='margin: 0; text-align:right;'><font class='heading'><a class='heading' href='index.php?option=com_thyme&calendar=3&category=0&m=7&y=2008&Itemid=58&v=m'><img src='../images/arrow_prev_big.png' border=0 alt='Föregående'></a> </font>
</td>
<td class='heading_text' style='margin: 0; text-align:center;'><font class='heading'>Augusti 2008</font>
</td>
<td class='heading_next' style='margin: 0; text-align:left;'><font class='heading'> <a class='heading' href='index.php?option=com_thyme&calendar=3&category=0&m=9&y=2008&Itemid=58&v=m'><img src='../images/arrow_next_big.png' border=0 alt='Nästa'></a> </font>
</td>
</tr>
</table> |
But... In week view, something completely different occurs:
| Code: |
<table border='0' cellspacing='0' cellpadding='0' width='100%' class='heading' style='border-collapse: collapse; border-spacing: 0px; margin: 0;'>
<tr valign='middle'>
<td class='heading_prev' style='margin: 0; text-align:right;'><font class='heading'><a class='heading' href='index.php?option=com_thyme&calendar=3&category=0&d=25&m=7&y=2008&Itemid=58&v=w'><img src='../images/arrow_prev_big.png' border=0 alt='Föregående'></a> <a class='heading' href='index.php?option=com_thyme&calendar=3&category=0&d=8&m=8&y=2008&Itemid=58&v=w'><img src='../images/arrow_next_big.png' border=0 alt='Nästa'></a> 28 Juli - 3 Augusti 2008</font>
</td>
<td class='heading_text' style='margin: 0; text-align:center;'><font class='heading'></font>
</td>
<td class='heading_next' style='margin: 0; text-align:left;'><font class='heading'></font>
</td>
</tr>
</table> |
As you can see - in week view, all content i squeezed into the first cell and the two following are left empty. But it still uses the new classes I set for the table cells... I hope this makes some kind of sense to you, I really don't understand it. |
|
| Back to top |
|
 |
fridge
Joined: 19 Jul 2008 Posts: 31
|
Posted: Sat Aug 02, 2008 1:37 pm Post subject: [SOLVED] Week view differs from day and month view - why? |
|
|
Ian, very sorry - I'm a complete idiot, you were completely right!
When you said check the alignment I was very quick and sent you the code (as you can see from my first reply) that was generated but I didn't read properly and missed that i have to check the alignment inside Joomla Studio and sure enough... In the module for week I had the heading for week view set to align left and the others to center. When I changed the week view to center as well everything is working like it should.
Thank you! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|