Re: [Tiki-devel] Creating custom theme with options

Benoit GrĂ©goire <[email protected]> Tue, 03 Jun 2025 17:10:56 -0400
Newsgroups gmane.comp.cms.tiki.devel
Message-ID <2994695.e9J7NaK4W3@benoitg-xps-13>
This is a multi-part message in MIME format.

--===============4483860054019271259==
Content-Type: multipart/alternative; boundary="nextPart3355523.aeNJFYEL58"
Content-Transfer-Encoding: 7Bit

This is a multi-part message in MIME format.

--nextPart3355523.aeNJFYEL58
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

On mardi 3 juin 2025 13 h 29 min 43 s heure avanc=C3=A9e de l=E2=80=99Est K=
arsten Wemheuer via=20
TikiWiki-devel wrote:
> Hi,
>=20
> I was now successful in creating my custom theme in the new _custom
> folder structure.
>=20
> My original theme from tiki21 has two options. I tried creating
>=20
> _custom/shared/themes/mytheme/options/opt1/css
>=20
> directory and put the file opt1.css inside.
>=20
> After cleaning caches and accessing the site, I get errors in the log
>=20
> No route found -
> full:/public/generated/_custom/shared/themes/mytheme/options/opt1css/op
> t1.css
>=20
> What am I doing wrong? How should the directory structure below
> "options" look like?

It should look exactly like that.

There may be a code bug.  The path should be /public/generated/_custom/shar=
ed/
themes/mytheme/options/opt1/css/opt1.css  Is there really a missing slash b=
etween opt1=20
and css in the error message?  Is the file actually copied at /public/gener=
ated/_custom/
shared/themes/mytheme/options/opt1/css/opt1.css after a build?

I just re-tested that scenario locally in master and it seems to work fine.=
  I can select the=20
theme option and the css is properly included.


=2D-=20
Benoit Gr=C3=A9goire

--nextPart3355523.aeNJFYEL58
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="utf-8"

<html>
<head>
<meta http-equiv=3D"content-type" content=3D"text/html; charset=3DUTF-8">
</head>
<body><p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0=
;">On mardi 3 juin 2025 13 h 29 min 43 s heure avanc=C3=A9e de l=E2=80=99Es=
t Karsten Wemheuer via TikiWiki-devel wrote:</p>
<p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt=
; Hi,</p>
<p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt=
; </p>
<p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt=
; I was now successful in creating my custom theme in the new _custom</p>
<p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt=
; folder structure.</p>
<p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt=
; </p>
<p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt=
; My original theme from tiki21 has two options. I tried creating</p>
<p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt=
; </p>
<p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt=
; _custom/shared/themes/mytheme/options/opt1/css</p>
<p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt=
; </p>
<p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt=
; directory and put the file opt1.css inside.</p>
<p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt=
; </p>
<p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt=
; After cleaning caches and accessing the site, I get errors in the log</p>
<p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt=
; </p>
<p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt=
; No route found -</p>
<p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt=
; full:/public/generated/_custom/shared/themes/mytheme/options/opt1css/op</=
p>
<p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt=
; t1.css</p>
<p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt=
; </p>
<p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt=
; What am I doing wrong? How should the directory structure below</p>
<p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">&gt=
; &quot;options&quot; look like?</p>
<br /><p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0=
;">It should look exactly like that.</p>
<br /><p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0=
;">There may be a code bug.&nbsp; The path should be /public/generated/_cus=
tom/shared/themes/mytheme/options/opt1/css/opt1.css&nbsp; Is there really a=
 missing slash between opt1 and css in the error message?&nbsp; Is the file=
 actually copied at /public/generated/_custom/shared/themes/mytheme/options=
/opt1/css/opt1.css after a build?</p>
<br /><p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0=
;">I just re-tested that scenario locally in master and it seems to work fi=
ne.&nbsp; I can select the theme option and the css is properly included.</=
p>
<br /><br /><p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-r=
ight:0;">-- </p>
<p style=3D"margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Ben=
oit Gr=C3=A9goire</p>
</body>
</html>
--nextPart3355523.aeNJFYEL58--





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


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

--===============4483860054019271259==--