Re: [Tiki-devel] Creating custom theme

Jean-Marc Libs <[email protected]> Fri, 30 May 2025 18:08:55 +0200
Newsgroups gmane.comp.cms.tiki.devel
Message-ID <CA++RN4f2PKHVzf5vJ6Ve6b8=z3Vnz7uunwGQt9jcs4UrkjaEmg@mail.gmail.com>
--===============1719392517438877222==
Content-Type: multipart/alternative; boundary="00000000000049252506365ca222"

--00000000000049252506365ca222
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi !

I trust Gary on CSS/SCSS matters but I can tell theme-specific template
files are supported and so should theme option template files.
Plus, theme-specific template files override the templates in
_custom/shared/templates which themselves override the templates in
templates.

Cheers,
J-M

On Fri, May 30, 2025 at 5:20=E2=80=AFPM Gary Cunningham-Lee <
gary_c-39LOpZwlz1/[email protected]> wrote:

> 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
>

--00000000000049252506365ca222
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi !</div><div><br></div><div>I trust Gary on CSS/SCS=
S matters but I can tell theme-specific template files are supported and so=
 should theme option template files.</div><div>Plus, theme-specific templat=
e files override the templates in <span style=3D"font-family:monospace">_cu=
stom/shared/templates</span> which themselves override the templates in <sp=
an style=3D"font-family:monospace">templates</span>.</div><div><br></div><d=
iv>Cheers,</div><div>J-M</div></div><br><div class=3D"gmail_quote gmail_quo=
te_container"><div dir=3D"ltr" class=3D"gmail_attr">On Fri, May 30, 2025 at=
 5:20=E2=80=AFPM Gary Cunningham-Lee &lt;<a href=3D"mailto:gary_c@cunningha=
m-lee.com">gary_c-39LOpZwlz1/[email protected]</a>&gt; wrote:<br></div><blockquote cl=
ass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid=
 rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
Copying the CSS file to the css directory shouldn&#39;t be necessary. Just =
<br>
to be sure, is your mytheme.scss in mytheme/scss/ or in mytheme/css? In <br=
>
the new build system, this file should be in the mytheme/css directory.<br>
<br>
I see now that the <a href=3D"http://themes.tiki.org" rel=3D"noreferrer" ta=
rget=3D"_blank">themes.tiki.org</a> page shows that the custom theme has <b=
r>
a templates directory, but I think this might not be correct. Custom <br>
template files should be in _custom/shared/templates. I don&#39;t think <br=
>
theme-specific template files are supported.<br>
<br>
-- Gary<br>
<br>
On 5/30/2025 6:54 PM, Karsten Wemheuer via TikiWiki-devel wrote:<br>
&gt; Hi,<br>
&gt; I want to create a custom theme in the new directory structure for a<b=
r>
&gt; tiki 27 installation.<br>
&gt;<br>
&gt; I created the structure unter _custom as described on<br>
&gt; <a href=3D"https://themes.tiki.org/Making+or+Updating+a+Theme+for+Tiki=
+27+and+Newer+Versions" rel=3D"noreferrer" target=3D"_blank">https://themes=
.tiki.org/Making+or+Updating+a+Theme+for+Tiki+27+and+Newer+Versions</a><br>
&gt;<br>
&gt; I created a sccs-file an the npm run watch compiled it to the director=
y<br>
&gt; public/generated/_custom/shared/themes/mytheme/scss/mytheme.css<br>
&gt;<br>
&gt; On the Look&amp;Feel page the new theme doesn&#39;t show up. I have to=
 manually<br>
&gt; copy the created css file to _custom/shared/themes/mytheme/css. Is thi=
s<br>
&gt; the correct way to work?<br>
&gt;<br>
&gt; Another question regards the layout files like layout_view.tpl. Where<=
br>
&gt; should I place this file?<br>
&gt;<br>
&gt; Thanks in advance!<br>
&gt;<br>
&gt; Best regards<br>
&gt;<br>
&gt; Karsten<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; TikiWiki-devel mailing list<br>
&gt; <a href=3D"mailto:[email protected]" target=3D"_bla=
nk">[email protected]</a><br>
&gt; <a href=3D"https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel=
" rel=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/=
listinfo/tikiwiki-devel</a><br>
<br>
<br>
_______________________________________________<br>
TikiWiki-devel mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">T=
[email protected]</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel" rel=
=3D"noreferrer" target=3D"_blank">https://lists.sourceforge.net/lists/listi=
nfo/tikiwiki-devel</a><br>
</blockquote></div>

--00000000000049252506365ca222--


--===============1719392517438877222==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============1719392517438877222==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel

--===============1719392517438877222==--