Closed wouldsmina closed 6 years ago
I suppose "my" page can be shown by accessing to URL /sympa/my.
Can setting default_home my
in sympa.conf
satisfy your need?
Hi @ikedas
I suppose "my" page can be shown by accessing to URL /sympa/my.
Yes, "my" page work fine.
Can setting default_home my in sympa.conf satisfy your need?
No, I need to show "my" and "lists_categories" into "home" (cf. screenshot)
@wouldsmina,
Just an idea, but how about using iframe?
...
[% IF user.email %]
<article class="small-12 medium-4 columns home">
<iframe src="/sympa/nomenu/my">
</iframe>
</article>
[% END %]
...
nomenu/
suppresses header/footer in content.
Update: modified src path.
it's work, but iframe
is deprecated and less beautiful than a div
:disappointed_relieved:
HTML 4.01/STRICT did not define iframe
, but HMTL5 defines it. To make it more beautiful, add a style to css.tt2
:
iframe { border: 0; }
ok. I would have preffered the [% which %]
tt2 variable into home but it's seems not possible...
thank you @ikedas
Thanks for sharing your experiences. This issue is closed.
sorry but that does not fit in the end. with iframe, when selecting a list it's appears in the iframe :/
I don't find sandbox parameter to open link in parent page. I add <base target="_parent" />
into my.tt2 but they don't show menu (due to nomenu
parameter).
Is there any way to get [% which %]
into home.tt2?
@wouldsmina, I tried with iframe.
In home.tt2
, rewrite sections such as:
<li class="small-12 medium-4 columns">
<a href="[% 'my' | url_rel %]" title="[%|loc%]My lists[%END%]">
...
[%|loc%]My lists[%END%]</a>
</li>
to:
<li class="small-12 medium-4 columns">
<iframe src="/sympa/nomenu/my"
sandbox="allow-same-origin allow-scripts allow-top-navigation">
</iframe>
</li>
and so on.
allow-top-navigation
attribute was needed with my Chrome, or _top
links below were disabled.allow-scripts
was needed to suppress warning "Please activate JavaScript in your web browser".allow-same-origin
was needed, or font-awesome icons were not rendered.Probably the other attributes (such as allow-forms
) may be required to embed other pages than my
.
In my.tt2
, rewrite links such as:
<li><a href="[% 'review' | url_rel([l.key]) %]">...
to:
<li><a href="/sympa/review/[% l.key | uri %]" target="_top">...
and so on.
Update 22 Oct.: Added allow-same-origin
and allow-scripts
.
Seems no longer to be updated. Closed
Hello, I need to show "my lists" on home page (into a
div
) but they systematically show "No subscription.". When home page is called[% which %]
is emptyOS : DEBIAN 9 SYMPA 6.2.16 from debian package repository
Portion of my home.tt2 :
logs (level 4) : my lists :
home: