roller-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Wittle <er...@wittle.net>
Subject Template questions
Date Sat, 17 Nov 2007 14:54:10 GMT
Please let me know if any/all of these should be filed as bugs.

Issue 1:
===============
I'm running Roller 3.1 at the moment. I downloaded & installed the  
Rational theme from www.rollerthemes.com. It doesn't show my bookmarks  
in its default state, so I decided to try and fix this by customizing  
it. As soon as I clicked the customize link in the theme section, some  
of the formatting was lost. As far as I can tell, this is because the  
default.css can  no longer be found. If I'm using the stock template,  
the following URL resolves:

http://wittle.net/roller/ericw/resource/styles/default.css

As soon as I click customize, the above URL generates a 404 error.

To work around this, I copied the default.css file for the theme I'm  
customizing to a location I could reference by a static URL to my  
Apache instance, and added the following line to the template:

<link rel="stylesheet" type="text/css" href='http://wittle.net/default.css' 
  />

Issue 2:
================

If I look at the templates that are available in the Templates page  
after I click Customize, I see the following:

._Weblog
.__css
.__day
Weblog
_css
_day

Interestingly, the contents of some of these are quite bizzare. Here  
is the content of ._Weblog:

Mac OS X        	 
2 
 
� 
�ATTR���&�&com.apple.quarantine0000;473c8aac;Safari;| 
com.apple.SafariThis resource fork intentionally left blank    
��

Here is the content of .__css

Mac OS X        	 
2 
 
� 
�ATTR���&�&com.apple.quarantine0000;473c8aac;Safari;| 
com.apple.SafariThis resource fork intentionally left blank    
��

Here is the content of .__day

Mac OS X        	 
2 
 
� 
�ATTR���&�&com.apple.quarantine0000;473c8aac;Safari;| 
com.apple.SafariThis resource fork intentionally left blank    
��

I suspect that this is caused by the fact that I used OS X to copy the  
themes to my Linux box via an NFS share. The contents of the rational  
theme folder  are:

[root@wittle-int rational]# ls -al
total 124
drwxr-xr-x   4 ewittle talw  4096 Nov 17 09:16 .
drwxr-xr-x  12 root    root  4096 Nov 15 13:10 ..
-rwxr-xr-x   1 ewittle talw   624 Jul 26 14:44 _css.vm
-rwxr-xr-x   1 ewittle talw   272 Jul 26 14:36 _day.vm
drwxr-xr-x   2 ewittle talw  4096 Aug 15 11:35 images
-rwxr-xr-x   1 ewittle talw  4096 Nov 15 13:08 ._images
-rwxr-xr-x   1 ewittle talw  4096 Nov 15 13:08 ._sm-theme-rational.png
-rwxr-xr-x   1 ewittle talw 12674 Jul 26 15:09 sm-theme-rational.png
drwxr-xr-x   2 ewittle talw  4096 Aug 15 11:35 styles
-rwxr-xr-x   1 ewittle talw  4096 Nov 15 13:08 ._styles
-rwxr-xr-x   1 ewittle talw  4096 Nov 15 13:08 ._theme.xml
-rwxr-xr-x   1 ewittle talw  1514 Aug 14 20:44 theme.xml
-rwxr-xr-x   1 ewittle talw  4096 Nov 15 13:08 ._Weblog.vm
-rwxr-xr-x   1 ewittle talw  3426 Aug  3 15:33 Weblog.vm

I believe the ._ files are the OS X resource forks. Is it possible  
that the Roller code that is looking for template components is  
picking up the resource fork files in addition to the real files?

Issue 3
======

Even after the above, I still could not get the bookmarks to display.  
After playing around, I figured out that the following if block around  
the Links section was the problem

			#if($rootFolder.getBookmarks().size()>0)
                         #end

My bookmarks are organized into folders, and there are no bookmarks in  
the root (only folders). Therefore, this macro was preventing the  
links from displaying at all. I'm not sure if the intended use of this  
macro is specifically for bookmarks only; if so the template code  
should probably check for both the size of the bookmarks list and the  
size of the folders list rather than just one.

-Eric



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message