Hi,

Thanks for quick reply, i started from scratch and it worked.

I have one more question,

I need to have more than one virtual collections [can i do that ?].
Currently what i am doing is i am adding multiple childs of root virtual
collections and showing each of them into their own "narrowbox". For that i
have added quite few code on websearch_webcoll.py file. My question is : how
can i separate my code from core websearch_webcoll module [i need to
overwrite some methods too.] so that core files remains clean.


Thank you again for your help
Diwaker

On Thu, Aug 11, 2011 at 6:44 PM, Ludmila Marian <[email protected]>wrote:

> **
> Hi Diwaker,
>
> In principle what you did is correct and it should work.. you can theme any
> template by using the CFG_WEBSTYLE_TEMPLATE_SKIN.
>
> If you are modifying the templates for the collection pages, you will also
> need to run webcoll in order to view your changes.. other then that, I'm not
> sure where the problem could come, since you successfully modified the
> webstyle templates..
>
> Cheers,
> Ludmila
>
> On 08/11/2011 07:45 AM, Diwaker Ghimire wrote:
>
>
>  Sorry, I wasn't clear about my problem.
>
>  I have changed CFG_WEBSTYLE_TEMPLATE_SKIN = mytheme and created
> webstyle_templates_mytheme.py which worked very well but now i need to
> change websearch_templates.py so i created websearch_templates_mytheme.py
> but that didn't work.
>
>  I was thinking if there is way to work with themes on other templates
> files as well or we have to edit core (websearch_templates.py) file.
>
>
>  Thank you for your help
>
>  Diwaker
>
>  On Wed, Aug 10, 2011 at 7:18 PM, Peter J. Halliday <[email protected]
> > wrote:
>
>> I could be misunderstanding your question, but if you are asking how to
>> theme some of the _templates files, then you can continue.  If that wasn't
>> your  question I'm sorry for misunderstanding, and you can ignore me.
>>
>> CFG_WEBSTYLE_TEMPLATE_SKIN is what controls the skinning.  Say you are
>> going to write a SesameStreet style.  Set the link in your local config:
>>
>> CFG_WEBSTYLE_TEMPLATE_SKIN = SesameStreet
>>
>> Then you can rename webstyle_templates.py as
>> webstyle_templates_SesameStreet.py
>>
>> ------------------------------------------
>> Peter Halliday
>> Cornell University Library IT
>> Repositories Group
>> [email protected]
>> (Phone:) 607-255-1790
>> (Cell:) 607-329-6905
>>
>>
>>
>>
>>
>>
>> On Aug 10, 2011, at 5:52 AM, Diwaker Ghimire wrote:
>>
>> > Hello,
>> >
>> > I have created separate template file for webstyle_templates which have
>> a setting in config file but there is no setting for other template files
>> such as websearch, websession and so. The problem is i created separate
>> template file for websearch_templates file using same theme name as
>> webstyle_templates but it is not working.
>> >
>> > Is there is any possibility that i can use separate template file for
>> all _templates or i have to hack into core files.
>> >
>> >
>> > Diwaker
>>
>>
>
>
> --
> Ludmila Marian ** CERN Document Server ** <http://cds.cern.ch/> 
> <http://cds.cern.ch/>
>
>

Reply via email to