On Wed, Mar 8, 2023 at 12:35 PM Lars Bjørndal <[email protected]> wrote:

> On Sun, Feb 12, 2023 at 01:49:34PM -0300, Roberto Alsina wrote:
> > Use the "template" metadata. There are details in the docs and examples
> in the
> > demo site.
>
> Thank you. I'm using the bottstrap4 theme. Is it then the base_helper.tmpl
> file I need to modify?
>
>
I was thinking more along these lines:

1) For the special pages, set the "template" metadata to something like
"podcast.tmpl"
2) Create templates/podcast.tmpl


Let's say you want this to look like a normal page, just with that extra
link in the HEAD part. That means you want it to behave a lot like page.tmpl

So, the template could be something like this (not tested, probably not
100% right):

<%inherit file="page.tmpl"/>
<%block name="extra_head">
    ${parent.extra_head()}

AND HERE ADD THE STUFF YOU WANT

</%block>




> Thanks
>
> Lars
>
> > On Sun, Feb 12, 2023, 1:16 PM Lars Bjørndal <[1][email protected]> wrote:
> >
> >     Thank you. Sounds good. But how do I use a specific template only for
> >     certain pages on a site?
> >
> >     Thanks
> >
> >     Lars
> >
> >     On Sun, Feb 12, 2023 at 10:00:06AM -0300, Roberto Alsina wrote:
> >     > Only ways that come to mind is to use a different template for
> each page
> >     that
> >     > adds the required link, or use JavaScript to inject it, but that's
> not
> >     going to
> >     > be very useful.
> >     >
> >     > On Sun, Feb 12, 2023, 7:26 AM Lars Bjørndal <[1][2]
> [email protected]>
> >     wrote:
> >     >
> >     >     Hi list!
> >     >
> >     >     Some pages on a site does present a podcast. How can I add a
> Link to
> >     the
> >     >     rss feed for the podcast in the head section? Can I somehow do
> it in
> >     the
> >     >     .rst file?
> >     >
> >     >     Thanks in advance
> >     >     Lars
> >     >
> >     >     --
> >     >     You received this message because you are subscribed to the
> Google
> >     Groups
> >     >     "nikola-discuss" group.
> >     >     To unsubscribe from this group and stop receiving emails from
> it,
> >     send an
> >     >     email to [2][3][email protected].
> >     >     To view this discussion on the web visit [3][4]https://
> >     groups.google.com/d/
> >     >     msgid/nikola-discuss/m3357bw55t.fsf%[5]40dalen.lamasti.net.
> >     >
> >     > --
> >     > You received this message because you are subscribed to the Google
> Groups
> >     > "nikola-discuss" group.
> >     > To unsubscribe from this group and stop receiving emails from it,
> send an
> >     email
> >     > to [4][6][email protected].
> >     > To view this discussion on the web visit [5][7]
> https://groups.google.com/
> >     d/msgid/
> >     > nikola-discuss/
> >     > CALXDAfp8rKZ0sN%3DJQZb5razeU7eZpDr9zdz_01UBZWLtS0UVQg%[8]
> 40mail.gmail.com
> >     .
> >     >
> >     > References:
> >     >
> >     > [1] mailto:[9][email protected]
> >     > [2] mailto:[10]nikola-discuss%[email protected]
> >     > [3] [11]https://groups.google.com/d/msgid/nikola-discuss/
> >     [email protected]
> >     > [4] mailto:[12][email protected]
> >     > [5] [13]
> https://groups.google.com/d/msgid/nikola-discuss/CALXDAfp8rKZ0sN=
> >     [email protected]?utm_medium=email&
> >     utm_source=footer
> >
> >     --
> >     You received this message because you are subscribed to the Google
> Groups
> >     "nikola-discuss" group.
> >     To unsubscribe from this group and stop receiving emails from it,
> send an
> >     email to [14][email protected].
> >     To view this discussion on the web visit [15]
> https://groups.google.com/d/
> >     msgid/nikola-discuss/Y%2BkQ0BOcAvKfOktg%40lamasti.net.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "nikola-discuss" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email
> > to [16][email protected].
> > To view this discussion on the web visit [17]
> https://groups.google.com/d/msgid/
> > nikola-discuss/
> > CALXDAfq2Z2NbVQkzT7gwmsdWDJA926H4mqc43xk4XKkXAym7gw%40mail.gmail.com.
> >
> > References:
> >
> > [1] mailto:[email protected]
> > [2] mailto:[email protected]
> > [3] mailto:nikola-discuss%[email protected]
> > [4] https://groups.google.com/d/
> > [5] http://40dalen.lamasti.net/
> > [6] mailto:nikola-discuss%[email protected]
> > [7] https://groups.google.com/d/msgid/
> > [8] http://40mail.gmail.com/
> > [9] mailto:[email protected]
> > [10] mailto:nikola-discuss%[email protected]
> > [11]
> https://groups.google.com/d/msgid/nikola-discuss/[email protected]
> > [12] mailto:nikola-discuss%[email protected]
> > [13]
> https://groups.google.com/d/msgid/nikola-discuss/CALXDAfp8rKZ0sN=jqzb5razeu7ezpdr9zdz_01ubzwlts0u...@mail.gmail.com?utm_medium=email&utm_source=footer
> > [14] mailto:nikola-discuss%[email protected]
> > [15]
> https://groups.google.com/d/msgid/nikola-discuss/y%[email protected]
> > [16] mailto:[email protected]
> > [17]
> https://groups.google.com/d/msgid/nikola-discuss/calxdafq2z2nbvqkzt7gwmsdwdja926h4mqc43xk4xkkxaym...@mail.gmail.com?utm_medium=email&utm_source=footer
>
> --
> You received this message because you are subscribed to the Google Groups
> "nikola-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/nikola-discuss/ZAirMMODKgONTnAW%40lamasti.net
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"nikola-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nikola-discuss/CALXDAfrqbKB0c-g7P4zecj3n3g77h6Knt57J%2BjSYqf-g4SjUow%40mail.gmail.com.

Reply via email to