You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Gaurav <ga...@gmail.com> on 2013/12/02 05:47:47 UTC

Adding css, js in theme as resources

Hello,

I noticed that the themes in roller have a uneven structure, as images, 
icons are placed in specific folder as resources mentioned in theme.xml. 
But the css and js files are not used as resources and rather as 
velocity template. Is there any specific reason behind this ?

Also, I have used css, js, images and font folders and have placed 
specific files in these folders. Just the velocity files are placed in 
root theme directory. This makes the directory structure looks good and 
easy to understand and most important I have tested it and its working fine.

Thanks
Gaurav

Re: Adding css, js in theme as resources

Posted by Gaurav <ga...@gmail.com>.
Hello Glen,

Ok. So, we can put all the resources in respective folder and just the 
custom css which we provide edit functionality in admin can be put in 
the root directory. As It will make proper directory structure and more 
user friendly.
Also, from the difference in directory structure of different themes in 
roller, it seems no specified way structure has to be maintained. It can 
depend from theme to theme.

Thanks
Gaurav

On Monday 02 December 2013 05:33 PM, Glen Mazza wrote:
> Perhaps a shortcoming in Roller right now, our template edit page 
> allows alteration of items only in the top-level folder, so CSS and JS 
> is placed there along with the velocity templates.  Perhaps part of 
> the reason we don't allow going to subfolders is to prevent users from 
> editing binary images (which I assume why they're deliberately kept in 
> subfolders.)
>
> Glen
>
> On 12/01/2013 11:47 PM, Gaurav wrote:
>> Hello,
>>
>> I noticed that the themes in roller have a uneven structure, as 
>> images, icons are placed in specific folder as resources mentioned in 
>> theme.xml. But the css and js files are not used as resources and 
>> rather as velocity template. Is there any specific reason behind this ?
>>
>> Also, I have used css, js, images and font folders and have placed 
>> specific files in these folders. Just the velocity files are placed 
>> in root theme directory. This makes the directory structure looks 
>> good and easy to understand and most important I have tested it and 
>> its working fine.
>>
>> Thanks
>> Gaurav
>


-- 
Regards,
*Gaurav Saini*
/Developer, Digital Marketing and Pursuing B.Tech/
/Viithiisys Technologies/
/Email: gauravsaini03@gmail.com, gaurav.saini@viithiisys.com/
/Mobile: +91-9915346686/

Re: Adding css, js in theme as resources

Posted by Glen Mazza <gl...@gmail.com>.
Perhaps a shortcoming in Roller right now, our template edit page allows 
alteration of items only in the top-level folder, so CSS and JS is 
placed there along with the velocity templates.  Perhaps part of the 
reason we don't allow going to subfolders is to prevent users from 
editing binary images (which I assume why they're deliberately kept in 
subfolders.)

Glen

On 12/01/2013 11:47 PM, Gaurav wrote:
> Hello,
>
> I noticed that the themes in roller have a uneven structure, as 
> images, icons are placed in specific folder as resources mentioned in 
> theme.xml. But the css and js files are not used as resources and 
> rather as velocity template. Is there any specific reason behind this ?
>
> Also, I have used css, js, images and font folders and have placed 
> specific files in these folders. Just the velocity files are placed in 
> root theme directory. This makes the directory structure looks good 
> and easy to understand and most important I have tested it and its 
> working fine.
>
> Thanks
> Gaurav