Re: [Tiki-devel] Creating custom theme

Karsten Wemheuer via TikiWiki-devel <[email protected]> Fri, 30 May 2025 18:02:46 +0200
Newsgroups gmane.comp.cms.tiki.devel
Message-ID <[email protected]>
Hi,

thanks for answering.

I now put my mytheme.scss file in the
_custom/shared/themes/mytheme/css/ directory. But this does not change
the generation process: running the "npm run watch" the file
mytheme.scss is compiled to mytheme.css only in public directory. Is
this correct? 

Wht to do if going to production: Should I take the public directory
tree or the _custom or both?

Still a little bit confused...

-- Karsten


Am Freitag, dem 30.05.2025 um 20:44 +0900 schrieb Gary Cunningham-Lee:
> Hi,
> 
> Copying the CSS file to the css directory shouldn't be necessary.
> Just 
> to be sure, is your mytheme.scss in mytheme/scss/ or in mytheme/css?
> In 
> the new build system, this file should be in the mytheme/css
> directory.
> 
> I see now that the themes.tiki.org page shows that the custom theme
> has 
> a templates directory, but I think this might not be correct. Custom 
> template files should be in _custom/shared/templates. I don't think 
> theme-specific template files are supported.
> 
> -- Gary
> 
> On 5/30/2025 6:54 PM, Karsten Wemheuer via TikiWiki-devel wrote:
> > Hi,
> > I want to create a custom theme in the new directory structure for
> > a
> > tiki 27 installation.
> > 
> > I created the structure unter _custom as described on
> > https://themes.tiki.org/Making+or+Updating+a+Theme+for+Tiki+27+and+Newer+Versions
> > 
> > I created a sccs-file an the npm run watch compiled it to the
> > directory
> > public/generated/_custom/shared/themes/mytheme/scss/mytheme.css
> > 
> > On the Look&Feel page the new theme doesn't show up. I have to
> > manually
> > copy the created css file to _custom/shared/themes/mytheme/css. Is
> > this
> > the correct way to work?
> > 
> > Another question regards the layout files like layout_view.tpl.
> > Where
> > should I place this file?
> > 
> > Thanks in advance!
> > 
> > Best regards
> > 
> > Karsten
> > 
> > 
> > 
> > _______________________________________________
> > TikiWiki-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
> 
> 
> _______________________________________________
> TikiWiki-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel