Written by

Integration Architect at Itzos B.V.
Question Joost Platenburg · Nov 13, 2024

%CSP.Page.Include doesn't seem to work

I'm trying to rewrite a legacy portal created with all .csp files into a portal written in .cls files. The problem I have is that the old cap pages use "csp:include page='page.csp'> tags. I'm trying to use the Include method  that is in the %CSP.Page master page. It doesn't seem to insert the required file. Any suggestions?
 

<table width="100%">
<tr>
<script language="Cache" runat="server">
do ..Include("pubsub/portal/include/headLogoDXC.csp")
#; <!--csp:include page="/pubsub/portal/include/headLogoDXC.csp"-->
</script>
</tr>
</table>
Product version: IRIS 2024.1
$ZV: IRIS for UNIX (Ubuntu Server LTS for x86-64 Containers) 2024.2 (Build 247U) Tue Jul 16 2024 09:25:07 EDT [Health:8.1.2]

Comments

Joost Platenburg · Nov 13, 2024

Solved it. The include should be outside of the html in the classMethod itself

&html<
<table width="100%">
<tr>
>
do ..Include("pubsub/portal/include/headLogoDXC.csp")
&html<
</tr>
</table>
0